X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..81345200c95645a1b0d2635520f96ad55dfde63f:/runtime/BooleanConstructor.h diff --git a/runtime/BooleanConstructor.h b/runtime/BooleanConstructor.h index 2b6bafa..177f69e 100644 --- a/runtime/BooleanConstructor.h +++ b/runtime/BooleanConstructor.h @@ -25,37 +25,37 @@ namespace JSC { - class BooleanPrototype; +class BooleanPrototype; - class BooleanConstructor : public InternalFunction { - public: - typedef InternalFunction Base; +class BooleanConstructor : public InternalFunction { +public: + typedef InternalFunction Base; - static BooleanConstructor* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, BooleanPrototype* booleanPrototype) - { - BooleanConstructor* constructor = new (NotNull, allocateCell(*exec->heap())) BooleanConstructor(globalObject, structure); - constructor->finishCreation(exec, booleanPrototype); - return constructor; - } + static BooleanConstructor* create(VM& vm, Structure* structure, BooleanPrototype* booleanPrototype) + { + BooleanConstructor* constructor = new (NotNull, allocateCell(vm.heap)) BooleanConstructor(vm, structure); + constructor->finishCreation(vm, booleanPrototype); + return constructor; + } - static const ClassInfo s_info; + DECLARE_INFO; - static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype) - { - return Structure::create(globalData, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info); - } + static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype) + { + return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info()); + } - protected: - void finishCreation(ExecState*, BooleanPrototype*); +protected: + void finishCreation(VM&, BooleanPrototype*); - private: - BooleanConstructor(JSGlobalObject*, Structure*); - static ConstructType getConstructData(JSCell*, ConstructData&); - static CallType getCallData(JSCell*, CallData&); - }; +private: + BooleanConstructor(VM&, Structure*); + static ConstructType getConstructData(JSCell*, ConstructData&); + static CallType getCallData(JSCell*, CallData&); +}; - JSObject* constructBooleanFromImmediateBoolean(ExecState*, JSGlobalObject*, JSValue); - JSObject* constructBoolean(ExecState*, const ArgList&); +JSObject* constructBooleanFromImmediateBoolean(ExecState*, JSGlobalObject*, JSValue); +JSObject* constructBoolean(ExecState*, const ArgList&); } // namespace JSC