| 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/crankshaft/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 } | 1959 } |
| 1960 | 1960 |
| 1961 | 1961 |
| 1962 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 1962 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 1963 LParameter* result = new(zone()) LParameter; | 1963 LParameter* result = new(zone()) LParameter; |
| 1964 if (instr->kind() == HParameter::STACK_PARAMETER) { | 1964 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 1965 int spill_index = chunk_->GetParameterStackSlot(instr->index()); | 1965 int spill_index = chunk_->GetParameterStackSlot(instr->index()); |
| 1966 return DefineAsSpilled(result, spill_index); | 1966 return DefineAsSpilled(result, spill_index); |
| 1967 } else { | 1967 } else { |
| 1968 DCHECK(info()->IsStub()); | 1968 DCHECK(info()->IsStub()); |
| 1969 CallInterfaceDescriptor descriptor = | 1969 CallInterfaceDescriptor descriptor = graph()->descriptor(); |
| 1970 info()->code_stub()->GetCallInterfaceDescriptor(); | |
| 1971 int index = static_cast<int>(instr->index()); | 1970 int index = static_cast<int>(instr->index()); |
| 1972 Register reg = descriptor.GetRegisterParameter(index); | 1971 Register reg = descriptor.GetRegisterParameter(index); |
| 1973 return DefineFixed(result, reg); | 1972 return DefineFixed(result, reg); |
| 1974 } | 1973 } |
| 1975 } | 1974 } |
| 1976 | 1975 |
| 1977 | 1976 |
| 1978 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1977 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
| 1979 DCHECK(instr->representation().IsDouble()); | 1978 DCHECK(instr->representation().IsDouble()); |
| 1980 // We call a C function for double power. It can't trigger a GC. | 1979 // We call a C function for double power. It can't trigger a GC. |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2724 LOperand* context = UseFixed(instr->context(), cp); | 2723 LOperand* context = UseFixed(instr->context(), cp); |
| 2725 LOperand* function = UseRegisterAtStart(instr->function()); | 2724 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2726 LAllocateBlockContext* result = | 2725 LAllocateBlockContext* result = |
| 2727 new(zone()) LAllocateBlockContext(context, function); | 2726 new(zone()) LAllocateBlockContext(context, function); |
| 2728 return MarkAsCall(DefineFixed(result, cp), instr); | 2727 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2729 } | 2728 } |
| 2730 | 2729 |
| 2731 | 2730 |
| 2732 } // namespace internal | 2731 } // namespace internal |
| 2733 } // namespace v8 | 2732 } // namespace v8 |
| OLD | NEW |