Changeset 155081 in webkit for trunk/Source/JavaScriptCore/API
- Timestamp:
- Sep 4, 2013, 5:40:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSContextRef.cpp
r155075 r155081 38 38 #include "Operations.h" 39 39 #include "SourceProvider.h" 40 #include "Stack Iterator.h"40 #include "StackVisitor.h" 41 41 #include <wtf/text/StringBuilder.h> 42 42 #include <wtf/text/StringHash.h> … … 222 222 } 223 223 224 Stack Iterator::Status operator()(StackIterator& iter)224 StackVisitor::Status operator()(StackVisitor& visitor) 225 225 { 226 226 if (m_remainingCapacityForFrameCapture) { 227 227 // If callee is unknown, but we've not added any frame yet, we should 228 228 // still add the frame, because something called us, and gave us arguments. 229 JSObject* callee = iter->callee();230 if (!callee && iter->index())231 return Stack Iterator::Done;229 JSObject* callee = visitor->callee(); 230 if (!callee && visitor->index()) 231 return StackVisitor::Done; 232 232 233 233 StringBuilder& builder = m_builder; … … 235 235 builder.append('\n'); 236 236 builder.append('#'); 237 builder.appendNumber( iter->index());237 builder.appendNumber(visitor->index()); 238 238 builder.append(' '); 239 builder.append( iter->functionName());239 builder.append(visitor->functionName()); 240 240 builder.appendLiteral("() at "); 241 builder.append( iter->sourceURL());242 if ( iter->isJSFrame()) {241 builder.append(visitor->sourceURL()); 242 if (visitor->isJSFrame()) { 243 243 builder.append(':'); 244 244 unsigned lineNumber; 245 245 unsigned unusedColumn; 246 iter->computeLineAndColumn(lineNumber, unusedColumn);246 visitor->computeLineAndColumn(lineNumber, unusedColumn); 247 247 builder.appendNumber(lineNumber); 248 248 } 249 249 250 250 if (!callee) 251 return Stack Iterator::Done;251 return StackVisitor::Done; 252 252 253 253 m_remainingCapacityForFrameCapture--; 254 return Stack Iterator::Continue;254 return StackVisitor::Continue; 255 255 } 256 return Stack Iterator::Done;256 return StackVisitor::Done; 257 257 } 258 258
Note:
See TracChangeset
for help on using the changeset viewer.