Changeset 36997 in webkit for trunk/JavaScriptCore/VM/CTI.h
- Timestamp:
- Sep 27, 2008, 10:19:39 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CTI.h
r36976 r36997 57 57 #define CTI_ARGS_r 0x0F 58 58 #define CTI_ARGS_scopeChain 0x10 59 #define CTI_ARGS_codeBlock 0x11 60 #define CTI_ARGS_exception 0x12 61 #define CTI_ARGS_profilerReference 0x13 59 #define CTI_ARGS_exception 0x11 60 #define CTI_ARGS_profilerReference 0x12 62 61 #define ARG_exec ((ExecState*)(ARGS)[CTI_ARGS_exec]) 63 62 #define ARG_registerFile ((RegisterFile*)(ARGS)[CTI_ARGS_registerFile]) 64 63 #define ARG_r ((Register*)(ARGS)[CTI_ARGS_r]) 65 64 #define ARG_scopeChain ((ScopeChainNode*)(ARGS)[CTI_ARGS_scopeChain]) 66 #define ARG_codeBlock ((CodeBlock*)(ARGS)[CTI_ARGS_codeBlock])67 65 #define ARG_exception ((JSValue**)(ARGS)[CTI_ARGS_exception]) 68 66 #define ARG_profilerReference ((Profiler**)(ARGS)[CTI_ARGS_profilerReference]) 69 67 70 68 #define ARG_setScopeChain(newScopeChain) (*(volatile ScopeChainNode**)&(ARGS)[CTI_ARGS_scopeChain] = newScopeChain) 71 #define ARG_setCodeBlock(newCodeBlock) (*(volatile CodeBlock**)&(ARGS)[CTI_ARGS_codeBlock] = newCodeBlock)72 69 #define ARG_setR(newR) (*(volatile Register**)&(ARGS)[CTI_ARGS_r] = newR) 73 70 #define ARG_set2ndResult(new2ndResult) (*(volatile JSValue**)&(ARGS)[CTI_ARGS_2ndResult] = new2ndResult) … … 239 236 240 237 extern "C" { 241 JSValue* ctiTrampoline(void* code, ExecState* exec, RegisterFile* registerFile, Register* r, ScopeChainNode* scopeChain, CodeBlock* codeBlock,JSValue** exception, Profiler**);238 JSValue* ctiTrampoline(void* code, ExecState* exec, RegisterFile* registerFile, Register* r, ScopeChainNode* scopeChain, JSValue** exception, Profiler**); 242 239 void ctiVMThrowTrampoline(); 243 240 }; … … 323 320 } 324 321 325 inline static JSValue* execute(void* code, ExecState* exec, RegisterFile* registerFile, Register* r, ScopeChainNode* scopeChain, CodeBlock* codeBlock,JSValue** exception)326 { 327 JSValue* value = ctiTrampoline(code, exec, registerFile, r, scopeChain, codeBlock,exception, Profiler::enabledProfilerReference());322 inline static JSValue* execute(void* code, ExecState* exec, RegisterFile* registerFile, Register* r, ScopeChainNode* scopeChain, JSValue** exception) 323 { 324 JSValue* value = ctiTrampoline(code, exec, registerFile, r, scopeChain, exception, Profiler::enabledProfilerReference()); 328 325 #if ENABLE(SAMPLING_TOOL) 329 326 currentOpcodeID = static_cast<OpcodeID>(-1);
Note:
See TracChangeset
for help on using the changeset viewer.