X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/runtime/StrictEvalActivation.h diff --git a/runtime/StrictEvalActivation.h b/runtime/StrictEvalActivation.h index e02bb61..13157f6 100644 --- a/runtime/StrictEvalActivation.h +++ b/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(*exec->heap())) StrictEvalActivation(exec); - activation->finishCreation(exec->vm()); - return activation; + StrictEvalActivation* lexicalEnvironment = new (NotNull, allocateCell(*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