| 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/compiler/linkage.h" | 5 #include "src/compiler/linkage.h" |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
| 9 #include "src/compiler/node.h" | 9 #include "src/compiler/node.h" |
| 10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 offset = | 72 offset = |
| 73 -(spill_slot + 1) * kPointerSize - register_save_area_size + extra; | 73 -(spill_slot + 1) * kPointerSize - register_save_area_size + extra; |
| 74 } else { | 74 } else { |
| 75 // Incoming parameter. Skip the return address. | 75 // Incoming parameter. Skip the return address. |
| 76 offset = -(spill_slot + 1) * kPointerSize + kFPOnStackSize + | 76 offset = -(spill_slot + 1) * kPointerSize + kFPOnStackSize + |
| 77 kPCOnStackSize + extra; | 77 kPCOnStackSize + extra; |
| 78 } | 78 } |
| 79 return FrameOffset::FromFramePointer(offset); | 79 return FrameOffset::FromFramePointer(offset); |
| 80 } else { | 80 } else { |
| 81 // No frame. Retrieve all parameters relative to stack pointer. | 81 // No frame. Retrieve all parameters relative to stack pointer. |
| 82 ASSERT(spill_slot < 0); // Must be a parameter. | 82 DCHECK(spill_slot < 0); // Must be a parameter. |
| 83 int register_save_area_size = frame->GetRegisterSaveAreaSize(); | 83 int register_save_area_size = frame->GetRegisterSaveAreaSize(); |
| 84 int offset = register_save_area_size - (spill_slot + 1) * kPointerSize + | 84 int offset = register_save_area_size - (spill_slot + 1) * kPointerSize + |
| 85 kPCOnStackSize + extra; | 85 kPCOnStackSize + extra; |
| 86 return FrameOffset::FromStackPointer(offset); | 86 return FrameOffset::FromStackPointer(offset); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 | 89 |
| 90 | 90 |
| 91 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count) { | 91 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count) { |
| 92 return GetJSCallDescriptor(parameter_count, this->info_->zone()); | 92 return GetJSCallDescriptor(parameter_count, this->info_->zone()); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 CallDescriptor* Linkage::GetSimplifiedCDescriptor( | 131 CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
| 132 Zone* zone, int num_params, MachineRepresentation return_type, | 132 Zone* zone, int num_params, MachineRepresentation return_type, |
| 133 const MachineRepresentation* param_types) { | 133 const MachineRepresentation* param_types) { |
| 134 UNIMPLEMENTED(); | 134 UNIMPLEMENTED(); |
| 135 return NULL; | 135 return NULL; |
| 136 } | 136 } |
| 137 #endif // !V8_TURBOFAN_TARGET | 137 #endif // !V8_TURBOFAN_TARGET |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 } // namespace v8::internal::compiler | 140 } // namespace v8::internal::compiler |
| OLD | NEW |