15 #define __ ACCESS_MASM(masm)
18 static void ProbeTable(Isolate* isolate, MacroAssembler* masm,
22 Register offset, Register extra) {
23 ExternalReference key_offset(isolate->stub_cache()->key_reference(table));
24 ExternalReference value_offset(isolate->stub_cache()->value_reference(table));
25 ExternalReference map_offset(isolate->stub_cache()->map_reference(table));
30 __ lea(offset, Operand(offset, offset,
times_2, 0));
32 if (extra.is_valid()) {
34 __ mov(extra, Operand::StaticArray(offset,
times_1, value_offset));
37 __ cmp(
name, Operand::StaticArray(offset,
times_1, key_offset));
41 __ mov(offset, Operand::StaticArray(offset,
times_1, map_offset));
59 if (leave_frame)
__ leave();
71 __ cmp(
name, Operand::StaticArray(offset,
times_1, key_offset));
75 __ mov(offset, Operand::StaticArray(offset,
times_1, map_offset));
80 __ mov(offset, Operand(
esp, 0));
83 __ mov(offset, Operand::StaticArray(offset,
times_1, value_offset));
101 __ mov(offset, Operand::StaticArray(offset,
times_1, value_offset));
103 if (leave_frame)
__ leave();
117 bool leave_frame, Register receiver,
118 Register
name, Register scratch, Register extra,
119 Register extra2, Register extra3) {
124 DCHECK(
sizeof(Entry) == 12);
130 DCHECK(!scratch.is(receiver));
132 DCHECK(!extra.is(receiver));
134 DCHECK(!extra.is(scratch));
141 Register offset = scratch;
144 Counters* counters = masm->isolate()->counters();
145 __ IncrementCounter(counters->megamorphic_stub_cache_probes(), 1);
148 __ JumpIfSmi(receiver, &miss);
171 __ add(offset, Immediate(
flags));
181 __ IncrementCounter(counters->megamorphic_stub_cache_misses(), 1);
static const int kFlagsOffset
static StubType ExtractTypeFromFlags(Flags flags)
static const int kFlagsNotUsedInLookup
static const int kHeaderSize
static const int kMapOffset
static const int kHashFieldOffset
static const int kCacheIndexShift
void GenerateProbe(MacroAssembler *masm, Code::Flags flags, bool leave_frame, Register receiver, Register name, Register scratch, Register extra, Register extra2=no_reg, Register extra3=no_reg)
static const int kSecondaryTableSize
static const int kPrimaryTableSize
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
#define DCHECK(condition)
Operand FieldOperand(Register object, int offset)
const int kPointerSizeLog2
Debugger support for the V8 JavaScript engine.