| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arm64/lithium-arm64.h" | |
| 8 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
| 9 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
| 10 #include "src/lithium-allocator-inl.h" | 9 #include "src/lithium-inl.h" |
| 11 | 10 |
| 12 namespace v8 { | 11 namespace v8 { |
| 13 namespace internal { | 12 namespace internal { |
| 14 | 13 |
| 15 | |
| 16 #define DEFINE_COMPILE(type) \ | 14 #define DEFINE_COMPILE(type) \ |
| 17 void L##type::CompileToNative(LCodeGen* generator) { \ | 15 void L##type::CompileToNative(LCodeGen* generator) { \ |
| 18 generator->Do##type(this); \ | 16 generator->Do##type(this); \ |
| 19 } | 17 } |
| 20 LITHIUM_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) | 18 LITHIUM_CONCRETE_INSTRUCTION_LIST(DEFINE_COMPILE) |
| 21 #undef DEFINE_COMPILE | 19 #undef DEFINE_COMPILE |
| 22 | 20 |
| 23 #ifdef DEBUG | 21 #ifdef DEBUG |
| 24 void LInstruction::VerifyCall() { | 22 void LInstruction::VerifyCall() { |
| 25 // Call instructions can use only fixed registers as temporaries and | 23 // Call instructions can use only fixed registers as temporaries and |
| (...skipping 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2747 HAllocateBlockContext* instr) { | 2745 HAllocateBlockContext* instr) { |
| 2748 LOperand* context = UseFixed(instr->context(), cp); | 2746 LOperand* context = UseFixed(instr->context(), cp); |
| 2749 LOperand* function = UseRegisterAtStart(instr->function()); | 2747 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2750 LAllocateBlockContext* result = | 2748 LAllocateBlockContext* result = |
| 2751 new(zone()) LAllocateBlockContext(context, function); | 2749 new(zone()) LAllocateBlockContext(context, function); |
| 2752 return MarkAsCall(DefineFixed(result, cp), instr); | 2750 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2753 } | 2751 } |
| 2754 | 2752 |
| 2755 | 2753 |
| 2756 } } // namespace v8::internal | 2754 } } // namespace v8::internal |
| OLD | NEW |