diff options
author | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-06 08:07:02 (GMT) |
---|---|---|
committer | Jedrzej Nowacki <jedrzej.nowacki@nokia.com> | 2009-08-06 08:13:38 (GMT) |
commit | 3350281b3b4640b24b09f2897b033678670ed37a (patch) | |
tree | afac2b1d8e5686e1a8619bb289f0562ab8f396fc /src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp | |
parent | 520378cfedd63544a9689687256d2c89352ee561 (diff) | |
download | Qt-3350281b3b4640b24b09f2897b033678670ed37a.zip Qt-3350281b3b4640b24b09f2897b033678670ed37a.tar.gz Qt-3350281b3b4640b24b09f2897b033678670ed37a.tar.bz2 |
Force parser to send information about current column number.
Add new member in all statements nodes which suppose to be a
column number from parser. All calls to setLoc were changed, they
should pass 2xline number (first and last line) and column number of
current "cursor"(token?) position.
Develop op_debug opcode to contain column number.
Review by: Kent Hansen
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp')
-rw-r--r-- | src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp b/src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp index 0cb3813..4b943c2 100644 --- a/src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp +++ b/src/3rdparty/webkit/JavaScriptCore/bytecode/CodeBlock.cpp @@ -1087,7 +1087,8 @@ void CodeBlock::dump(ExecState* exec, const Vector<Instruction>::const_iterator& int debugHookID = (++it)->u.operand; int firstLine = (++it)->u.operand; int lastLine = (++it)->u.operand; - printf("[%4d] debug\t\t %s, %d, %d\n", location, debugHookName(debugHookID), firstLine, lastLine); + int column = (++it)->u.operand; + printf("[%4d] debug\t\t %s, %d, %d, %d\n", location, debugHookName(debugHookID), firstLine, lastLine, column); break; } case op_profile_will_call: { |