summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-06 08:07:02 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-06 08:13:38 (GMT)
commit3350281b3b4640b24b09f2897b033678670ed37a (patch)
treeafac2b1d8e5686e1a8619bb289f0562ab8f396fc /src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp
parent520378cfedd63544a9689687256d2c89352ee561 (diff)
downloadQt-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/interpreter/Interpreter.cpp')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp b/src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp
index 9c930ca..5a8f474 100644
--- a/src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp
+++ b/src/3rdparty/webkit/JavaScriptCore/interpreter/Interpreter.cpp
@@ -3814,7 +3814,7 @@ JSValue Interpreter::privateExecute(ExecutionFlag flag, RegisterFile* registerFi
NEXT_INSTRUCTION();
}
DEFINE_OPCODE(op_debug) {
- /* debug debugHookID(n) firstLine(n) lastLine(n)
+ /* debug debugHookID(n) firstLine(n) lastLine(n) columnNumber(n)
Notifies the debugger of the current state of execution. This opcode
is only generated while the debugger is attached.
@@ -3822,6 +3822,7 @@ JSValue Interpreter::privateExecute(ExecutionFlag flag, RegisterFile* registerFi
int debugHookID = (++vPC)->u.operand;
int firstLine = (++vPC)->u.operand;
int lastLine = (++vPC)->u.operand;
+ int column = (++vPC)->u.operand;
debug(callFrame, static_cast<DebugHookID>(debugHookID), firstLine, lastLine);