V8 Project
v8::internal::TokensCompareInput Class Reference
+ Inheritance diagram for v8::internal::TokensCompareInput:
+ Collaboration diagram for v8::internal::TokensCompareInput:

Public Member Functions

 TokensCompareInput (Handle< String > s1, int offset1, int len1, Handle< String > s2, int offset2, int len2)
 
virtual int GetLength1 ()
 
virtual int GetLength2 ()
 
bool Equals (int index1, int index2)
 

Private Attributes

Handle< Strings1_
 
int offset1_
 
int len1_
 
Handle< Strings2_
 
int offset2_
 
int len2_
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::Comparator::Input
virtual ~Input ()
 

Detailed Description

Definition at line 355 of file liveedit.cc.

Constructor & Destructor Documentation

◆ TokensCompareInput()

v8::internal::TokensCompareInput::TokensCompareInput ( Handle< String s1,
int  offset1,
int  len1,
Handle< String s2,
int  offset2,
int  len2 
)
inline

Definition at line 357 of file liveedit.cc.

359  : s1_(s1), offset1_(offset1), len1_(len1),
360  s2_(s2), offset2_(offset2), len2_(len2) {
361  }
const SwVfpRegister s1
const SwVfpRegister s2

Member Function Documentation

◆ Equals()

bool v8::internal::TokensCompareInput::Equals ( int  index1,
int  index2 
)
inlinevirtual

Implements v8::internal::Comparator::Input.

Definition at line 368 of file liveedit.cc.

368  {
369  return s1_->Get(offset1_ + index1) == s2_->Get(offset2_ + index2);
370  }

References offset1_, offset2_, s1_, and s2_.

◆ GetLength1()

virtual int v8::internal::TokensCompareInput::GetLength1 ( )
inlinevirtual

Implements v8::internal::Comparator::Input.

Definition at line 362 of file liveedit.cc.

362  {
363  return len1_;
364  }

References len1_.

◆ GetLength2()

virtual int v8::internal::TokensCompareInput::GetLength2 ( )
inlinevirtual

Implements v8::internal::Comparator::Input.

Definition at line 365 of file liveedit.cc.

365  {
366  return len2_;
367  }

References len2_.

Member Data Documentation

◆ len1_

int v8::internal::TokensCompareInput::len1_
private

Definition at line 375 of file liveedit.cc.

Referenced by GetLength1().

◆ len2_

int v8::internal::TokensCompareInput::len2_
private

Definition at line 378 of file liveedit.cc.

Referenced by GetLength2().

◆ offset1_

int v8::internal::TokensCompareInput::offset1_
private

Definition at line 374 of file liveedit.cc.

Referenced by Equals().

◆ offset2_

int v8::internal::TokensCompareInput::offset2_
private

Definition at line 377 of file liveedit.cc.

Referenced by Equals().

◆ s1_

Handle<String> v8::internal::TokensCompareInput::s1_
private

Definition at line 373 of file liveedit.cc.

Referenced by Equals().

◆ s2_

Handle<String> v8::internal::TokensCompareInput::s2_
private

Definition at line 376 of file liveedit.cc.

Referenced by Equals().


The documentation for this class was generated from the following file: