OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/crankshaft/lithium-codegen.h" | 9 #include "src/crankshaft/lithium-codegen.h" |
10 #include "src/crankshaft/mips/lithium-gap-resolver-mips.h" | 10 #include "src/crankshaft/mips/lithium-gap-resolver-mips.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Emit frame translation commands for an environment. | 128 // Emit frame translation commands for an environment. |
129 void WriteTranslation(LEnvironment* environment, Translation* translation); | 129 void WriteTranslation(LEnvironment* environment, Translation* translation); |
130 | 130 |
131 // Declare methods that deal with the individual node types. | 131 // Declare methods that deal with the individual node types. |
132 #define DECLARE_DO(type) void Do##type(L##type* node); | 132 #define DECLARE_DO(type) void Do##type(L##type* node); |
133 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 133 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
134 #undef DECLARE_DO | 134 #undef DECLARE_DO |
135 | 135 |
136 private: | 136 private: |
137 LanguageMode language_mode() const { return info()->language_mode(); } | |
138 | |
139 Scope* scope() const { return scope_; } | 137 Scope* scope() const { return scope_; } |
140 | 138 |
141 Register scratch0() { return kLithiumScratchReg; } | 139 Register scratch0() { return kLithiumScratchReg; } |
142 Register scratch1() { return kLithiumScratchReg2; } | 140 Register scratch1() { return kLithiumScratchReg2; } |
143 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } | 141 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } |
144 | 142 |
145 LInstruction* GetNextInstruction(); | 143 LInstruction* GetNextInstruction(); |
146 | 144 |
147 void EmitClassOfTest(Label* if_true, | 145 void EmitClassOfTest(Label* if_true, |
148 Label* if_false, | 146 Label* if_false, |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 Label entry_; | 418 Label entry_; |
421 Label exit_; | 419 Label exit_; |
422 Label* external_exit_; | 420 Label* external_exit_; |
423 int instruction_index_; | 421 int instruction_index_; |
424 }; | 422 }; |
425 | 423 |
426 } // namespace internal | 424 } // namespace internal |
427 } // namespace v8 | 425 } // namespace v8 |
428 | 426 |
429 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 427 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |