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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 | 149 |
150 // static | 150 // static |
151 int Linkage::FrameStateInputCount(Runtime::FunctionId function) { | 151 int Linkage::FrameStateInputCount(Runtime::FunctionId function) { |
152 // Most runtime functions need a FrameState. A few chosen ones that we know | 152 // Most runtime functions need a FrameState. A few chosen ones that we know |
153 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize | 153 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize |
154 // are blacklisted here and can be called without a FrameState. | 154 // are blacklisted here and can be called without a FrameState. |
155 switch (function) { | 155 switch (function) { |
156 case Runtime::kAllocateInTargetSpace: | 156 case Runtime::kAllocateInTargetSpace: |
157 case Runtime::kCreateIterResultObject: | 157 case Runtime::kCreateIterResultObject: |
| 158 case Runtime::kDateField: |
158 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? | 159 case Runtime::kDefineClassMethod: // TODO(jarin): Is it safe? |
159 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? | 160 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? |
160 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? | 161 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? |
161 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe? | 162 case Runtime::kFinalizeClassDefinition: // TODO(conradw): Is it safe? |
162 case Runtime::kForInDone: | 163 case Runtime::kForInDone: |
163 case Runtime::kForInStep: | 164 case Runtime::kForInStep: |
164 case Runtime::kGetSuperConstructor: | 165 case Runtime::kGetSuperConstructor: |
165 case Runtime::kNewClosure: | 166 case Runtime::kNewClosure: |
166 case Runtime::kNewClosure_Tenured: | 167 case Runtime::kNewClosure_Tenured: |
167 case Runtime::kNewFunctionContext: | 168 case Runtime::kNewFunctionContext: |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 } else { | 531 } else { |
531 DCHECK(loc == regloc(kContextRegister)); | 532 DCHECK(loc == regloc(kContextRegister)); |
532 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); | 533 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); |
533 } | 534 } |
534 } | 535 } |
535 | 536 |
536 | 537 |
537 } // namespace compiler | 538 } // namespace compiler |
538 } // namespace internal | 539 } // namespace internal |
539 } // namespace v8 | 540 } // namespace v8 |
OLD | NEW |