V8 Project
v8::internal::Code::FindAndReplacePattern Class Reference

#include <objects-inl.h>

+ Collaboration diagram for v8::internal::Code::FindAndReplacePattern:

Public Member Functions

 FindAndReplacePattern ()
 
void Add (Handle< Map > map_to_find, Handle< Object > obj_to_replace)
 

Private Attributes

int count_
 
Handle< Mapfind_ [kMaxCount]
 
Handle< Objectreplace_ [kMaxCount]
 

Static Private Attributes

static const int kMaxCount = 4
 

Friends

class Code
 

Detailed Description

Definition at line 5049 of file objects-inl.h.

Constructor & Destructor Documentation

◆ FindAndReplacePattern()

v8::internal::Code::FindAndReplacePattern::FindAndReplacePattern ( )
inline

Definition at line 5051 of file objects-inl.h.

Member Function Documentation

◆ Add()

void v8::internal::Code::FindAndReplacePattern::Add ( Handle< Map map_to_find,
Handle< Object obj_to_replace 
)
inline

Definition at line 5052 of file objects-inl.h.

5052  {
5053  DCHECK(count_ < kMaxCount);
5054  find_[count_] = map_to_find;
5055  replace_[count_] = obj_to_replace;
5056  ++count_;
5057  }
Handle< Object > replace_[kMaxCount]
Definition: objects-inl.h:5062
#define DCHECK(condition)
Definition: logging.h:205

References count_, DCHECK, find_, kMaxCount, and replace_.

Referenced by v8::internal::PropertyICCompiler::ComputeCompareNil(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::GetCodeCopyFromTemplate(), and v8::internal::StoreGlobalStub::GetCodeCopyFromTemplate().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Code

friend class Code
friend

Definition at line 5063 of file objects-inl.h.

Member Data Documentation

◆ count_

int v8::internal::Code::FindAndReplacePattern::count_
private

Definition at line 5060 of file objects-inl.h.

Referenced by Add(), and v8::internal::Code::FindAndReplace().

◆ find_

Handle<Map> v8::internal::Code::FindAndReplacePattern::find_[kMaxCount]
private

Definition at line 5061 of file objects-inl.h.

Referenced by Add(), and v8::internal::Code::FindAndReplace().

◆ kMaxCount

const int v8::internal::Code::FindAndReplacePattern::kMaxCount = 4
staticprivate

Definition at line 5059 of file objects-inl.h.

Referenced by Add(), and v8::internal::Code::FindAndReplace().

◆ replace_

Handle<Object> v8::internal::Code::FindAndReplacePattern::replace_[kMaxCount]
private

Definition at line 5062 of file objects-inl.h.

Referenced by Add(), and v8::internal::Code::FindAndReplace().


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