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_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/lithium-codegen.h" | 9 #include "src/lithium-codegen.h" |
10 #include "src/mips/lithium-gap-resolver-mips.h" | 10 #include "src/mips/lithium-gap-resolver-mips.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // Emit frame translation commands for an environment. | 137 // Emit frame translation commands for an environment. |
138 void WriteTranslation(LEnvironment* environment, Translation* translation); | 138 void WriteTranslation(LEnvironment* environment, Translation* translation); |
139 | 139 |
140 // Declare methods that deal with the individual node types. | 140 // Declare methods that deal with the individual node types. |
141 #define DECLARE_DO(type) void Do##type(L##type* node); | 141 #define DECLARE_DO(type) void Do##type(L##type* node); |
142 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 142 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
143 #undef DECLARE_DO | 143 #undef DECLARE_DO |
144 | 144 |
145 private: | 145 private: |
146 StrictMode strict_mode() const { return info()->strict_mode(); } | 146 LanguageMode language_mode() const { return info()->language_mode(); } |
147 | 147 |
148 Scope* scope() const { return scope_; } | 148 Scope* scope() const { return scope_; } |
149 | 149 |
150 Register scratch0() { return kLithiumScratchReg; } | 150 Register scratch0() { return kLithiumScratchReg; } |
151 Register scratch1() { return kLithiumScratchReg2; } | 151 Register scratch1() { return kLithiumScratchReg2; } |
152 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } | 152 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } |
153 | 153 |
154 LInstruction* GetNextInstruction(); | 154 LInstruction* GetNextInstruction(); |
155 | 155 |
156 void EmitClassOfTest(Label* if_true, | 156 void EmitClassOfTest(Label* if_true, |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 LCodeGen* codegen_; | 431 LCodeGen* codegen_; |
432 Label entry_; | 432 Label entry_; |
433 Label exit_; | 433 Label exit_; |
434 Label* external_exit_; | 434 Label* external_exit_; |
435 int instruction_index_; | 435 int instruction_index_; |
436 }; | 436 }; |
437 | 437 |
438 } } // namespace v8::internal | 438 } } // namespace v8::internal |
439 | 439 |
440 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 440 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |