OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_SOURCE_POSITION_TABLE_H_ | 5 #ifndef V8_SOURCE_POSITION_TABLE_H_ |
6 #define V8_SOURCE_POSITION_TABLE_H_ | 6 #define V8_SOURCE_POSITION_TABLE_H_ |
7 | 7 |
8 #include "src/assert-scope.h" | 8 #include "src/assert-scope.h" |
9 #include "src/checks.h" | 9 #include "src/checks.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
11 #include "src/handles.h" | |
12 #include "src/source-position.h" | 11 #include "src/source-position.h" |
13 #include "src/zone/zone-containers.h" | 12 #include "src/zone/zone-containers.h" |
14 | 13 |
15 namespace v8 { | 14 namespace v8 { |
16 namespace internal { | 15 namespace internal { |
17 | 16 |
18 class AbstractCode; | 17 class AbstractCode; |
19 class BytecodeArray; | 18 class BytecodeArray; |
20 class ByteArray; | 19 class ByteArray; |
| 20 template <typename T> |
| 21 class Handle; |
21 class Isolate; | 22 class Isolate; |
22 class Zone; | 23 class Zone; |
23 | 24 |
24 struct PositionTableEntry { | 25 struct PositionTableEntry { |
25 PositionTableEntry() | 26 PositionTableEntry() |
26 : code_offset(0), source_position(0), is_statement(false) {} | 27 : code_offset(0), source_position(0), is_statement(false) {} |
27 PositionTableEntry(int offset, int64_t source, bool statement) | 28 PositionTableEntry(int offset, int64_t source, bool statement) |
28 : code_offset(offset), source_position(source), is_statement(statement) {} | 29 : code_offset(offset), source_position(source), is_statement(statement) {} |
29 | 30 |
30 int code_offset; | 31 int code_offset; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 ByteArray* table_; | 85 ByteArray* table_; |
85 int index_; | 86 int index_; |
86 PositionTableEntry current_; | 87 PositionTableEntry current_; |
87 DisallowHeapAllocation no_gc; | 88 DisallowHeapAllocation no_gc; |
88 }; | 89 }; |
89 | 90 |
90 } // namespace internal | 91 } // namespace internal |
91 } // namespace v8 | 92 } // namespace v8 |
92 | 93 |
93 #endif // V8_SOURCE_POSITION_TABLE_H_ | 94 #endif // V8_SOURCE_POSITION_TABLE_H_ |
OLD | NEW |