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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 bool Linkage::NeedsFrameState(Runtime::FunctionId function) { | |
Benedikt Meurer
2014/09/02 11:31:25
Nit: add // static before.
| |
113 if (!FLAG_turbo_deoptimization) { | |
114 return false; | |
115 } | |
116 // TODO(jarin) At the moment, we only add frame state for | |
117 // few chosen runtime functions. | |
118 switch (function) { | |
119 case Runtime::kDebugBreak: | |
120 case Runtime::kDeoptimizeFunction: | |
121 case Runtime::kSetScriptBreakPoint: | |
122 case Runtime::kDebugGetLoadedScripts: | |
123 case Runtime::kStackGuard: | |
124 return true; | |
125 default: | |
126 return false; | |
127 } | |
128 } | |
129 | |
130 | |
112 //============================================================================== | 131 //============================================================================== |
113 // Provide unimplemented methods on unsupported architectures, to at least link. | 132 // Provide unimplemented methods on unsupported architectures, to at least link. |
114 //============================================================================== | 133 //============================================================================== |
115 #if !V8_TURBOFAN_BACKEND | 134 #if !V8_TURBOFAN_BACKEND |
116 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { | 135 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { |
117 UNIMPLEMENTED(); | 136 UNIMPLEMENTED(); |
118 return NULL; | 137 return NULL; |
119 } | 138 } |
120 | 139 |
121 | 140 |
(...skipping 17 matching lines...) Expand all Loading... | |
139 CallDescriptor* Linkage::GetSimplifiedCDescriptor( | 158 CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
140 Zone* zone, int num_params, MachineType return_type, | 159 Zone* zone, int num_params, MachineType return_type, |
141 const MachineType* param_types) { | 160 const MachineType* param_types) { |
142 UNIMPLEMENTED(); | 161 UNIMPLEMENTED(); |
143 return NULL; | 162 return NULL; |
144 } | 163 } |
145 #endif // !V8_TURBOFAN_BACKEND | 164 #endif // !V8_TURBOFAN_BACKEND |
146 } | 165 } |
147 } | 166 } |
148 } // namespace v8::internal::compiler | 167 } // namespace v8::internal::compiler |
OLD | NEW |