diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/MathObject.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/MathObject.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/Source/JavaScriptCore/runtime/MathObject.h b/Source/JavaScriptCore/runtime/MathObject.h index 4b2a5bbec..486dac43d 100644 --- a/Source/JavaScriptCore/runtime/MathObject.h +++ b/Source/JavaScriptCore/runtime/MathObject.h @@ -18,39 +18,39 @@ * */ -#ifndef MathObject_h -#define MathObject_h +#pragma once #include "JSObject.h" namespace JSC { - class MathObject : public JSNonFinalObject { - private: - MathObject(VM&, Structure*); +class MathObject : public JSNonFinalObject { +private: + MathObject(VM&, Structure*); - public: - typedef JSNonFinalObject Base; +public: + typedef JSNonFinalObject Base; - static MathObject* create(VM& vm, JSGlobalObject* globalObject, Structure* structure) - { - MathObject* object = new (NotNull, allocateCell<MathObject>(vm.heap)) MathObject(vm, structure); - object->finishCreation(vm, globalObject); - return object; - } + static MathObject* create(VM& vm, JSGlobalObject* globalObject, Structure* structure) + { + MathObject* object = new (NotNull, allocateCell<MathObject>(vm.heap)) MathObject(vm, structure); + object->finishCreation(vm, globalObject); + return object; + } - DECLARE_INFO; + DECLARE_INFO; - static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype) - { - return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info()); - } + static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype) + { + return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info()); + } - protected: - void finishCreation(VM&, JSGlobalObject*); - static const unsigned StructureFlags = OverridesGetOwnPropertySlot | JSObject::StructureFlags; - }; +protected: + void finishCreation(VM&, JSGlobalObject*); +}; -} // namespace JSC +EncodedJSValue JSC_HOST_CALL mathProtoFuncAbs(ExecState*); +EncodedJSValue JSC_HOST_CALL mathProtoFuncFloor(ExecState*); +EncodedJSValue JSC_HOST_CALL mathProtoFuncTrunc(ExecState*); -#endif // MathObject_h +} // namespace JSC |