| 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/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1998 return DefineAsRegister(new(zone()) LConstantT); | 1998 return DefineAsRegister(new(zone()) LConstantT); |
| 1999 } else { | 1999 } else { |
| 2000 UNREACHABLE(); | 2000 UNREACHABLE(); |
| 2001 return NULL; | 2001 return NULL; |
| 2002 } | 2002 } |
| 2003 } | 2003 } |
| 2004 | 2004 |
| 2005 | 2005 |
| 2006 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 2006 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 2007 LOperand* context = UseFixed(instr->context(), esi); | 2007 LOperand* context = UseFixed(instr->context(), esi); |
| 2008 LOperand* global_object = | |
| 2009 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | |
| 2010 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | 2008 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
| 2011 | 2009 |
| 2012 LLoadGlobalGeneric* result = | 2010 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); |
| 2013 new(zone()) LLoadGlobalGeneric(context, global_object, vector); | |
| 2014 return MarkAsCall(DefineFixed(result, eax), instr); | 2011 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2015 } | 2012 } |
| 2016 | 2013 |
| 2017 | 2014 |
| 2018 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2015 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 2019 LOperand* context = UseRegisterAtStart(instr->value()); | 2016 LOperand* context = UseRegisterAtStart(instr->value()); |
| 2020 LInstruction* result = | 2017 LInstruction* result = |
| 2021 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2018 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 2022 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 2019 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 2023 result = AssignEnvironment(result); | 2020 result = AssignEnvironment(result); |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2559 LOperand* index = UseTempRegister(instr->index()); | 2556 LOperand* index = UseTempRegister(instr->index()); |
| 2560 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2557 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2561 LInstruction* result = DefineSameAsFirst(load); | 2558 LInstruction* result = DefineSameAsFirst(load); |
| 2562 return AssignPointerMap(result); | 2559 return AssignPointerMap(result); |
| 2563 } | 2560 } |
| 2564 | 2561 |
| 2565 } // namespace internal | 2562 } // namespace internal |
| 2566 } // namespace v8 | 2563 } // namespace v8 |
| 2567 | 2564 |
| 2568 #endif // V8_TARGET_ARCH_X87 | 2565 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |