Changeset 33581 in webkit for trunk/JavaScriptCore/profiler/Profiler.cpp
- Timestamp:
- May 19, 2008, 3:15:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/profiler/Profiler.cpp
r33532 r33581 122 122 for (ExecState* currentState = exec; currentState; currentState = currentState->callingExecState()) { 123 123 if (FunctionImp* functionImp = currentState->function()) 124 names. prepend(getFunctionName(functionImp));124 names.append(getFunctionName(functionImp)); 125 125 else if (ScopeNode* scopeNode = currentState->scopeNode()) 126 names. prepend(Script + scopeNode->sourceURL() + ": " + UString::from(scopeNode->lineNo() + 1)); // FIXME: Why is the line number always off by one?126 names.append(Script + scopeNode->sourceURL() + ": " + UString::from(scopeNode->lineNo() + 1)); // FIXME: Why is the line number always off by one? 127 127 } 128 128 } … … 130 130 void getStackNames(Vector<UString>& names, ExecState* exec, JSObject* calledFunction) 131 131 { 132 getStackNames(names, exec);133 132 if (calledFunction->inherits(&FunctionImp::info)) 134 133 names.append(getFunctionName(static_cast<FunctionImp*>(calledFunction))); 135 134 else if (calledFunction->inherits(&InternalFunctionImp::info)) 136 135 names.append(static_cast<InternalFunctionImp*>(calledFunction)->functionName().ustring()); 136 getStackNames(names, exec); 137 137 } 138 138 … … 140 140 void getStackNames(Vector<UString>& names, ExecState* exec, const UString& sourceURL, int startingLineNumber) 141 141 { 142 names.append(Script + sourceURL + ": " + UString::from(startingLineNumber + 1)); 142 143 getStackNames(names, exec); 143 names.append(Script + sourceURL + ": " + UString::from(startingLineNumber + 1));144 144 } 145 145
Note:
See TracChangeset
for help on using the changeset viewer.