| 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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 6 #define V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/crankshaft/arm/lithium-arm.h" | 9 #include "src/crankshaft/arm/lithium-arm.h" |
| 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 // Emit frame translation commands for an environment. | 129 // Emit frame translation commands for an environment. |
| 130 void WriteTranslation(LEnvironment* environment, Translation* translation); | 130 void WriteTranslation(LEnvironment* environment, Translation* translation); |
| 131 | 131 |
| 132 // Declare methods that deal with the individual node types. | 132 // Declare methods that deal with the individual node types. |
| 133 #define DECLARE_DO(type) void Do##type(L##type* node); | 133 #define DECLARE_DO(type) void Do##type(L##type* node); |
| 134 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 134 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
| 135 #undef DECLARE_DO | 135 #undef DECLARE_DO |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 LanguageMode language_mode() const { return info()->language_mode(); } | |
| 139 | |
| 140 Scope* scope() const { return scope_; } | 138 Scope* scope() const { return scope_; } |
| 141 | 139 |
| 142 Register scratch0() { return r9; } | 140 Register scratch0() { return r9; } |
| 143 LowDwVfpRegister double_scratch0() { return kScratchDoubleReg; } | 141 LowDwVfpRegister double_scratch0() { return kScratchDoubleReg; } |
| 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, |
| 149 Handle<String> class_name, | 147 Handle<String> class_name, |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 Label entry_; | 384 Label entry_; |
| 387 Label exit_; | 385 Label exit_; |
| 388 Label* external_exit_; | 386 Label* external_exit_; |
| 389 int instruction_index_; | 387 int instruction_index_; |
| 390 }; | 388 }; |
| 391 | 389 |
| 392 } // namespace internal | 390 } // namespace internal |
| 393 } // namespace v8 | 391 } // namespace v8 |
| 394 | 392 |
| 395 #endif // V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ | 393 #endif // V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |