diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/runtime/StrictEvalActivation.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/JavaScriptCore/runtime/StrictEvalActivation.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/StrictEvalActivation.h | 21 |
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 |