| 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-arm64.h" | 7 #include "src/arm64/lithium-arm64.h" |
| 8 #include "src/arm64/lithium-codegen-arm64.h" | 8 #include "src/arm64/lithium-codegen-arm64.h" |
| 9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
| 10 #include "src/lithium-allocator-inl.h" | 10 #include "src/lithium-allocator-inl.h" |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 LOperand* function = UseFixed(instr->function(), x1); | 1024 LOperand* function = UseFixed(instr->function(), x1); |
| 1025 | 1025 |
| 1026 LCallJSFunction* result = new(zone()) LCallJSFunction(function); | 1026 LCallJSFunction* result = new(zone()) LCallJSFunction(function); |
| 1027 | 1027 |
| 1028 return MarkAsCall(DefineFixed(result, x0), instr); | 1028 return MarkAsCall(DefineFixed(result, x0), instr); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 | 1031 |
| 1032 LInstruction* LChunkBuilder::DoCallWithDescriptor( | 1032 LInstruction* LChunkBuilder::DoCallWithDescriptor( |
| 1033 HCallWithDescriptor* instr) { | 1033 HCallWithDescriptor* instr) { |
| 1034 const CallInterfaceDescriptor* descriptor = instr->descriptor(); | 1034 const InterfaceDescriptor* descriptor = instr->descriptor(); |
| 1035 | 1035 |
| 1036 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); | 1036 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); |
| 1037 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); | 1037 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); |
| 1038 ops.Add(target, zone()); | 1038 ops.Add(target, zone()); |
| 1039 for (int i = 1; i < instr->OperandCount(); i++) { | 1039 for (int i = 1; i < instr->OperandCount(); i++) { |
| 1040 LOperand* op = UseFixed(instr->OperandAt(i), | 1040 LOperand* op = UseFixed(instr->OperandAt(i), |
| 1041 descriptor->GetParameterRegister(i - 1)); | 1041 descriptor->GetParameterRegister(i - 1)); |
| 1042 ops.Add(op, zone()); | 1042 ops.Add(op, zone()); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| (...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 1960 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 1961 LParameter* result = new(zone()) LParameter; | 1961 LParameter* result = new(zone()) LParameter; |
| 1962 if (instr->kind() == HParameter::STACK_PARAMETER) { | 1962 if (instr->kind() == HParameter::STACK_PARAMETER) { |
| 1963 int spill_index = chunk_->GetParameterStackSlot(instr->index()); | 1963 int spill_index = chunk_->GetParameterStackSlot(instr->index()); |
| 1964 return DefineAsSpilled(result, spill_index); | 1964 return DefineAsSpilled(result, spill_index); |
| 1965 } else { | 1965 } else { |
| 1966 ASSERT(info()->IsStub()); | 1966 ASSERT(info()->IsStub()); |
| 1967 CodeStubInterfaceDescriptor* descriptor = | 1967 CodeStubInterfaceDescriptor* descriptor = |
| 1968 info()->code_stub()->GetInterfaceDescriptor(); | 1968 info()->code_stub()->GetInterfaceDescriptor(); |
| 1969 int index = static_cast<int>(instr->index()); | 1969 int index = static_cast<int>(instr->index()); |
| 1970 Register reg = descriptor->GetParameterRegister(index); | 1970 Register reg = descriptor->GetEnvironmentParameterRegister(index); |
| 1971 return DefineFixed(result, reg); | 1971 return DefineFixed(result, reg); |
| 1972 } | 1972 } |
| 1973 } | 1973 } |
| 1974 | 1974 |
| 1975 | 1975 |
| 1976 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1976 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
| 1977 ASSERT(instr->representation().IsDouble()); | 1977 ASSERT(instr->representation().IsDouble()); |
| 1978 // We call a C function for double power. It can't trigger a GC. | 1978 // We call a C function for double power. It can't trigger a GC. |
| 1979 // We need to use fixed result register for the call. | 1979 // We need to use fixed result register for the call. |
| 1980 Representation exponent_type = instr->right()->representation(); | 1980 Representation exponent_type = instr->right()->representation(); |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 HAllocateBlockContext* instr) { | 2719 HAllocateBlockContext* instr) { |
| 2720 LOperand* context = UseFixed(instr->context(), cp); | 2720 LOperand* context = UseFixed(instr->context(), cp); |
| 2721 LOperand* function = UseRegisterAtStart(instr->function()); | 2721 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2722 LAllocateBlockContext* result = | 2722 LAllocateBlockContext* result = |
| 2723 new(zone()) LAllocateBlockContext(context, function); | 2723 new(zone()) LAllocateBlockContext(context, function); |
| 2724 return MarkAsCall(DefineFixed(result, cp), instr); | 2724 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2725 } | 2725 } |
| 2726 | 2726 |
| 2727 | 2727 |
| 2728 } } // namespace v8::internal | 2728 } } // namespace v8::internal |
| OLD | NEW |