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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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()); |
93 } | 93 } |
94 | 94 |
95 | 95 |
96 CallDescriptor* Linkage::GetRuntimeCallDescriptor( | 96 CallDescriptor* Linkage::GetRuntimeCallDescriptor(Runtime::FunctionId function, |
97 Runtime::FunctionId function, int parameter_count, | 97 int parameter_count, |
98 Operator::Property properties, | 98 Operator::Property properties, |
99 CallDescriptor::DeoptimizationSupport can_deoptimize) { | 99 CallDescriptor::Flags flags) { |
100 return GetRuntimeCallDescriptor(function, parameter_count, properties, | 100 return GetRuntimeCallDescriptor(function, parameter_count, properties, flags, |
101 can_deoptimize, this->info_->zone()); | 101 this->info_->zone()); |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 CallDescriptor* Linkage::GetStubCallDescriptor( | 105 CallDescriptor* Linkage::GetStubCallDescriptor( |
106 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, | 106 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, |
107 CallDescriptor::DeoptimizationSupport can_deoptimize) { | 107 CallDescriptor::Flags flags) { |
108 return GetStubCallDescriptor(descriptor, stack_parameter_count, | 108 return GetStubCallDescriptor(descriptor, stack_parameter_count, flags, |
109 can_deoptimize, this->info_->zone()); | 109 this->info_->zone()); |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 //============================================================================== | 113 //============================================================================== |
114 // Provide unimplemented methods on unsupported architectures, to at least link. | 114 // Provide unimplemented methods on unsupported architectures, to at least link. |
115 //============================================================================== | 115 //============================================================================== |
116 #if !V8_TURBOFAN_BACKEND | 116 #if !V8_TURBOFAN_BACKEND |
117 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { | 117 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { |
118 UNIMPLEMENTED(); | 118 UNIMPLEMENTED(); |
119 return NULL; | 119 return NULL; |
120 } | 120 } |
121 | 121 |
122 | 122 |
123 CallDescriptor* Linkage::GetRuntimeCallDescriptor( | 123 CallDescriptor* Linkage::GetRuntimeCallDescriptor(Runtime::FunctionId function, |
124 Runtime::FunctionId function, int parameter_count, | 124 int parameter_count, |
125 Operator::Property properties, | 125 Operator::Property properties, |
126 CallDescriptor::DeoptimizationSupport can_deoptimize, Zone* zone) { | 126 CallDescriptor::Flags flags, |
| 127 Zone* zone) { |
127 UNIMPLEMENTED(); | 128 UNIMPLEMENTED(); |
128 return NULL; | 129 return NULL; |
129 } | 130 } |
130 | 131 |
131 | 132 |
132 CallDescriptor* Linkage::GetStubCallDescriptor( | 133 CallDescriptor* Linkage::GetStubCallDescriptor( |
133 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, | 134 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, |
134 CallDescriptor::DeoptimizationSupport can_deoptimize, Zone* zone) { | 135 CallDescriptor::Flags flags, Zone* zone) { |
135 UNIMPLEMENTED(); | 136 UNIMPLEMENTED(); |
136 return NULL; | 137 return NULL; |
137 } | 138 } |
138 | 139 |
139 | 140 |
140 CallDescriptor* Linkage::GetSimplifiedCDescriptor( | 141 CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
141 Zone* zone, int num_params, MachineType return_type, | 142 Zone* zone, int num_params, MachineType return_type, |
142 const MachineType* param_types) { | 143 const MachineType* param_types) { |
143 UNIMPLEMENTED(); | 144 UNIMPLEMENTED(); |
144 return NULL; | 145 return NULL; |
145 } | 146 } |
146 #endif // !V8_TURBOFAN_BACKEND | 147 #endif // !V8_TURBOFAN_BACKEND |
147 } | 148 } |
148 } | 149 } |
149 } // namespace v8::internal::compiler | 150 } // namespace v8::internal::compiler |
OLD | NEW |