diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-29 22:37:25 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-30 12:28:38 +0100 |
commit | f26d5c36cff33cc8a968c87a69e9dddbb4278855 (patch) | |
tree | 185ef14f30ed409cb74ff8cf11ad8223597cb5ad /llvm_runtime.cpp | |
parent | f00cf7cfae716f5e5af2d0952c3a822744977811 (diff) |
Get rid of variableEnvironment
Found out that the variableEnv is only required
for two use cases: To expose the exception in the
catch statement, and to create temporary
environments for the with() statment. Both can be
better handled differently and don't require the
overhead of two environments.
Change-Id: I149e1fd7bdfc3267544b141b6f94e46e42cf641b
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'llvm_runtime.cpp')
-rw-r--r-- | llvm_runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_runtime.cpp b/llvm_runtime.cpp index 9205dd575c..c5d1fd0144 100644 --- a/llvm_runtime.cpp +++ b/llvm_runtime.cpp @@ -55,7 +55,7 @@ Value __qmljs_llvm_return(ExecutionContext */*ctx*/, Value *result) Value *__qmljs_llvm_get_argument(ExecutionContext *ctx, int index) { - return &ctx->variableEnvironment->arguments[index]; + return &ctx->lexicalEnvironment->arguments[index]; } void __qmljs_llvm_init_undefined(Value *result) |