#include <scopeinfo.h>
Definition at line 19 of file scopeinfo.h.
◆ ContextSlotCache()
v8::internal::ContextSlotCache::ContextSlotCache |
( |
| ) |
|
|
inlineprivate |
Definition at line 38 of file scopeinfo.h.
static const int kNotFound
uint32_t values_[kLength]
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 NULL
References v8::internal::ContextSlotCache::Key::data, keys_, kLength, kNotFound, v8::internal::ContextSlotCache::Key::name, NULL, and values_.
◆ Clear()
void v8::internal::ContextSlotCache::Clear |
( |
| ) |
|
◆ DISALLOW_COPY_AND_ASSIGN()
◆ Hash()
Definition at line 422 of file scopeinfo.cc.
426 return static_cast<int>((addr_hash ^
name->Hash()) %
kLength);
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
References kLength, and name.
Referenced by Lookup(), and Update().
◆ Lookup()
Definition at line 430 of file scopeinfo.cc.
434 Key& key =
keys_[index];
435 if ((key.data == data) && key.name->Equals(
name)) {
438 if (init_flag !=
NULL) *init_flag = result.initialization_flag();
439 if (maybe_assigned_flag !=
NULL)
440 *maybe_assigned_flag = result.maybe_assigned_flag();
static int Hash(Object *data, String *name)
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 mode(MIPS only)") DEFINE_BOOL(enable_always_align_csp
References v8::internal::ContextSlotCache::Key::data, v8::internal::String::Equals(), Hash(), v8::internal::ContextSlotCache::Value::index(), v8::internal::ContextSlotCache::Value::initialization_flag(), keys_, kNotFound, v8::internal::ContextSlotCache::Value::maybe_assigned_flag(), v8::internal::ContextSlotCache::Value::mode(), mode(), name, v8::internal::ContextSlotCache::Key::name, NULL, and values_.
Referenced by v8::internal::ScopeInfo::ContextSlotIndex().
◆ Update()
Definition at line 447 of file scopeinfo.cc.
452 Handle<String> internalized_name;
455 ToHandle(&internalized_name)) {
456 int index =
Hash(*data, *internalized_name);
457 Key& key =
keys_[index];
459 key.name = *internalized_name;
461 values_[index] = Value(
mode, init_flag, maybe_assigned_flag,
464 ValidateEntry(data,
name,
mode, init_flag, maybe_assigned_flag, slot_index);
static MUST_USE_RESULT MaybeHandle< String > InternalizeStringIfExists(Isolate *isolate, Handle< String > string)
#define DCHECK(condition)
PerThreadAssertScopeDebugOnly< HEAP_ALLOCATION_ASSERT, false > DisallowHeapAllocation
References v8::internal::ContextSlotCache::Key::data, DCHECK, Hash(), v8::internal::StringTable::InternalizeStringIfExists(), keys_, kNotFound, mode(), name, v8::internal::ContextSlotCache::Key::name, v8::internal::ContextSlotCache::Value::raw(), and values_.
Referenced by v8::internal::ScopeInfo::ContextSlotIndex().
◆ Isolate
◆ keys_
Key v8::internal::ContextSlotCache::keys_[kLength] |
|
private |
◆ kLength
const int v8::internal::ContextSlotCache::kLength = 256 |
|
staticprivate |
◆ kNotFound
const int v8::internal::ContextSlotCache::kNotFound = -2 |
|
static |
◆ values_
The documentation for this class was generated from the following files: