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 <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Calls SetUpCache()/TearDownCache() for each subclass. | 82 // Calls SetUpCache()/TearDownCache() for each subclass. |
83 static void SetUpCaches(); | 83 static void SetUpCaches(); |
84 static void TearDownCaches(); | 84 static void TearDownCaches(); |
85 | 85 |
86 protected: | 86 protected: |
87 typedef BitField<Kind, 0, 3> KindField; | 87 typedef BitField<Kind, 0, 3> KindField; |
88 | 88 |
89 unsigned value_; | 89 unsigned value_; |
90 }; | 90 }; |
91 | 91 |
| 92 typedef std::vector<InstructionOperand*, zone_allocator<InstructionOperand*> > |
| 93 InstructionOperandVector; |
| 94 |
92 OStream& operator<<(OStream& os, const InstructionOperand& op); | 95 OStream& operator<<(OStream& os, const InstructionOperand& op); |
93 | 96 |
94 class UnallocatedOperand : public InstructionOperand { | 97 class UnallocatedOperand : public InstructionOperand { |
95 public: | 98 public: |
96 enum BasicPolicy { FIXED_SLOT, EXTENDED_POLICY }; | 99 enum BasicPolicy { FIXED_SLOT, EXTENDED_POLICY }; |
97 | 100 |
98 enum ExtendedPolicy { | 101 enum ExtendedPolicy { |
99 NONE, | 102 NONE, |
100 ANY, | 103 ANY, |
101 FIXED_REGISTER, | 104 FIXED_REGISTER, |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 DeoptimizationVector deoptimization_entries_; | 865 DeoptimizationVector deoptimization_entries_; |
863 }; | 866 }; |
864 | 867 |
865 OStream& operator<<(OStream& os, const InstructionSequence& code); | 868 OStream& operator<<(OStream& os, const InstructionSequence& code); |
866 | 869 |
867 } // namespace compiler | 870 } // namespace compiler |
868 } // namespace internal | 871 } // namespace internal |
869 } // namespace v8 | 872 } // namespace v8 |
870 | 873 |
871 #endif // V8_COMPILER_INSTRUCTION_H_ | 874 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |