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/linkage.h" | 7 #include "src/compiler/linkage.h" |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 // static | 107 // static |
108 bool Linkage::NeedsFrameState(Runtime::FunctionId function) { | 108 bool Linkage::NeedsFrameState(Runtime::FunctionId function) { |
109 // Most runtime functions need a FrameState. A few chosen ones that we know | 109 // Most runtime functions need a FrameState. A few chosen ones that we know |
110 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize | 110 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize |
111 // are blacklisted here and can be called without a FrameState. | 111 // are blacklisted here and can be called without a FrameState. |
112 switch (function) { | 112 switch (function) { |
| 113 case Runtime::kAllocateInTargetSpace: |
113 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? | 114 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? |
114 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? | 115 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? |
115 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? | 116 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? |
116 case Runtime::kForInCacheArrayLength: | 117 case Runtime::kForInCacheArrayLength: |
117 case Runtime::kForInInit: | 118 case Runtime::kForInInit: |
118 case Runtime::kForInNext: | 119 case Runtime::kForInNext: |
119 case Runtime::kNewArguments: | 120 case Runtime::kNewArguments: |
120 case Runtime::kNewClosure: | 121 case Runtime::kNewClosure: |
121 case Runtime::kNewFunctionContext: | 122 case Runtime::kNewFunctionContext: |
122 case Runtime::kNewRestParamSlow: | 123 case Runtime::kNewRestParamSlow: |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 | 200 |
200 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 201 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
201 const MachineSignature* sig) { | 202 const MachineSignature* sig) { |
202 UNIMPLEMENTED(); | 203 UNIMPLEMENTED(); |
203 return NULL; | 204 return NULL; |
204 } | 205 } |
205 #endif // !V8_TURBOFAN_BACKEND | 206 #endif // !V8_TURBOFAN_BACKEND |
206 } | 207 } |
207 } | 208 } |
208 } // namespace v8::internal::compiler | 209 } // namespace v8::internal::compiler |
OLD | NEW |