diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-02-26 11:57:12 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-02-26 11:57:12 +0400 |
commit | 3d913fec83e7290fd0f694027f7f9904ffd09970 (patch) | |
tree | d419acf729b992eaa3c4016bb015b1ecfcf081fa /src/v8abbr.h | |
parent | 88befa6021d136257939a2caba14e69ad9c43dd5 (diff) |
Revert "sunos: unbreak build after v8 downgrade"
This reverts commit f80f3c5f62a3955636c1af1872ef9539a0b01cb0.
Diffstat (limited to 'src/v8abbr.h')
-rw-r--r-- | src/v8abbr.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/v8abbr.h b/src/v8abbr.h index ac4a1693952..95ddb6a6611 100644 --- a/src/v8abbr.h +++ b/src/v8abbr.h @@ -7,9 +7,9 @@ #define V8_ABBR_H /* Frame pointer offsets */ -#define V8_OFF_FP_FUNC ((uint32_t)V8DBG_OFF_FP_FUNCTION) -#define V8_OFF_FP_CONTEXT ((uint32_t)V8DBG_OFF_FP_CONTEXT) -#define V8_OFF_FP_MARKER ((uint32_t)V8DBG_OFF_FP_MARKER) +#define V8_OFF_FP_FUNC V8DBG_OFF_FP_FUNCTION +#define V8_OFF_FP_CONTEXT V8DBG_OFF_FP_CONTEXT +#define V8_OFF_FP_MARKER V8DBG_OFF_FP_MARKER /* Stack frame types */ #define V8_FT_ENTRY V8DBG_FRAMETYPE_ENTRYFRAME @@ -22,9 +22,9 @@ #define V8_FT_ADAPTOR V8DBG_FRAMETYPE_ARGUMENTSADAPTORFRAME /* Identification masks and tags */ -#define V8_SmiTagMask V8DBG_SMITAGMASK -#define V8_SmiTag V8DBG_SMITAG -#define V8_SmiValueShift V8_SmiTagMask +#define V8_SmiTagMask (V8DBG_SMITAGMASK) +#define V8_SmiTag (V8DBG_SMITAG) +#define V8_SmiValueShift (V8DBG_SMISHIFTSIZE + V8DBG_SMITAGMASK) #define V8_HeapObjectTagMask V8DBG_HEAPOBJECTTAGMASK #define V8_HeapObjectTag V8DBG_HEAPOBJECTTAG @@ -45,7 +45,7 @@ #define V8_IT_CODE V8DBG_TYPE_CODE__CODE_TYPE /* Node-specific offsets */ -#define NODE_OFF_EXTSTR_DATA 0x4 +#define NODE_OFF_EXTSTR_DATA sizeof(void*) /* Heap class->field offsets */ #define V8_OFF_HEAP(off) ((off) - 1) @@ -67,7 +67,7 @@ #define V8_OFF_STR_LENGTH \ V8_OFF_HEAP(V8DBG_CLASS_STRING__LENGTH__SMI) #define V8_OFF_STR_CHARS \ - V8_OFF_HEAP(V8DBG_CLASS_SEQASCIISTRING__CHARS__CHAR) + V8_OFF_HEAP(V8DBG_CLASS_SEQONEBYTESTRING__CHARS__CHAR) #define V8_OFF_CONSSTR_CAR \ V8_OFF_HEAP(V8DBG_CLASS_CONSSTRING__FIRST__STRING) #define V8_OFF_CONSSTR_CDR \ |