aboutsummaryrefslogtreecommitdiffstats
path: root/llvm_runtime.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-18 23:33:06 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-19 10:33:35 +0100
commita2676884804fb523ee586f1ebc6a11353ec79fcb (patch)
tree485f9b97affb19a3a24c914f83159765d74b9f55 /llvm_runtime.cpp
parent4f1dfd1e260c238a0f8b1e3c7338431fa2972b90 (diff)
Better handling of contexts and environments
Make the ExecutionContext standard compliant. Move most of it's members into a new DeclarativeEnvironment data structure that contains locals and arguments. Change-Id: I094f559168810dbd3717d677fe28750076015976 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'llvm_runtime.cpp')
-rw-r--r--llvm_runtime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_runtime.cpp b/llvm_runtime.cpp
index b911ad4880..553f2fd1ac 100644
--- a/llvm_runtime.cpp
+++ b/llvm_runtime.cpp
@@ -55,7 +55,7 @@ void __qmljs_llvm_return(ExecutionContext *ctx, Value *result)
Value *__qmljs_llvm_get_argument(ExecutionContext *ctx, int index)
{
- return &ctx->arguments[index];
+ return &ctx->variableEnvironment->arguments[index];
}
void __qmljs_llvm_init_undefined(Value *result)