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> |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 | 1102 |
1103 RpoNumber ToRpoNumber() const { | 1103 RpoNumber ToRpoNumber() const { |
1104 DCHECK_EQ(kRpoNumber, type()); | 1104 DCHECK_EQ(kRpoNumber, type()); |
1105 return RpoNumber::FromInt(static_cast<int>(value_)); | 1105 return RpoNumber::FromInt(static_cast<int>(value_)); |
1106 } | 1106 } |
1107 | 1107 |
1108 Handle<HeapObject> ToHeapObject() const; | 1108 Handle<HeapObject> ToHeapObject() const; |
1109 | 1109 |
1110 private: | 1110 private: |
1111 Type type_; | 1111 Type type_; |
1112 int64_t value_; | |
1113 #if V8_TARGET_ARCH_32_BIT | 1112 #if V8_TARGET_ARCH_32_BIT |
1114 RelocInfo::Mode rmode_ = RelocInfo::NONE32; | 1113 RelocInfo::Mode rmode_ = RelocInfo::NONE32; |
1115 #else | 1114 #else |
1116 RelocInfo::Mode rmode_ = RelocInfo::NONE64; | 1115 RelocInfo::Mode rmode_ = RelocInfo::NONE64; |
1117 #endif | 1116 #endif |
| 1117 int64_t value_; |
1118 }; | 1118 }; |
1119 | 1119 |
1120 | 1120 |
1121 std::ostream& operator<<(std::ostream& os, const Constant& constant); | 1121 std::ostream& operator<<(std::ostream& os, const Constant& constant); |
1122 | 1122 |
1123 | 1123 |
1124 // Forward declarations. | 1124 // Forward declarations. |
1125 class FrameStateDescriptor; | 1125 class FrameStateDescriptor; |
1126 | 1126 |
1127 enum class StateValueKind : uint8_t { | 1127 enum class StateValueKind : uint8_t { |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 }; | 1673 }; |
1674 | 1674 |
1675 V8_EXPORT_PRIVATE std::ostream& operator<<( | 1675 V8_EXPORT_PRIVATE std::ostream& operator<<( |
1676 std::ostream& os, const PrintableInstructionSequence& code); | 1676 std::ostream& os, const PrintableInstructionSequence& code); |
1677 | 1677 |
1678 } // namespace compiler | 1678 } // namespace compiler |
1679 } // namespace internal | 1679 } // namespace internal |
1680 } // namespace v8 | 1680 } // namespace v8 |
1681 | 1681 |
1682 #endif // V8_COMPILER_INSTRUCTION_H_ | 1682 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |