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

Public Member Functions

 CodeCacheHashTableKey (Handle< Name > name, Code::Flags flags)
 
 CodeCacheHashTableKey (Handle< Name > name, Handle< Code > code)
 
bool IsMatch (Object *other) OVERRIDE
 
uint32_t Hash () OVERRIDE
 
uint32_t HashForObject (Object *obj) OVERRIDE
 
MUST_USE_RESULT Handle< ObjectAsHandle (Isolate *isolate) OVERRIDE
 
- Public Member Functions inherited from v8::internal::HashTableKey
virtual ~HashTableKey ()
 

Static Public Member Functions

static uint32_t NameFlagsHashHelper (Name *name, Code::Flags flags)
 

Private Attributes

Handle< Namename_
 
Code::Flags flags_
 
MaybeHandle< Codecode_
 

Detailed Description

Definition at line 7448 of file objects.cc.

Constructor & Destructor Documentation

◆ CodeCacheHashTableKey() [1/2]

v8::internal::CodeCacheHashTableKey::CodeCacheHashTableKey ( Handle< Name name,
Code::Flags  flags 
)
inline

Definition at line 7450 of file objects.cc.

7451  : name_(name), flags_(flags), code_() { }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name

◆ CodeCacheHashTableKey() [2/2]

v8::internal::CodeCacheHashTableKey::CodeCacheHashTableKey ( Handle< Name name,
Handle< Code code 
)
inline

Definition at line 7453 of file objects.cc.

7454  : name_(name), flags_(code->flags()), code_(code) { }

Member Function Documentation

◆ AsHandle()

MUST_USE_RESULT Handle<Object> v8::internal::CodeCacheHashTableKey::AsHandle ( Isolate isolate)
inlinevirtual

Implements v8::internal::HashTableKey.

Definition at line 7480 of file objects.cc.

7480  {
7481  Handle<Code> code = code_.ToHandleChecked();
7482  Handle<FixedArray> pair = isolate->factory()->NewFixedArray(2);
7483  pair->set(0, *name_);
7484  pair->set(1, *code);
7485  return pair;
7486  }

References v8::internal::Isolate::factory().

Referenced by v8::internal::CodeCacheHashTable::Put().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Hash()

uint32_t v8::internal::CodeCacheHashTableKey::Hash ( )
inlinevirtual

Implements v8::internal::HashTableKey.

Definition at line 7471 of file objects.cc.

7471 { return NameFlagsHashHelper(*name_, flags_); }
static uint32_t NameFlagsHashHelper(Name *name, Code::Flags flags)
Definition: objects.cc:7467

Referenced by v8::internal::CodeCacheHashTable::Put().

+ Here is the caller graph for this function:

◆ HashForObject()

uint32_t v8::internal::CodeCacheHashTableKey::HashForObject ( Object obj)
inlinevirtual

Implements v8::internal::HashTableKey.

Definition at line 7473 of file objects.cc.

7473  {
7474  FixedArray* pair = FixedArray::cast(obj);
7475  Name* name = Name::cast(pair->get(0));
7476  Code* code = Code::cast(pair->get(1));
7477  return NameFlagsHashHelper(name, code->flags());
7478  }

References v8::internal::Code::flags(), v8::internal::FixedArray::get(), and name.

+ Here is the call graph for this function:

◆ IsMatch()

bool v8::internal::CodeCacheHashTableKey::IsMatch ( Object other)
inlinevirtual

Implements v8::internal::HashTableKey.

Definition at line 7456 of file objects.cc.

7456  {
7457  if (!other->IsFixedArray()) return false;
7458  FixedArray* pair = FixedArray::cast(other);
7459  Name* name = Name::cast(pair->get(0));
7460  Code::Flags flags = Code::cast(pair->get(1))->flags();
7461  if (flags != flags_) {
7462  return false;
7463  }
7464  return name_->Equals(name);
7465  }
uint32_t Flags
Definition: objects.h:4929

References v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::FixedArray::get(), and name.

+ Here is the call graph for this function:

◆ NameFlagsHashHelper()

static uint32_t v8::internal::CodeCacheHashTableKey::NameFlagsHashHelper ( Name name,
Code::Flags  flags 
)
inlinestatic

Definition at line 7467 of file objects.cc.

7467  {
7468  return name->Hash() ^ flags;
7469  }

References v8::internal::anonymous_namespace{flags.cc}::flags, and name.

Member Data Documentation

◆ code_

MaybeHandle<Code> v8::internal::CodeCacheHashTableKey::code_
private

Definition at line 7492 of file objects.cc.

◆ flags_

Code::Flags v8::internal::CodeCacheHashTableKey::flags_
private

Definition at line 7490 of file objects.cc.

◆ name_

Handle<Name> v8::internal::CodeCacheHashTableKey::name_
private

Definition at line 7489 of file objects.cc.


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