OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ppc/lithium-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-ppc.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/lithium-inl.h" | 10 #include "src/crankshaft/lithium-inl.h" |
(...skipping 1991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 return result; | 2002 return result; |
2003 } | 2003 } |
2004 | 2004 |
2005 | 2005 |
2006 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 2006 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
2007 LOperand* obj = UseRegisterAtStart(instr->object()); | 2007 LOperand* obj = UseRegisterAtStart(instr->object()); |
2008 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); | 2008 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); |
2009 } | 2009 } |
2010 | 2010 |
2011 | 2011 |
2012 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | |
2013 LOperand* context = UseFixed(instr->context(), cp); | |
2014 LOperand* object = | |
2015 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | |
2016 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
2017 | |
2018 LInstruction* result = | |
2019 DefineFixed(new (zone()) LLoadNamedGeneric(context, object, vector), r3); | |
2020 return MarkAsCall(result, instr); | |
2021 } | |
2022 | |
2023 | |
2024 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2012 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
2025 HLoadFunctionPrototype* instr) { | 2013 HLoadFunctionPrototype* instr) { |
2026 return AssignEnvironment(DefineAsRegister( | 2014 return AssignEnvironment(DefineAsRegister( |
2027 new (zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 2015 new (zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
2028 } | 2016 } |
2029 | 2017 |
2030 | 2018 |
2031 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { | 2019 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
2032 return DefineAsRegister(new (zone()) LLoadRoot); | 2020 return DefineAsRegister(new (zone()) LLoadRoot); |
2033 } | 2021 } |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2413 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2401 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2414 LOperand* object = UseRegister(instr->object()); | 2402 LOperand* object = UseRegister(instr->object()); |
2415 LOperand* index = UseTempRegister(instr->index()); | 2403 LOperand* index = UseTempRegister(instr->index()); |
2416 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); | 2404 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); |
2417 LInstruction* result = DefineSameAsFirst(load); | 2405 LInstruction* result = DefineSameAsFirst(load); |
2418 return AssignPointerMap(result); | 2406 return AssignPointerMap(result); |
2419 } | 2407 } |
2420 | 2408 |
2421 } // namespace internal | 2409 } // namespace internal |
2422 } // namespace v8 | 2410 } // namespace v8 |
OLD | NEW |