Changeset 36058 in webkit for trunk/JavaScriptCore/VM/Machine.cpp
- Timestamp:
- Sep 3, 2008, 10:35:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/Machine.cpp
r36055 r36058 798 798 MACHINE_SAMPLING_privateExecuteReturned(); 799 799 800 if (*profiler) {800 if (*profiler) 801 801 (*profiler)->didExecute(exec, programNode->sourceURL(), programNode->lineNo()); 802 if (!m_reentryDepth)803 (*profiler)->didFinishAllExecution(exec);804 }805 802 806 803 if (m_reentryDepth && lastGlobalObject && globalObject != lastGlobalObject) … … 860 857 861 858 MACHINE_SAMPLING_privateExecuteReturned(); 862 863 if (*profiler && !m_reentryDepth)864 (*profiler)->didFinishAllExecution(exec);865 859 866 860 m_registerFile.shrink(oldSize); … … 942 936 MACHINE_SAMPLING_privateExecuteReturned(); 943 937 944 if (*profiler) {938 if (*profiler) 945 939 (*profiler)->didExecute(exec, evalNode->sourceURL(), evalNode->lineNo()); 946 if (!m_reentryDepth)947 (*profiler)->didFinishAllExecution(exec);948 }949 940 950 941 m_registerFile.shrink(oldSize); … … 3412 3403 } 3413 3404 3414 JSValue* Machine::retrieveCaller(ExecState* exec, JSFunction* function) const3405 JSValue* Machine::retrieveCaller(ExecState* exec, InternalFunction* function) const 3415 3406 { 3416 3407 Register* callFrame = this->callFrame(exec, function); … … 3429 3420 } 3430 3421 3431 void Machine::retrieveLastCaller(ExecState* exec, int& lineNumber, int& sourceId, UString& sourceURL) const 3432 { 3422 void Machine::retrieveLastCaller(ExecState* exec, int& lineNumber, int& sourceId, UString& sourceURL, JSValue*& function) const 3423 { 3424 function = 0; 3433 3425 lineNumber = -1; 3434 3426 sourceURL = UString(); … … 3446 3438 sourceId = callerCodeBlock->ownerNode->sourceId(); 3447 3439 sourceURL = callerCodeBlock->ownerNode->sourceURL(); 3448 } 3449 3450 Register* Machine::callFrame(ExecState* exec, JSFunction* function) const 3440 3441 JSValue* callee = callFrame[RegisterFile::Callee].getJSValue(); 3442 if (callee->toThisObject(exec)->inherits(&InternalFunction::info)) 3443 function = retrieveCaller(exec, static_cast<InternalFunction*>(callee)); 3444 } 3445 3446 Register* Machine::callFrame(ExecState* exec, InternalFunction* function) const 3451 3447 { 3452 3448 Register* callFrame = exec->m_callFrame;
Note:
See TracChangeset
for help on using the changeset viewer.