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. |
| 27 class SourcePosition; |
| 28 |
26 namespace compiler { | 29 namespace compiler { |
27 | 30 |
28 // Forward declarations. | 31 // Forward declarations. |
29 class Schedule; | 32 class Schedule; |
30 | 33 class SourcePositionTable; |
31 | 34 |
32 class InstructionOperand { | 35 class InstructionOperand { |
33 public: | 36 public: |
34 static const int kInvalidVirtualRegister = -1; | 37 static const int kInvalidVirtualRegister = -1; |
35 | 38 |
36 // TODO(dcarney): recover bit. INVALID can be represented as UNALLOCATED with | 39 // TODO(dcarney): recover bit. INVALID can be represented as UNALLOCATED with |
37 // kInvalidVirtualRegister and some DCHECKS. | 40 // kInvalidVirtualRegister and some DCHECKS. |
38 enum Kind { | 41 enum Kind { |
39 INVALID, | 42 INVALID, |
40 UNALLOCATED, | 43 UNALLOCATED, |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 }; | 1538 }; |
1536 | 1539 |
1537 V8_EXPORT_PRIVATE std::ostream& operator<<( | 1540 V8_EXPORT_PRIVATE std::ostream& operator<<( |
1538 std::ostream& os, const PrintableInstructionSequence& code); | 1541 std::ostream& os, const PrintableInstructionSequence& code); |
1539 | 1542 |
1540 } // namespace compiler | 1543 } // namespace compiler |
1541 } // namespace internal | 1544 } // namespace internal |
1542 } // namespace v8 | 1545 } // namespace v8 |
1543 | 1546 |
1544 #endif // V8_COMPILER_INSTRUCTION_H_ | 1547 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |