| 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 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1981 } | 1981 } |
| 1982 | 1982 |
| 1983 | 1983 |
| 1984 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 1984 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 1985 LParameter* result = new(zone()) LParameter; | 1985 LParameter* result = new(zone()) LParameter; |
| 1986 if (instr->kind() == HParameter::STACK_PARAMETER) { | 1986 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 1987 int spill_index = chunk_->GetParameterStackSlot(instr->index()); | 1987 int spill_index = chunk_->GetParameterStackSlot(instr->index()); |
| 1988 return DefineAsSpilled(result, spill_index); | 1988 return DefineAsSpilled(result, spill_index); |
| 1989 } else { | 1989 } else { |
| 1990 DCHECK(info()->IsStub()); | 1990 DCHECK(info()->IsStub()); |
| 1991 CodeStubInterfaceDescriptor* descriptor = | 1991 CodeStubInterfaceDescriptor descriptor; |
| 1992 info()->code_stub()->GetInterfaceDescriptor(); | 1992 info()->code_stub()->InitializeInterfaceDescriptor(&descriptor); |
| 1993 int index = static_cast<int>(instr->index()); | 1993 int index = static_cast<int>(instr->index()); |
| 1994 Register reg = descriptor->GetEnvironmentParameterRegister(index); | 1994 Register reg = descriptor.GetEnvironmentParameterRegister(index); |
| 1995 return DefineFixed(result, reg); | 1995 return DefineFixed(result, reg); |
| 1996 } | 1996 } |
| 1997 } | 1997 } |
| 1998 | 1998 |
| 1999 | 1999 |
| 2000 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 2000 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
| 2001 DCHECK(instr->representation().IsDouble()); | 2001 DCHECK(instr->representation().IsDouble()); |
| 2002 // We call a C function for double power. It can't trigger a GC. | 2002 // We call a C function for double power. It can't trigger a GC. |
| 2003 // We need to use fixed result register for the call. | 2003 // We need to use fixed result register for the call. |
| 2004 Representation exponent_type = instr->right()->representation(); | 2004 Representation exponent_type = instr->right()->representation(); |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2737 HAllocateBlockContext* instr) { | 2737 HAllocateBlockContext* instr) { |
| 2738 LOperand* context = UseFixed(instr->context(), cp); | 2738 LOperand* context = UseFixed(instr->context(), cp); |
| 2739 LOperand* function = UseRegisterAtStart(instr->function()); | 2739 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2740 LAllocateBlockContext* result = | 2740 LAllocateBlockContext* result = |
| 2741 new(zone()) LAllocateBlockContext(context, function); | 2741 new(zone()) LAllocateBlockContext(context, function); |
| 2742 return MarkAsCall(DefineFixed(result, cp), instr); | 2742 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2743 } | 2743 } |
| 2744 | 2744 |
| 2745 | 2745 |
| 2746 } } // namespace v8::internal | 2746 } } // namespace v8::internal |
| OLD | NEW |