]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/MathObject.h
JavaScriptCore-7600.1.4.16.1.tar.gz
[apple/javascriptcore.git] / runtime / MathObject.h
index d8da039d801ca1bc8a6e05d9b5208b25e8bf6016..4b2a5bbece04dd2d30ce25d5e3775a3fe289e25a 100644 (file)
@@ -27,29 +27,27 @@ namespace JSC {
 
     class MathObject : public JSNonFinalObject {
     private:
-        MathObject(JSGlobalObject*, Structure*);
+        MathObject(VM&, Structure*);
 
     public:
         typedef JSNonFinalObject Base;
 
-        static MathObject* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
+        static MathObject* create(VM& vm, JSGlobalObject* globalObject, Structure* structure)
         {
-            MathObject* object = new (NotNull, allocateCell<MathObject>(*exec->heap())) MathObject(globalObject, structure);
-            object->finishCreation(exec, globalObject);
+            MathObject* object = new (NotNull, allocateCell<MathObject>(vm.heap)) MathObject(vm, structure);
+            object->finishCreation(vm, globalObject);
             return object;
         }
-        static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);
-        static bool getOwnPropertyDescriptor(JSObject*, ExecState*, const Identifier&, PropertyDescriptor&);
 
-        static const ClassInfo s_info;
+        DECLARE_INFO;
 
-        static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue prototype)
+        static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
         {
-            return Structure::create(globalData, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), &s_info);
+            return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
         }
 
     protected:
-        void finishCreation(ExecState*, JSGlobalObject*);
+        void finishCreation(VM&, JSGlobalObject*);
         static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSObject::StructureFlags;
     };