diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-04 11:36:06 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-08-04 13:35:16 (GMT) |
commit | cd23e93e30be026a6bd4a9d5e3d3cbec3cf97621 (patch) | |
tree | d62bd5eac08af7ff701035a5337686471bc4c13e /src/script/bridge/qscriptobject_p.h | |
parent | 109b4d19e2c677c3eafaf6b4a9df605cb3aeb481 (diff) | |
download | Qt-cd23e93e30be026a6bd4a9d5e3d3cbec3cf97621.zip Qt-cd23e93e30be026a6bd4a9d5e3d3cbec3cf97621.tar.gz Qt-cd23e93e30be026a6bd4a9d5e3d3cbec3cf97621.tar.bz2 |
Use a more reliable method to dinstinguish between an op_call and an op_construct
The two opcode operand looks like this.
-7 -6 -5 -4 -3 -2 -1
op_construct dst(r) func(r) argCount(n) registerOffset(n) proto(r) thisRegister(r)
op_call dst(r) func(r) argCount(n) registerOffset(n)
as the registerOffset must always be bigger than any register we can
use that knoweldge to differenciate the two calls
Note that this is only the fallback used for JavaScript function. native
function still uses the QScriptActivationObject
Reviewed-by: Kent Hansen
Diffstat (limited to 'src/script/bridge/qscriptobject_p.h')
0 files changed, 0 insertions, 0 deletions