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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
7 | 7 |
8 #include "src/arm/lithium-arm.h" | 8 #include "src/arm/lithium-arm.h" |
9 | 9 |
10 #include "src/arm/lithium-gap-resolver-arm.h" | 10 #include "src/arm/lithium-gap-resolver-arm.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Emit frame translation commands for an environment. | 138 // Emit frame translation commands for an environment. |
139 void WriteTranslation(LEnvironment* environment, Translation* translation); | 139 void WriteTranslation(LEnvironment* environment, Translation* translation); |
140 | 140 |
141 // Declare methods that deal with the individual node types. | 141 // Declare methods that deal with the individual node types. |
142 #define DECLARE_DO(type) void Do##type(L##type* node); | 142 #define DECLARE_DO(type) void Do##type(L##type* node); |
143 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 143 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
144 #undef DECLARE_DO | 144 #undef DECLARE_DO |
145 | 145 |
146 private: | 146 private: |
147 StrictMode strict_mode() const { return info()->strict_mode(); } | 147 LanguageMode language_mode() const { return info()->language_mode(); } |
148 | 148 |
149 Scope* scope() const { return scope_; } | 149 Scope* scope() const { return scope_; } |
150 | 150 |
151 Register scratch0() { return r9; } | 151 Register scratch0() { return r9; } |
152 LowDwVfpRegister double_scratch0() { return kScratchDoubleReg; } | 152 LowDwVfpRegister double_scratch0() { return kScratchDoubleReg; } |
153 | 153 |
154 LInstruction* GetNextInstruction(); | 154 LInstruction* GetNextInstruction(); |
155 | 155 |
156 void EmitClassOfTest(Label* if_true, | 156 void EmitClassOfTest(Label* if_true, |
157 Label* if_false, | 157 Label* if_false, |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 LCodeGen* codegen_; | 396 LCodeGen* codegen_; |
397 Label entry_; | 397 Label entry_; |
398 Label exit_; | 398 Label exit_; |
399 Label* external_exit_; | 399 Label* external_exit_; |
400 int instruction_index_; | 400 int instruction_index_; |
401 }; | 401 }; |
402 | 402 |
403 } } // namespace v8::internal | 403 } } // namespace v8::internal |
404 | 404 |
405 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ | 405 #endif // V8_ARM_LITHIUM_CODEGEN_ARM_H_ |
OLD | NEW |