18#ifndef INCLUDED_SERIALIZEDSCRIPTTYPES
19#define INCLUDED_SERIALIZEDSCRIPTTYPES
74 if (ret.
name ==
"Object")
83 JS::RootedValue serialize(rq.
cx);
84 if (!JS_GetProperty(rq.
cx, prototype,
"Serialize", &serialize))
87 if (serialize.isNull())
92 LOGERROR(
"Error serializing object '%s': non-null Serialize() but no matching Deserialize().", ret.
name);
#define LOGERROR(...)
Definition: CLogger.h:37
@ SCRIPT_TYPED_ARRAY_INT16
Definition: SerializedScriptTypes.h:49
@ SCRIPT_TYPED_ARRAY_INT32
Definition: SerializedScriptTypes.h:51
@ SCRIPT_TYPED_ARRAY_FLOAT64
Definition: SerializedScriptTypes.h:54
@ SCRIPT_TYPED_ARRAY_INT8
Definition: SerializedScriptTypes.h:47
@ SCRIPT_TYPED_ARRAY_UINT8
Definition: SerializedScriptTypes.h:48
@ SCRIPT_TYPED_ARRAY_FLOAT32
Definition: SerializedScriptTypes.h:53
@ SCRIPT_TYPED_ARRAY_UINT32
Definition: SerializedScriptTypes.h:52
@ SCRIPT_TYPED_ARRAY_UINT8_CLAMPED
Definition: SerializedScriptTypes.h:55
@ SCRIPT_TYPED_ARRAY_UINT16
Definition: SerializedScriptTypes.h:50
SPrototypeSerialization GetPrototypeInfo(const ScriptRequest &rq, JS::HandleObject prototype)
Definition: SerializedScriptTypes.h:66
@ SCRIPT_TYPE_TYPED_ARRAY
Definition: SerializedScriptTypes.h:34
@ SCRIPT_TYPE_NULL
Definition: SerializedScriptTypes.h:26
@ SCRIPT_TYPE_OBJECT_PROTOTYPE
Definition: SerializedScriptTypes.h:36
@ SCRIPT_TYPE_OBJECT_NUMBER
Definition: SerializedScriptTypes.h:37
@ SCRIPT_TYPE_OBJECT_STRING
Definition: SerializedScriptTypes.h:38
@ SCRIPT_TYPE_OBJECT_MAP
Definition: SerializedScriptTypes.h:40
@ SCRIPT_TYPE_ARRAY
Definition: SerializedScriptTypes.h:27
@ SCRIPT_TYPE_OBJECT_SET
Definition: SerializedScriptTypes.h:41
@ SCRIPT_TYPE_OBJECT
Definition: SerializedScriptTypes.h:28
@ SCRIPT_TYPE_OBJECT_BOOLEAN
Definition: SerializedScriptTypes.h:39
@ SCRIPT_TYPE_VOID
Definition: SerializedScriptTypes.h:25
@ SCRIPT_TYPE_BACKREF
Definition: SerializedScriptTypes.h:33
@ SCRIPT_TYPE_STRING
Definition: SerializedScriptTypes.h:29
@ SCRIPT_TYPE_INT
Definition: SerializedScriptTypes.h:30
@ SCRIPT_TYPE_ARRAY_BUFFER
Definition: SerializedScriptTypes.h:35
@ SCRIPT_TYPE_DOUBLE
Definition: SerializedScriptTypes.h:31
@ SCRIPT_TYPE_BOOLEAN
Definition: SerializedScriptTypes.h:32
Definition: Errors.cpp:51
Spidermonkey maintains some 'local' state via the JSContext* object.
Definition: ScriptRequest.h:60
JSContext * cx
Definition: ScriptRequest.h:92
bool GetObjectClassName(const ScriptRequest &rq, JS::HandleObject obj, T &name)
Definition: Object.h:135
Definition: SerializedScriptTypes.h:59
bool hasCustomSerialize
Definition: SerializedScriptTypes.h:61
bool hasNullSerialize
Definition: SerializedScriptTypes.h:63
bool hasCustomDeserialize
Definition: SerializedScriptTypes.h:62
std::string name
Definition: SerializedScriptTypes.h:60