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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::kAllocateInTargetSpace: |
| 114 case Runtime::kDateField: |
114 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? | 115 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? |
115 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? | 116 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? |
116 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? | 117 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? |
117 case Runtime::kForInDone: | 118 case Runtime::kForInDone: |
118 case Runtime::kForInStep: | 119 case Runtime::kForInStep: |
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: |
123 case Runtime::kPushBlockContext: | 124 case Runtime::kPushBlockContext: |
124 case Runtime::kPushCatchContext: | 125 case Runtime::kPushCatchContext: |
125 case Runtime::kReThrow: | 126 case Runtime::kReThrow: |
126 case Runtime::kSetProperty: // TODO(jarin): Is it safe? | 127 case Runtime::kSetProperty: // TODO(jarin): Is it safe? |
127 case Runtime::kStringCompareRT: | 128 case Runtime::kStringCompareRT: |
128 case Runtime::kStringEquals: | 129 case Runtime::kStringEquals: |
129 case Runtime::kToFastProperties: // TODO(jarin): Is it safe? | 130 case Runtime::kToFastProperties: // TODO(jarin): Is it safe? |
130 case Runtime::kTraceEnter: | 131 case Runtime::kTraceEnter: |
131 case Runtime::kTraceExit: | 132 case Runtime::kTraceExit: |
132 return false; | 133 return false; |
133 case Runtime::kInlineArguments: | 134 case Runtime::kInlineArguments: |
134 case Runtime::kInlineCallFunction: | 135 case Runtime::kInlineCallFunction: |
135 case Runtime::kInlineDateField: // TODO(bmeurer): Remove this. | |
136 case Runtime::kInlineDeoptimizeNow: | 136 case Runtime::kInlineDeoptimizeNow: |
137 case Runtime::kInlineGetCallerJSFunction: | 137 case Runtime::kInlineGetCallerJSFunction: |
138 case Runtime::kInlineGetPrototype: | 138 case Runtime::kInlineGetPrototype: |
139 case Runtime::kInlineRegExpExec: | 139 case Runtime::kInlineRegExpExec: |
140 case Runtime::kInlineThrowIfNotADate: | 140 case Runtime::kInlineThrowIfNotADate: |
141 return true; | 141 return true; |
142 default: | 142 default: |
143 break; | 143 break; |
144 } | 144 } |
145 | 145 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 201 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
202 const MachineSignature* sig) { | 202 const MachineSignature* sig) { |
203 UNIMPLEMENTED(); | 203 UNIMPLEMENTED(); |
204 return NULL; | 204 return NULL; |
205 } | 205 } |
206 #endif // !V8_TURBOFAN_BACKEND | 206 #endif // !V8_TURBOFAN_BACKEND |
207 } // namespace compiler | 207 } // namespace compiler |
208 } // namespace internal | 208 } // namespace internal |
209 } // namespace v8 | 209 } // namespace v8 |
OLD | NEW |