summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/MathObject.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/runtime/MathObject.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c.tar.gz
Diffstat (limited to 'Source/JavaScriptCore/runtime/MathObject.h')
-rw-r--r--Source/JavaScriptCore/runtime/MathObject.h48
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