From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/JavaScriptCore/runtime/MathObject.h | 48 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'Source/JavaScriptCore/runtime/MathObject.h') 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(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(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 -- cgit v1.2.1