Changeset 37316 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 5, 2008, 10:38:32 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r37312 r37316 1 2008-10-05 Gavin Barraclough <[email protected]> 2 3 Reviewed by Cameron Zwarich. 4 5 Fix for bug #21387 - using SamplingTool with CTI. 6 7 (1) A repatch offset offset changes due to an additional instruction to update SamplingTool state. 8 (2) Fix an incusion order problem due to ExecState changes. 9 (3) Change to a MACHINE_SAMPLING macro, use of exec should now be accessing global data. 10 11 * VM/CTI.h: 12 (JSC::CTI::execute): 13 * VM/SamplingTool.h: 14 (JSC::SamplingTool::privateExecuteReturned): 15 * kjs/Shell.cpp: 16 1 17 2008-10-04 Mark Rowe <[email protected]> 2 18 -
trunk/JavaScriptCore/VM/CTI.h
r37297 r37316 37 37 #include <wtf/AlwaysInline.h> 38 38 #include <wtf/Vector.h> 39 40 #if ENABLE(SAMPLING_TOOL)41 #include "SamplingTool.h"42 #endif43 39 44 40 #if COMPILER(MSVC) … … 260 256 static const int repatchOffsetGetByIdBranchToSlowCase = 25; 261 257 static const int repatchOffsetGetByIdPropertyMapOffset = 34; 258 #if ENABLE(SAMPLING_TOOL) 259 static const int repatchOffsetGetByIdSlowCaseCall = 27 + ctiArgumentInitSize; 260 #else 262 261 static const int repatchOffsetGetByIdSlowCaseCall = 17 + ctiArgumentInitSize; 262 #endif 263 263 264 264 public: … … 326 326 inline static JSValue* execute(void* code, RegisterFile* registerFile, Register* r, JSGlobalData* globalData, JSValue** exception) 327 327 { 328 JSValue* value = ctiTrampoline(code, registerFile, r, exception, Profiler::enabledProfilerReference(), globalData); 329 #if ENABLE(SAMPLING_TOOL) 330 currentOpcodeID = static_cast<OpcodeID>(-1); 331 #endif 332 return value; 328 return ctiTrampoline(code, registerFile, r, exception, Profiler::enabledProfilerReference(), globalData); 333 329 } 334 330 -
trunk/JavaScriptCore/VM/SamplingTool.h
r36402 r37316 108 108 m_recordedCodeBlock = 0; 109 109 m_recordedVPC = 0; 110 #if ENABLE(SAMPLING_TOOL) 111 currentOpcodeID = static_cast<OpcodeID>(-1); 112 #endif 110 113 } 111 114 … … 143 146 #define MACHINE_SAMPLING_privateExecuteReturned() m_sampler->privateExecuteReturned() 144 147 #define MACHINE_SAMPLING_callingHostFunction() m_sampler->callingHostFunction() 145 #define CTI_MACHINE_SAMPLING_callingHostFunction() machine->m_sampler->callingHostFunction()148 #define CTI_MACHINE_SAMPLING_callingHostFunction() ARG_globalData->machine->m_sampler->callingHostFunction() 146 149 #else 147 150 #define SCOPENODE_SAMPLING_notifyOfScope(sampler) -
trunk/JavaScriptCore/kjs/Shell.cpp
r37242 r37316 28 28 #include "JSLock.h" 29 29 #include "PrototypeFunction.h" 30 #include "SamplingTool.h" 30 31 #include "completion.h" 31 32 #include "interpreter.h"
Note:
See TracChangeset
for help on using the changeset viewer.