diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/StrictEvalActivation.h')
| -rw-r--r-- | Source/JavaScriptCore/runtime/StrictEvalActivation.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/JavaScriptCore/runtime/StrictEvalActivation.h b/Source/JavaScriptCore/runtime/StrictEvalActivation.h index e02bb615d..13157f68a 100644 --- a/Source/JavaScriptCore/runtime/StrictEvalActivation.h +++ b/Source/JavaScriptCore/runtime/StrictEvalActivation.h @@ -33,12 +33,13 @@ namespace JSC { class StrictEvalActivation : public JSScope { public: typedef JSScope Base; + static const unsigned StructureFlags = Base::StructureFlags | IsEnvironmentRecord; - static StrictEvalActivation* create(ExecState* exec) + static StrictEvalActivation* create(ExecState* exec, JSScope* currentScope) { - StrictEvalActivation* activation = new (NotNull, allocateCell<StrictEvalActivation>(*exec->heap())) StrictEvalActivation(exec); - activation->finishCreation(exec->vm()); - return activation; + StrictEvalActivation* lexicalEnvironment = new (NotNull, allocateCell<StrictEvalActivation>(*exec->heap())) StrictEvalActivation(exec, currentScope); + lexicalEnvironment->finishCreation(exec->vm()); + return lexicalEnvironment; } static bool deleteProperty(JSCell*, ExecState*, PropertyName); @@ -51,11 +52,8 @@ public: DECLARE_INFO; -protected: - static const unsigned StructureFlags = IsEnvironmentRecord | Base::StructureFlags; - private: - StrictEvalActivation(ExecState*); + StrictEvalActivation(ExecState*, JSScope*); }; } // namespace JSC |
