Changeset 147858 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.h
- Timestamp:
- Apr 6, 2013, 3:47:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.h
r147846 r147858 80 80 StackFrameCodeType codeType; 81 81 Strong<ExecutableBase> executable; 82 int line; 82 Strong<UnlinkedCodeBlock> codeBlock; 83 RefPtr<SourceProvider> code; 84 int lineOffset; 85 unsigned characterOffset; 86 unsigned bytecodeOffset; 83 87 String sourceURL; 84 String toString(CallFrame* callFrame) const 85 { 86 StringBuilder traceBuild; 87 String functionName = friendlyFunctionName(callFrame); 88 String sourceURL = friendlySourceURL(); 89 traceBuild.append(functionName); 90 if (!sourceURL.isEmpty()) { 91 if (!functionName.isEmpty()) 92 traceBuild.append('@'); 93 traceBuild.append(sourceURL); 94 if (line > -1) { 95 traceBuild.append(':'); 96 traceBuild.appendNumber(line); 97 } 98 } 99 return traceBuild.toString().impl(); 100 } 88 JS_EXPORT_PRIVATE String toString(CallFrame*); 101 89 String friendlySourceURL() const 102 90 { … … 138 126 return traceLine.isNull() ? emptyString() : traceLine; 139 127 } 140 unsigned friendlyLineNumber() const 141 { 142 return line > -1 ? line : 0; 143 } 128 JS_EXPORT_PRIVATE unsigned line(); 129 JS_EXPORT_PRIVATE unsigned column(); 130 JS_EXPORT_PRIVATE void expressionInfo(int& divot, int& startOffset, int& endOffset); 144 131 }; 145 132 … … 233 220 NEVER_INLINE void debug(CallFrame*, DebugHookID, int firstLine, int lastLine, int column); 234 221 static const String getTraceLine(CallFrame*, StackFrameCodeType, const String&, int); 235 JS_EXPORT_PRIVATE static void getStackTrace(JSGlobalData*, Vector<StackFrame>& results );236 static void addStackTraceIfNecessary(CallFrame*, JS Object*error);222 JS_EXPORT_PRIVATE static void getStackTrace(JSGlobalData*, Vector<StackFrame>& results, size_t maxStackSize = std::numeric_limits<size_t>::max()); 223 static void addStackTraceIfNecessary(CallFrame*, JSValue error); 237 224 238 225 void dumpSampleData(ExecState* exec);
Note:
See TracChangeset
for help on using the changeset viewer.