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/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
10 | 10 |
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2018 return DefineAsRegister(new(zone()) LConstantT); | 2018 return DefineAsRegister(new(zone()) LConstantT); |
2019 } else { | 2019 } else { |
2020 UNREACHABLE(); | 2020 UNREACHABLE(); |
2021 return NULL; | 2021 return NULL; |
2022 } | 2022 } |
2023 } | 2023 } |
2024 | 2024 |
2025 | 2025 |
2026 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 2026 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
2027 LOperand* context = UseFixed(instr->context(), esi); | 2027 LOperand* context = UseFixed(instr->context(), esi); |
2028 LOperand* global_object = | |
2029 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | |
2030 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | 2028 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
2031 | 2029 |
2032 LLoadGlobalGeneric* result = | 2030 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); |
2033 new(zone()) LLoadGlobalGeneric(context, global_object, vector); | |
2034 return MarkAsCall(DefineFixed(result, eax), instr); | 2031 return MarkAsCall(DefineFixed(result, eax), instr); |
2035 } | 2032 } |
2036 | 2033 |
2037 | 2034 |
2038 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2035 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2039 LOperand* context = UseRegisterAtStart(instr->value()); | 2036 LOperand* context = UseRegisterAtStart(instr->value()); |
2040 LInstruction* result = | 2037 LInstruction* result = |
2041 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2038 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
2042 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 2039 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
2043 result = AssignEnvironment(result); | 2040 result = AssignEnvironment(result); |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2573 LOperand* index = UseTempRegister(instr->index()); | 2570 LOperand* index = UseTempRegister(instr->index()); |
2574 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2571 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2575 LInstruction* result = DefineSameAsFirst(load); | 2572 LInstruction* result = DefineSameAsFirst(load); |
2576 return AssignPointerMap(result); | 2573 return AssignPointerMap(result); |
2577 } | 2574 } |
2578 | 2575 |
2579 } // namespace internal | 2576 } // namespace internal |
2580 } // namespace v8 | 2577 } // namespace v8 |
2581 | 2578 |
2582 #endif // V8_TARGET_ARCH_IA32 | 2579 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |