diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
commit | e5564a3f29e0a818832a97c7c3b28d7c8b3b0460 (patch) | |
tree | 4b48a6577080d5e44da4d2cbebb7fe7951660de8 /deps/v8/src/macros.py | |
parent | 0df2f74d364826053641395b01c2fcb1345057a9 (diff) | |
download | node-new-e5564a3f29e0a818832a97c7c3b28d7c8b3b0460.tar.gz |
Upgrade V8 to 3.4.10
Diffstat (limited to 'deps/v8/src/macros.py')
-rw-r--r-- | deps/v8/src/macros.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/deps/v8/src/macros.py b/deps/v8/src/macros.py index 69f36c09c0..fc08cb129f 100644 --- a/deps/v8/src/macros.py +++ b/deps/v8/src/macros.py @@ -38,12 +38,13 @@ const GETTER = 0; const SETTER = 1; # These definitions must match the index of the properties in objects.h. -const kApiTagOffset = 0; -const kApiPropertyListOffset = 1; -const kApiSerialNumberOffset = 2; -const kApiConstructorOffset = 2; -const kApiPrototypeTemplateOffset = 5; -const kApiParentTemplateOffset = 6; +const kApiTagOffset = 0; +const kApiPropertyListOffset = 1; +const kApiSerialNumberOffset = 2; +const kApiConstructorOffset = 2; +const kApiPrototypeTemplateOffset = 5; +const kApiParentTemplateOffset = 6; +const kApiPrototypeAttributesOffset = 15; const NO_HINT = 0; const NUMBER_HINT = 1; @@ -127,7 +128,8 @@ macro TO_INT32(arg) = (%_IsSmi(%IS_VAR(arg)) ? arg : (arg >> 0)); macro TO_UINT32(arg) = (arg >>> 0); macro TO_STRING_INLINE(arg) = (IS_STRING(%IS_VAR(arg)) ? arg : NonStringToString(arg)); macro TO_NUMBER_INLINE(arg) = (IS_NUMBER(%IS_VAR(arg)) ? arg : NonNumberToNumber(arg)); - +macro TO_OBJECT_INLINE(arg) = (IS_SPEC_OBJECT(%IS_VAR(arg)) ? arg : ToObject(arg)); +macro JSON_NUMBER_TO_STRING(arg) = ((%_IsSmi(%IS_VAR(arg)) || arg - arg == 0) ? %_NumberToString(arg) : "null"); # Macros implemented in Python. python macro CHAR_CODE(str) = ord(str[1]); |