Changeset 146552 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Mar 21, 2013, 6:56:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r146318 r146552 1334 1334 } 1335 1335 1336 NEVER_INLINE void Interpreter::debug(CallFrame* callFrame, DebugHookID debugHookID, int firstLine, int lastLine, int c harPosition)1336 NEVER_INLINE void Interpreter::debug(CallFrame* callFrame, DebugHookID debugHookID, int firstLine, int lastLine, int column) 1337 1337 { 1338 1338 Debugger* debugger = callFrame->dynamicGlobalObject()->debugger(); 1339 1339 if (!debugger) 1340 1340 return; 1341 1342 CodeBlock* codeBlock = callFrame->codeBlock();1343 size_t actualCharPosition = charPosition + codeBlock->sourceOffset();1344 1345 SourceProvider* provider = codeBlock->source();1346 String source = provider->source();1347 size_t lineTerminatorPosition = source.reverseFindLineTerminator(actualCharPosition);1348 int column;1349 if (lineTerminatorPosition != notFound)1350 column = actualCharPosition - (lineTerminatorPosition + 1);1351 else1352 column = actualCharPosition;1353 1341 1354 1342 switch (debugHookID) {
Note:
See TracChangeset
for help on using the changeset viewer.