mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Change the type of jsid in release builds so that it is always different than jsval
This commit is contained in:
parent
2f785b1cd5
commit
39cbca1cec
@ -3229,7 +3229,7 @@ js_CoerceArrayToCanvasImageData(JSObject *obj, jsuint offset, jsuint count,
|
||||
}
|
||||
|
||||
JS_FRIEND_API(JSObject *)
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, uint32 capacity, jsval **vector)
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, uint32_t capacity, jsval **vector)
|
||||
{
|
||||
JSObject *obj = js_NewArrayObject(cx, capacity, NULL);
|
||||
if (!obj)
|
||||
|
@ -254,7 +254,7 @@ js_Array(JSContext* cx, JSObject* obj, uintN argc, js::Value* argv, js::Value* r
|
||||
* resulting array has length and count both equal to |capacity|.
|
||||
*/
|
||||
JS_FRIEND_API(JSObject *)
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, uint32 capacity, jsval **vector);
|
||||
js_NewArrayObjectWithCapacity(JSContext *cx, uint32_t capacity, jsval **vector);
|
||||
|
||||
/*
|
||||
* Makes a fast clone of a dense array as long as the array only contains
|
||||
|
@ -709,8 +709,9 @@ extern "C++"
|
||||
|
||||
#else /* defined(JS_USE_JSVAL_JSID_STRUCT_TYPES) */
|
||||
|
||||
/* Use different primitive types so overloading works. */
|
||||
typedef JSVAL_ALIGNMENT uint64 jsval;
|
||||
typedef size_t jsid;
|
||||
typedef ptrdiff_t jsid;
|
||||
|
||||
/* Internal helper macros */
|
||||
#define JSVAL_BITS(v) (v)
|
||||
|
Loading…
Reference in New Issue
Block a user