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