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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 #include "src/compiler.h" | 6 #include "src/compiler.h" |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 | 186 |
187 // static | 187 // static |
188 int Linkage::FrameStateInputCount(Runtime::FunctionId function) { | 188 int Linkage::FrameStateInputCount(Runtime::FunctionId function) { |
189 // Most runtime functions need a FrameState. A few chosen ones that we know | 189 // Most runtime functions need a FrameState. A few chosen ones that we know |
190 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize | 190 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize |
191 // are blacklisted here and can be called without a FrameState. | 191 // are blacklisted here and can be called without a FrameState. |
192 switch (function) { | 192 switch (function) { |
193 case Runtime::kAllocateInTargetSpace: | 193 case Runtime::kAllocateInTargetSpace: |
194 case Runtime::kDateField: | 194 case Runtime::kDateField: |
| 195 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe? |
| 196 case Runtime::kFinalizeClassDefinitionStrong: // TODO(conradw): Is it safe? |
195 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? | 197 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? |
196 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? | 198 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? |
197 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? | 199 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? |
198 case Runtime::kForInDone: | 200 case Runtime::kForInDone: |
199 case Runtime::kForInStep: | 201 case Runtime::kForInStep: |
200 case Runtime::kGetOriginalConstructor: | 202 case Runtime::kGetOriginalConstructor: |
201 case Runtime::kNewArguments: | 203 case Runtime::kNewArguments: |
202 case Runtime::kNewClosure: | 204 case Runtime::kNewClosure: |
203 case Runtime::kNewFunctionContext: | 205 case Runtime::kNewFunctionContext: |
204 case Runtime::kNewRestParamSlow: | 206 case Runtime::kNewRestParamSlow: |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 284 |
283 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 285 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
284 const MachineSignature* sig) { | 286 const MachineSignature* sig) { |
285 UNIMPLEMENTED(); | 287 UNIMPLEMENTED(); |
286 return NULL; | 288 return NULL; |
287 } | 289 } |
288 #endif // !V8_TURBOFAN_BACKEND | 290 #endif // !V8_TURBOFAN_BACKEND |
289 } // namespace compiler | 291 } // namespace compiler |
290 } // namespace internal | 292 } // namespace internal |
291 } // namespace v8 | 293 } // namespace v8 |
OLD | NEW |