OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_COMPILER_INSTRUCTION_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_H_ |
6 #define V8_COMPILER_INSTRUCTION_H_ | 6 #define V8_COMPILER_INSTRUCTION_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "src/base/compiler-specific.h" | 13 #include "src/base/compiler-specific.h" |
14 #include "src/compiler/common-operator.h" | 14 #include "src/compiler/common-operator.h" |
15 #include "src/compiler/frame.h" | 15 #include "src/compiler/frame.h" |
16 #include "src/compiler/instruction-codes.h" | 16 #include "src/compiler/instruction-codes.h" |
17 #include "src/compiler/opcodes.h" | 17 #include "src/compiler/opcodes.h" |
18 #include "src/compiler/source-position.h" | |
19 #include "src/globals.h" | 18 #include "src/globals.h" |
20 #include "src/macro-assembler.h" | 19 #include "src/macro-assembler.h" |
21 #include "src/register-configuration.h" | 20 #include "src/register-configuration.h" |
22 #include "src/zone/zone-allocator.h" | 21 #include "src/zone/zone-allocator.h" |
23 | 22 |
24 namespace v8 { | 23 namespace v8 { |
25 namespace internal { | 24 namespace internal { |
25 | |
26 // Forward declarations. | |
vogelheim
2016/11/07 17:53:27
nitpick: Drop comment. (As explained elsewhere. Pl
| |
27 class SourcePosition; | |
28 | |
26 namespace compiler { | 29 namespace compiler { |
27 | 30 |
28 // Forward declarations. | 31 // Forward declarations. |
29 class Schedule; | 32 class Schedule; |
33 class SourcePositionTable; | |
30 | 34 |
31 class V8_EXPORT_PRIVATE InstructionOperand { | 35 class V8_EXPORT_PRIVATE InstructionOperand { |
32 public: | 36 public: |
33 static const int kInvalidVirtualRegister = -1; | 37 static const int kInvalidVirtualRegister = -1; |
34 | 38 |
35 // TODO(dcarney): recover bit. INVALID can be represented as UNALLOCATED with | 39 // TODO(dcarney): recover bit. INVALID can be represented as UNALLOCATED with |
36 // kInvalidVirtualRegister and some DCHECKS. | 40 // kInvalidVirtualRegister and some DCHECKS. |
37 enum Kind { | 41 enum Kind { |
38 INVALID, | 42 INVALID, |
39 UNALLOCATED, | 43 UNALLOCATED, |
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1536 }; | 1540 }; |
1537 | 1541 |
1538 V8_EXPORT_PRIVATE std::ostream& operator<<( | 1542 V8_EXPORT_PRIVATE std::ostream& operator<<( |
1539 std::ostream& os, const PrintableInstructionSequence& code); | 1543 std::ostream& os, const PrintableInstructionSequence& code); |
1540 | 1544 |
1541 } // namespace compiler | 1545 } // namespace compiler |
1542 } // namespace internal | 1546 } // namespace internal |
1543 } // namespace v8 | 1547 } // namespace v8 |
1544 | 1548 |
1545 #endif // V8_COMPILER_INSTRUCTION_H_ | 1549 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |