summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-02-12 16:23:52 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2013-02-12 22:48:19 +0100
commit4be3e757348fc393cb93dbf8f9fc81ea6d57a408 (patch)
tree4dd2d305c6ff1d9832bd50b6e08101971530b320 /tools
parent6cd0e478860382d4ab5cf50383a464f0780893b4 (diff)
Implement a first iteration of the fast property lookup scheme
Fast lookups still require a function call, and will only work for properties defined on the object itself. Properties of the prototype will still be slow. Change-Id: I07c601998d312b1bd8e9977708d3375bf72df3e3 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/v4/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/v4/main.cpp b/tools/v4/main.cpp
index 2516386e..01d4f8fd 100644
--- a/tools/v4/main.cpp
+++ b/tools/v4/main.cpp
@@ -400,6 +400,7 @@ int main(int argc, char *argv[])
vm.globalCode = f;
ctx->strictMode = f->isStrict;
+ ctx->lookups = f->lookups;
if (debugger)
debugger->aboutToCall(0, ctx);
QQmlJS::VM::Value result = f->code(ctx, f->codeData);