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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 return DefineAsRegister(new(zone()) LConstantE); | 1992 return DefineAsRegister(new(zone()) LConstantE); |
1993 } else if (r.IsTagged()) { | 1993 } else if (r.IsTagged()) { |
1994 return DefineAsRegister(new(zone()) LConstantT); | 1994 return DefineAsRegister(new(zone()) LConstantT); |
1995 } else { | 1995 } else { |
1996 UNREACHABLE(); | 1996 UNREACHABLE(); |
1997 return NULL; | 1997 return NULL; |
1998 } | 1998 } |
1999 } | 1999 } |
2000 | 2000 |
2001 | 2001 |
2002 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | |
2003 LOperand* context = UseFixed(instr->context(), cp); | |
2004 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
2005 | |
2006 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); | |
2007 return MarkAsCall(DefineFixed(result, r0), instr); | |
2008 } | |
2009 | |
2010 | |
2011 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 2002 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
2012 LOperand* context = UseRegisterAtStart(instr->value()); | 2003 LOperand* context = UseRegisterAtStart(instr->value()); |
2013 LInstruction* result = | 2004 LInstruction* result = |
2014 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 2005 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
2015 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 2006 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
2016 result = AssignEnvironment(result); | 2007 result = AssignEnvironment(result); |
2017 } | 2008 } |
2018 return result; | 2009 return result; |
2019 } | 2010 } |
2020 | 2011 |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2453 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2444 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2454 LOperand* object = UseRegister(instr->object()); | 2445 LOperand* object = UseRegister(instr->object()); |
2455 LOperand* index = UseTempRegister(instr->index()); | 2446 LOperand* index = UseTempRegister(instr->index()); |
2456 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2447 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2457 LInstruction* result = DefineSameAsFirst(load); | 2448 LInstruction* result = DefineSameAsFirst(load); |
2458 return AssignPointerMap(result); | 2449 return AssignPointerMap(result); |
2459 } | 2450 } |
2460 | 2451 |
2461 } // namespace internal | 2452 } // namespace internal |
2462 } // namespace v8 | 2453 } // namespace v8 |
OLD | NEW |