OLD | NEW |
1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_DEBUG_OBJECTS_INL_H_ | 5 #ifndef V8_OBJECTS_DEBUG_OBJECTS_INL_H_ |
6 #define V8_OBJECTS_DEBUG_OBJECTS_INL_H_ | 6 #define V8_OBJECTS_DEBUG_OBJECTS_INL_H_ |
7 | 7 |
8 #include "src/objects/debug-objects.h" | 8 #include "src/objects/debug-objects.h" |
9 | 9 |
10 #include "src/heap/heap-inl.h" | 10 #include "src/heap/heap-inl.h" |
11 | 11 |
12 // Has to be the last include (doesn't have include guards): | 12 // Has to be the last include (doesn't have include guards): |
13 #include "src/objects/object-macros.h" | 13 #include "src/objects/object-macros.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 CAST_ACCESSOR(BreakPointInfo) | 18 CAST_ACCESSOR(BreakPointInfo) |
19 CAST_ACCESSOR(DebugInfo) | 19 CAST_ACCESSOR(DebugInfo) |
| 20 CAST_ACCESSOR(CoverageInfo) |
20 | 21 |
21 SMI_ACCESSORS(DebugInfo, flags, kFlagsOffset) | 22 SMI_ACCESSORS(DebugInfo, flags, kFlagsOffset) |
22 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoOffset) | 23 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoOffset) |
23 SMI_ACCESSORS(DebugInfo, debugger_hints, kDebuggerHintsOffset) | 24 SMI_ACCESSORS(DebugInfo, debugger_hints, kDebuggerHintsOffset) |
24 ACCESSORS(DebugInfo, debug_bytecode_array, Object, kDebugBytecodeArrayOffset) | 25 ACCESSORS(DebugInfo, debug_bytecode_array, Object, kDebugBytecodeArrayOffset) |
25 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateOffset) | 26 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateOffset) |
| 27 ACCESSORS(DebugInfo, coverage_info, Object, kCoverageInfoOffset) |
26 | 28 |
27 SMI_ACCESSORS(BreakPointInfo, source_position, kSourcePositionOffset) | 29 SMI_ACCESSORS(BreakPointInfo, source_position, kSourcePositionOffset) |
28 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsOffset) | 30 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsOffset) |
29 | 31 |
30 bool DebugInfo::HasDebugBytecodeArray() { | 32 bool DebugInfo::HasDebugBytecodeArray() { |
31 return debug_bytecode_array()->IsBytecodeArray(); | 33 return debug_bytecode_array()->IsBytecodeArray(); |
32 } | 34 } |
33 | 35 |
34 bool DebugInfo::HasDebugCode() { | 36 bool DebugInfo::HasDebugCode() { |
35 Code* code = shared()->code(); | 37 Code* code = shared()->code(); |
(...skipping 16 matching lines...) Expand all Loading... |
52 DCHECK(HasDebugCode()); | 54 DCHECK(HasDebugCode()); |
53 return shared()->code(); | 55 return shared()->code(); |
54 } | 56 } |
55 | 57 |
56 } // namespace internal | 58 } // namespace internal |
57 } // namespace v8 | 59 } // namespace v8 |
58 | 60 |
59 #include "src/objects/object-macros-undef.h" | 61 #include "src/objects/object-macros-undef.h" |
60 | 62 |
61 #endif // V8_OBJECTS_DEBUG_OBJECTS_INL_H_ | 63 #endif // V8_OBJECTS_DEBUG_OBJECTS_INL_H_ |
OLD | NEW |