39 using namespace v8::internal;
43 static void InitializeVM() {
53 static void DummyStaticFunction(
Object* result) {
61 Assembler assm(Isolate::Current(), buffer,
sizeof buffer);
62 DummyStaticFunction(
NULL);
65 __ adc(
eax, 12345678);
66 __ add(
eax, Immediate(12345678));
67 __ or_(
eax, 12345678);
68 __ sub(
eax, Immediate(12345678));
69 __ xor_(
eax, 12345678);
70 __ and_(
eax, 12345678);
92 __ add(
ebx, Immediate(12));
111 CpuFeatures::Scope fscope(
CPUID);
116 CpuFeatures::Scope fscope(
RDTSC);
135 __ push(Immediate(12));
136 __ push(Immediate(23456));
162 __ mov(
edx, 1234567);
168 __ dec_b(Operand(
eax, 10));
219 __ add(
ebx, Immediate(12));
225 __ cmp(
ebx, Immediate(12));
231 __ sub(
ebx, Immediate(12));
247 __ test(
edx, Immediate(12345));
251 __ test_b(Operand(
eax, -20), 0x9A);
273 Handle<Code> ic(Isolate::Current()->builtins()->builtin(
274 Builtins::kLoadIC_Initialize));
275 __ call(ic, RelocInfo::CODE_TARGET);
282 #ifdef ENABLE_DEBUGGER_SUPPORT
283 ExternalReference after_break_target =
284 ExternalReference(Debug_Address::AfterBreakTarget(),
286 __ jmp(Operand::StaticVariable(after_break_target));
287 #endif // ENABLE_DEBUGGER_SUPPORT
288 __ jmp(ic, RelocInfo::CODE_TARGET);
372 CpuFeatures::Scope fscope(
SSE2);
394 CpuFeatures::Scope use_cmov(
CMOV);
417 CpuFeatures::Scope fscope(
SSE2);
446 CpuFeatures::Scope scope(
SSE4_1);
453 for (
int i = 0; i < 16; i++) {
465 CHECK(code->IsCode());
static void Disassemble(FILE *f, byte *begin, byte *end)
Isolate * isolate() const
static bool IsSupported(CpuFeature f)
static Code * cast(Object *obj)
byte * instruction_start()
void GetCode(CodeDesc *desc)
static Flags ComputeFlags(Kind kind, InlineCacheState ic_state=UNINITIALIZED, ExtraICState extra_ic_state=kNoExtraICState, StubType type=NORMAL, int argc=-1, InlineCacheHolderFlag holder=OWN_MAP)
static const int kFunctionOffset
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
static Persistent< Context > New(ExtensionConfiguration *extensions=NULL, Handle< ObjectTemplate > global_template=Handle< ObjectTemplate >(), Handle< Value > global_object=Handle< Value >())
#define RUNTIME_ENTRY(name, nargs, ressize)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra code(assertions) for debugging") DEFINE_bool(code_comments