| 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 #include "src/crankshaft/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2011 return DefineAsRegister(new(zone()) LConstantT); | 2011 return DefineAsRegister(new(zone()) LConstantT); |
| 2012 } else { | 2012 } else { |
| 2013 UNREACHABLE(); | 2013 UNREACHABLE(); |
| 2014 return NULL; | 2014 return NULL; |
| 2015 } | 2015 } |
| 2016 } | 2016 } |
| 2017 | 2017 |
| 2018 | 2018 |
| 2019 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 2019 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 2020 LOperand* context = UseFixed(instr->context(), cp); | 2020 LOperand* context = UseFixed(instr->context(), cp); |
| 2021 LOperand* global_object = | |
| 2022 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | |
| 2023 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | 2021 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
| 2024 LLoadGlobalGeneric* result = | 2022 |
| 2025 new(zone()) LLoadGlobalGeneric(context, global_object, vector); | 2023 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); |
| 2026 return MarkAsCall(DefineFixed(result, r0), instr); | 2024 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2027 } | 2025 } |
| 2028 | 2026 |
| 2029 | 2027 |
| 2030 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2028 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 2031 LOperand* context = UseRegisterAtStart(instr->value()); | 2029 LOperand* context = UseRegisterAtStart(instr->value()); |
| 2032 LInstruction* result = | 2030 LInstruction* result = |
| 2033 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2031 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 2034 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 2032 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 2035 result = AssignEnvironment(result); | 2033 result = AssignEnvironment(result); |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2506 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2504 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2507 LOperand* object = UseRegister(instr->object()); | 2505 LOperand* object = UseRegister(instr->object()); |
| 2508 LOperand* index = UseTempRegister(instr->index()); | 2506 LOperand* index = UseTempRegister(instr->index()); |
| 2509 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2507 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2510 LInstruction* result = DefineSameAsFirst(load); | 2508 LInstruction* result = DefineSameAsFirst(load); |
| 2511 return AssignPointerMap(result); | 2509 return AssignPointerMap(result); |
| 2512 } | 2510 } |
| 2513 | 2511 |
| 2514 } // namespace internal | 2512 } // namespace internal |
| 2515 } // namespace v8 | 2513 } // namespace v8 |
| OLD | NEW |