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_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_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/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Emit frame translation commands for an environment. | 130 // Emit frame translation commands for an environment. |
131 void WriteTranslation(LEnvironment* environment, Translation* translation); | 131 void WriteTranslation(LEnvironment* environment, Translation* translation); |
132 | 132 |
133 // Declare methods that deal with the individual node types. | 133 // Declare methods that deal with the individual node types. |
134 #define DECLARE_DO(type) void Do##type(L##type* node); | 134 #define DECLARE_DO(type) void Do##type(L##type* node); |
135 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 135 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
136 #undef DECLARE_DO | 136 #undef DECLARE_DO |
137 | 137 |
138 private: | 138 private: |
139 LanguageMode language_mode() const { return info()->language_mode(); } | |
140 | |
141 Scope* scope() const { return scope_; } | 139 Scope* scope() const { return scope_; } |
142 | 140 |
143 Register scratch0() { return kLithiumScratchReg; } | 141 Register scratch0() { return kLithiumScratchReg; } |
144 Register scratch1() { return kLithiumScratchReg2; } | 142 Register scratch1() { return kLithiumScratchReg2; } |
145 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } | 143 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } |
146 | 144 |
147 LInstruction* GetNextInstruction(); | 145 LInstruction* GetNextInstruction(); |
148 | 146 |
149 void EmitClassOfTest(Label* if_true, | 147 void EmitClassOfTest(Label* if_true, |
150 Label* if_false, | 148 Label* if_false, |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 Label entry_; | 421 Label entry_; |
424 Label exit_; | 422 Label exit_; |
425 Label* external_exit_; | 423 Label* external_exit_; |
426 int instruction_index_; | 424 int instruction_index_; |
427 }; | 425 }; |
428 | 426 |
429 } // namespace internal | 427 } // namespace internal |
430 } // namespace v8 | 428 } // namespace v8 |
431 | 429 |
432 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 430 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |