~yolanda.robla/ubuntu/trusty/nodejs/add_distribution

« back to all changes in this revision

Viewing changes to src/v8constants.h

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 00:16:46 UTC
  • mfrom: (7.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20130814001646-bzlysfh8sd6mukbo
Tags: 0.10.15~dfsg1-4
* Update 2005 patch, adding a handful of tests that can fail on
  slow platforms.
* Add 1004 patch to fix test failures when writing NaN to buffer
  on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * The following offsets are derived from the V8 3.6.6.14 source.  A future
3
 
 * version of this helper will automatically generate this file based on the
4
 
 * debug metadata included in libv8.  See v8ustack.d for details on how these
5
 
 * values are used.
6
 
 */
7
 
 
8
 
#ifndef V8_CONSTANTS_H
9
 
#define V8_CONSTANTS_H
10
 
 
11
 
#if defined(__i386)
12
 
 
13
 
/*
14
 
 * Frame pointer offsets
15
 
 */
16
 
#define V8_OFF_FP_FUNC          (-0x8)
17
 
#define V8_OFF_FP_CONTEXT       (-0x4)
18
 
#define V8_OFF_FP_MARKER        (-0x8)
19
 
 
20
 
/*
21
 
 * Heap class->field offsets
22
 
 */
23
 
#define V8_OFF_HEAP(off)        ((off) - 1)
24
 
 
25
 
#define V8_OFF_FUNC_SHARED      V8_OFF_HEAP(0x14)
26
 
#define V8_OFF_SHARED_NAME      V8_OFF_HEAP(0x4)
27
 
#define V8_OFF_SHARED_INFERRED  V8_OFF_HEAP(0x24)
28
 
#define V8_OFF_SHARED_SCRIPT    V8_OFF_HEAP(0x1c)
29
 
#define V8_OFF_SHARED_FUNTOK    V8_OFF_HEAP(0x4c)
30
 
#define V8_OFF_SCRIPT_NAME      V8_OFF_HEAP(0x8)
31
 
#define V8_OFF_SCRIPT_LENDS     V8_OFF_HEAP(0x28)
32
 
#define V8_OFF_STR_LENGTH       V8_OFF_HEAP(0x4)
33
 
#define V8_OFF_STR_CHARS        V8_OFF_HEAP(0xc)
34
 
#define V8_OFF_CONSSTR_CAR      V8_OFF_HEAP(0xc)
35
 
#define V8_OFF_CONSSTR_CDR      V8_OFF_HEAP(0x10)
36
 
#define V8_OFF_EXTSTR_RSRC      V8_OFF_HEAP(0xc)
37
 
#define V8_OFF_FA_SIZE          V8_OFF_HEAP(0x4)
38
 
#define V8_OFF_FA_DATA          V8_OFF_HEAP(0x8)
39
 
#define V8_OFF_HEAPOBJ_MAP      V8_OFF_HEAP(0x0)
40
 
#define V8_OFF_MAP_ATTRS        V8_OFF_HEAP(0x8)
41
 
 
42
 
#define NODE_OFF_EXTSTR_DATA    0x4
43
 
 
44
 
/*
45
 
 * Stack frame types
46
 
 */
47
 
#define V8_FT_ENTRY             0x1
48
 
#define V8_FT_ENTRYCONSTRUCT    0x2
49
 
#define V8_FT_EXIT              0x3
50
 
#define V8_FT_JAVASCRIPT        0x4
51
 
#define V8_FT_OPTIMIZED         0x5
52
 
#define V8_FT_INTERNAL          0x6
53
 
#define V8_FT_CONSTRUCT         0x7
54
 
#define V8_FT_ADAPTOR           0x8
55
 
 
56
 
/*
57
 
 * Instance types
58
 
 */
59
 
#define V8_IT_FIXEDARRAY        0x9f
60
 
#define V8_IT_CODE              0x81
61
 
 
62
 
/*
63
 
 * Identification masks and tags
64
 
 */
65
 
#define V8_SmiTagMask           0x1
66
 
#define V8_SmiTag               0x0
67
 
#define V8_SmiValueShift        V8_SmiTagMask
68
 
 
69
 
#define V8_HeapObjectTagMask    0x3
70
 
#define V8_HeapObjectTag        0x1
71
 
 
72
 
#define V8_IsNotStringMask      0x80
73
 
#define V8_StringTag            0x0
74
 
 
75
 
#define V8_StringEncodingMask   0x4
76
 
#define V8_AsciiStringTag       0x4
77
 
 
78
 
#define V8_StringRepresentationMask     0x3
79
 
#define V8_SeqStringTag         0x0
80
 
#define V8_ConsStringTag        0x1
81
 
#define V8_ExternalStringTag    0x2
82
 
 
83
 
#else
84
 
#error "only i386 is supported for DTrace ustack helper"
85
 
#endif
86
 
 
87
 
#endif /* V8_CONSTANTS_H */