diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-24 22:07:02 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-25 10:20:25 +0100 |
commit | 87b31798170233b92f13ba4d39e0278fdf61e10e (patch) | |
tree | 8d2a106262de90fad6556985bb519f817641ccbd /qmljs_engine.h | |
parent | 2bd3fa3fc27379a78e8cca0e66eda800729ed8c9 (diff) |
Support for the with statement
Add the with object (list) to the environment, and check properties
there if it's available.
Generate IR statements implementing with() support.
Add two new builtin methods to enter and leave a with scope.
Implement support for the builtin's in masm.
Make sure exception handling works across with scopes.
Change-Id: I8257a16cfccc91a1acedfd740ade711b016b33fd
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r-- | qmljs_engine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h index 5460412576..8d5662783a 100644 --- a/qmljs_engine.h +++ b/qmljs_engine.h @@ -131,6 +131,7 @@ struct ExecutionEngine struct ExceptionHandler { ExecutionContext *context; + DeclarativeEnvironment::With *with; const uchar *code; // Interpreter state int targetTempIndex; // Interpreter state jmp_buf stackFrame; |