OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
9 #include "src/lithium-inl.h" | 9 #include "src/lithium-inl.h" |
10 | 10 |
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1994 } | 1994 } |
1995 | 1995 |
1996 | 1996 |
1997 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 1997 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
1998 LParameter* result = new(zone()) LParameter; | 1998 LParameter* result = new(zone()) LParameter; |
1999 if (instr->kind() == HParameter::STACK_PARAMETER) { | 1999 if (instr->kind() == HParameter::STACK_PARAMETER) { |
2000 int spill_index = chunk_->GetParameterStackSlot(instr->index()); | 2000 int spill_index = chunk_->GetParameterStackSlot(instr->index()); |
2001 return DefineAsSpilled(result, spill_index); | 2001 return DefineAsSpilled(result, spill_index); |
2002 } else { | 2002 } else { |
2003 DCHECK(info()->IsStub()); | 2003 DCHECK(info()->IsStub()); |
2004 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); | 2004 CallInterfaceDescriptor descriptor = |
| 2005 info()->code_stub()->GetCallInterfaceDescriptor(); |
2005 int index = static_cast<int>(instr->index()); | 2006 int index = static_cast<int>(instr->index()); |
2006 Register reg = descriptor.GetEnvironmentParameterRegister(index); | 2007 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
2007 return DefineFixed(result, reg); | 2008 return DefineFixed(result, reg); |
2008 } | 2009 } |
2009 } | 2010 } |
2010 | 2011 |
2011 | 2012 |
2012 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 2013 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
2013 DCHECK(instr->representation().IsDouble()); | 2014 DCHECK(instr->representation().IsDouble()); |
2014 // We call a C function for double power. It can't trigger a GC. | 2015 // We call a C function for double power. It can't trigger a GC. |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2749 HAllocateBlockContext* instr) { | 2750 HAllocateBlockContext* instr) { |
2750 LOperand* context = UseFixed(instr->context(), cp); | 2751 LOperand* context = UseFixed(instr->context(), cp); |
2751 LOperand* function = UseRegisterAtStart(instr->function()); | 2752 LOperand* function = UseRegisterAtStart(instr->function()); |
2752 LAllocateBlockContext* result = | 2753 LAllocateBlockContext* result = |
2753 new(zone()) LAllocateBlockContext(context, function); | 2754 new(zone()) LAllocateBlockContext(context, function); |
2754 return MarkAsCall(DefineFixed(result, cp), instr); | 2755 return MarkAsCall(DefineFixed(result, cp), instr); |
2755 } | 2756 } |
2756 | 2757 |
2757 | 2758 |
2758 } } // namespace v8::internal | 2759 } } // namespace v8::internal |
OLD | NEW |