summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/StrictEvalActivation.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/runtime/StrictEvalActivation.h')
-rw-r--r--Source/JavaScriptCore/runtime/StrictEvalActivation.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/Source/JavaScriptCore/runtime/StrictEvalActivation.h b/Source/JavaScriptCore/runtime/StrictEvalActivation.h
index e02bb615d..d800e9697 100644
--- a/Source/JavaScriptCore/runtime/StrictEvalActivation.h
+++ b/Source/JavaScriptCore/runtime/StrictEvalActivation.h
@@ -23,8 +23,7 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StrictEvalActivation_h
-#define StrictEvalActivation_h
+#pragma once
#include "JSScope.h"
@@ -33,12 +32,13 @@ namespace JSC {
class StrictEvalActivation : public JSScope {
public:
typedef JSScope Base;
+ static const unsigned StructureFlags = Base::StructureFlags | OverridesToThis;
- 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);
@@ -46,18 +46,13 @@ public:
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
- return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
+ return Structure::create(vm, globalObject, prototype, TypeInfo(StrictEvalActivationType, StructureFlags), info());
}
DECLARE_INFO;
-protected:
- static const unsigned StructureFlags = IsEnvironmentRecord | Base::StructureFlags;
-
private:
- StrictEvalActivation(ExecState*);
+ StrictEvalActivation(ExecState*, JSScope*);
};
} // namespace JSC
-
-#endif // StrictEvalActivation_h