5 #ifndef V8_OBJECTS_STACK_FRAME_INFO_H_ 6 #define V8_OBJECTS_STACK_FRAME_INFO_H_ 8 #include "src/objects.h" 11 #include "src/objects/object-macros.h" 18 DECL_INT_ACCESSORS(line_number)
19 DECL_INT_ACCESSORS(column_number)
20 DECL_INT_ACCESSORS(script_id)
21 DECL_ACCESSORS(script_name,
Object)
22 DECL_ACCESSORS(script_name_or_source_url,
Object)
23 DECL_ACCESSORS(function_name,
Object)
24 DECL_BOOLEAN_ACCESSORS(is_eval)
25 DECL_BOOLEAN_ACCESSORS(is_constructor)
26 DECL_BOOLEAN_ACCESSORS(is_wasm)
27 DECL_INT_ACCESSORS(flag)
28 DECL_INT_ACCESSORS(
id)
37 #define STACK_FRAME_INFO_FIELDS(V) \ 38 V(kLineNumberIndex, kTaggedSize) \ 39 V(kColumnNumberIndex, kTaggedSize) \ 40 V(kScriptIdIndex, kTaggedSize) \ 41 V(kScriptNameIndex, kTaggedSize) \ 42 V(kScriptNameOrSourceUrlIndex, kTaggedSize) \ 43 V(kFunctionNameIndex, kTaggedSize) \ 44 V(kFlagIndex, kTaggedSize) \ 45 V(kIdIndex, kTaggedSize) \ 49 DEFINE_FIELD_OFFSET_CONSTANTS(Struct::kHeaderSize, STACK_FRAME_INFO_FIELDS)
50 #undef STACK_FRAME_INFO_FIELDS 54 static const int kIsEvalBit = 0;
55 static const int kIsConstructorBit = 1;
56 static const int kIsWasmBit = 2;
64 #include "src/objects/object-macros-undef.h" 66 #endif // V8_OBJECTS_STACK_FRAME_INFO_H_