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_PPC_LITHIUM_CODEGEN_PPC_H_ | 5 #ifndef V8_PPC_LITHIUM_CODEGEN_PPC_H_ |
6 #define V8_PPC_LITHIUM_CODEGEN_PPC_H_ | 6 #define V8_PPC_LITHIUM_CODEGEN_PPC_H_ |
7 | 7 |
8 #include "src/ppc/lithium-ppc.h" | 8 #include "src/ppc/lithium-ppc.h" |
9 | 9 |
10 #include "src/ppc/lithium-gap-resolver-ppc.h" | 10 #include "src/ppc/lithium-gap-resolver-ppc.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Declare methods that deal with the individual node types. | 130 // Declare methods that deal with the individual node types. |
131 #define DECLARE_DO(type) void Do##type(L##type* node); | 131 #define DECLARE_DO(type) void Do##type(L##type* node); |
132 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 132 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
133 #undef DECLARE_DO | 133 #undef DECLARE_DO |
134 | 134 |
135 private: | 135 private: |
136 LanguageMode language_mode() const { return info()->language_mode(); } | 136 LanguageMode language_mode() const { return info()->language_mode(); } |
137 | 137 |
138 Scope* scope() const { return scope_; } | 138 Scope* scope() const { return scope_; } |
139 | 139 |
140 Register scratch0() { return r11; } | 140 Register scratch0() { return kLithiumScratch; } |
141 DoubleRegister double_scratch0() { return kScratchDoubleReg; } | 141 DoubleRegister double_scratch0() { return kScratchDoubleReg; } |
142 | 142 |
143 LInstruction* GetNextInstruction(); | 143 LInstruction* GetNextInstruction(); |
144 | 144 |
145 void EmitClassOfTest(Label* if_true, Label* if_false, | 145 void EmitClassOfTest(Label* if_true, Label* if_false, |
146 Handle<String> class_name, Register input, | 146 Handle<String> class_name, Register input, |
147 Register temporary, Register temporary2); | 147 Register temporary, Register temporary2); |
148 | 148 |
149 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } | 149 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } |
150 | 150 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 LCodeGen* codegen_; | 355 LCodeGen* codegen_; |
356 Label entry_; | 356 Label entry_; |
357 Label exit_; | 357 Label exit_; |
358 Label* external_exit_; | 358 Label* external_exit_; |
359 int instruction_index_; | 359 int instruction_index_; |
360 }; | 360 }; |
361 } // namespace internal | 361 } // namespace internal |
362 } // namespace v8 | 362 } // namespace v8 |
363 | 363 |
364 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_ | 364 #endif // V8_PPC_LITHIUM_CODEGEN_PPC_H_ |
OLD | NEW |