diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-27 16:46:04 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2012-11-27 16:50:36 +0100 |
commit | 1f2dc8856e04047648163445871b891fa898a3c1 (patch) | |
tree | 0f3f3c3953b014631156d70fb2342b672364c90c /qv4ir_p.h | |
parent | 3125086ab8e9fe139a9870c1d23b248f04dcb4a3 (diff) |
Check for strict mode, and store it.
Change-Id: I88e48a982eb6d4041aed085de0420d98cf96d406
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qv4ir_p.h')
-rw-r--r-- | qv4ir_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -602,9 +602,11 @@ struct Function { const uchar *codeData; JSC::MacroAssemblerCodeRef codeRef; + int insideWith; + bool hasDirectEval: 1; bool hasNestedFunctions: 1; - int insideWith; + bool isStrict: 1; template <typename _Tp> _Tp *New() { return new (pool->allocate(sizeof(_Tp))) _Tp(); } @@ -615,9 +617,10 @@ struct Function { , maxNumberOfArguments(0) , code(0) , codeData(0) + , insideWith(0) , hasDirectEval(false) , hasNestedFunctions(false) - , insideWith(0) + , isStrict(false) { this->name = newString(name); } ~Function(); |