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