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 const int kFunctionOffset
static Flags ComputeFlags(Kind kind, InlineCacheState ic_state=UNINITIALIZED, ExtraICState extra_ic_state=kNoExtraICState, PropertyType type=NORMAL, int argc=-1, InlineCacheHolderFlag holder=OWN_MAP)
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 trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt 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 enable use of ARMv7 instructions if 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)