40 using namespace v8::internal;
46 static void DummyStaticFunction(
Object* result) {
55 Assembler assm(isolate, buffer,
sizeof buffer);
56 DummyStaticFunction(
NULL);
59 __ addq(
rax, Immediate(12345678));
60 __ orq(
rax, Immediate(12345678));
61 __ subq(
rax, Immediate(12345678));
62 __ xorq(
rax, Immediate(12345678));
63 __ andq(
rax, Immediate(12345678));
93 __ addq(
rbx, Immediate(12));
96 __ andq(
rdx, Immediate(3));
98 __ cmpq(
rdx, Immediate(3));
103 __ orq(
rdx, Immediate(3));
104 __ xorq(
rdx, Immediate(3));
121 __ pushq(Immediate(12));
122 __ pushq(Immediate(23456));
137 __ movb(
rcx, Immediate(6));
147 __ movq(
rdx, Immediate(1234567));
167 __ imulq(
rdx,
rcx, Immediate(1000));
177 __ orq(
rdx, Immediate(12345));
182 __ rcl(
rdx, Immediate(1));
183 __ rcl(
rdx, Immediate(7));
184 __ rcr(
rdx, Immediate(1));
185 __ rcr(
rdx, Immediate(7));
186 __ sar(
rdx, Immediate(1));
187 __ sar(
rdx, Immediate(6));
191 __ shl(
rdx, Immediate(1));
192 __ shl(
rdx, Immediate(6));
195 __ shr(
rdx, Immediate(1));
196 __ shr(
rdx, Immediate(7));
202 __ addq(
rbx, Immediate(12));
205 __ andq(
rbx, Immediate(12345));
207 __ cmpq(
rbx, Immediate(12345));
208 __ cmpq(
rbx, Immediate(12));
210 __ cmpb(
rax, Immediate(100));
212 __ orq(
rbx, Immediate(12345));
214 __ subq(
rbx, Immediate(12));
217 __ xorq(
rbx, Immediate(12345));
220 __ imulq(
rdx,
rcx, Immediate(1000));
227 __ testq(
rdx, Immediate(12345));
233 __ xorq(
rdx, Immediate(12345));
254 __ call(ic, RelocInfo::CODE_TARGET);
261 #ifdef ENABLE_DEBUGGER_SUPPORT
262 ExternalReference after_break_target =
263 ExternalReference(Debug_Address::AfterBreakTarget(), isolate);
264 USE(after_break_target);
265 #endif // ENABLE_DEBUGGER_SUPPORT
266 __ jmp(ic, RelocInfo::CODE_TARGET);
418 CpuFeatureScope scope(&assm,
SSE4_1);
424 for (
int i = 0; i < 16; i++) {
436 CHECK(code->IsCode());
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
static void Disassemble(FILE *f, byte *begin, byte *end)
static bool IsSupported(CpuFeature f)
static Handle< Code > initialize_stub(Isolate *isolate, ExtraICState extra_state)
static Code * cast(Object *obj)
byte * instruction_start()
void GetCode(CodeDesc *desc)
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization extra verbose compilation tracing generate extra code(assertions) for debugging") DEFINE_bool(code_comments
static i::Isolate * i_isolate()
MUST_USE_RESULT MaybeObject * CreateCode(const CodeDesc &desc, Code::Flags flags, Handle< Object > self_reference, bool immovable=false, bool crankshafted=false, int prologue_offset=Code::kPrologueOffsetNotSet)
static void InitializeVM()
static const int kFunctionOffset
static Flags ComputeFlags(Kind kind, InlineCacheState ic_state=UNINITIALIZED, ExtraICState extra_ic_state=kNoExtraICState, StubType type=NORMAL, InlineCacheHolderFlag holder=OWN_MAP)