Skip to content

Instantly share code, notes, and snippets.

@ErikCorryGoogle
Created January 15, 2017 11:29
Show Gist options
  • Save ErikCorryGoogle/d71075b6c7297f1021df94faa3ccc4ef to your computer and use it in GitHub Desktop.
Save ErikCorryGoogle/d71075b6c7297f1021df94faa3ccc4ef to your computer and use it in GitHub Desktop.
Spidermonkey tags
/*
* Type tags stored in the low bits of a jsval.
*/
#define JSVAL_OBJECT 0x0 /* untagged reference to object */
#define JSVAL_INT 0x1 /* tagged 31-bit integer value */
#define JSVAL_DOUBLE 0x2 /* tagged reference to double */
#define JSVAL_STRING 0x4 /* tagged reference to string */
#define JSVAL_BOOLEAN 0x6 /* tagged boolean value */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment