| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // static | 133 // static |
| 134 bool Linkage::NeedsFrameStateInput(Runtime::FunctionId function) { | 134 bool Linkage::NeedsFrameStateInput(Runtime::FunctionId function) { |
| 135 // Most runtime functions need a FrameState. A few chosen ones that we know | 135 // Most runtime functions need a FrameState. A few chosen ones that we know |
| 136 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize | 136 // not to call into arbitrary JavaScript, not to throw, and not to deoptimize |
| 137 // are blacklisted here and can be called without a FrameState. | 137 // are blacklisted here and can be called without a FrameState. |
| 138 switch (function) { | 138 switch (function) { |
| 139 case Runtime::kAbort: | 139 case Runtime::kAbort: |
| 140 case Runtime::kAllocateInTargetSpace: | 140 case Runtime::kAllocateInTargetSpace: |
| 141 case Runtime::kCreateIterResultObject: | 141 case Runtime::kCreateIterResultObject: |
| 142 case Runtime::kDefineDataPropertyInLiteral: | |
| 143 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? | 142 case Runtime::kDefineGetterPropertyUnchecked: // TODO(jarin): Is it safe? |
| 144 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? | 143 case Runtime::kDefineSetterPropertyUnchecked: // TODO(jarin): Is it safe? |
| 145 case Runtime::kForInDone: | 144 case Runtime::kForInDone: |
| 146 case Runtime::kForInStep: | 145 case Runtime::kForInStep: |
| 147 case Runtime::kGeneratorGetContinuation: | 146 case Runtime::kGeneratorGetContinuation: |
| 148 case Runtime::kGetSuperConstructor: | 147 case Runtime::kGetSuperConstructor: |
| 149 case Runtime::kIsFunction: | 148 case Runtime::kIsFunction: |
| 150 case Runtime::kNewClosure: | 149 case Runtime::kNewClosure: |
| 151 case Runtime::kNewClosure_Tenured: | 150 case Runtime::kNewClosure_Tenured: |
| 152 case Runtime::kNewFunctionContext: | 151 case Runtime::kNewFunctionContext: |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 } else { | 517 } else { |
| 519 DCHECK(loc == regloc(kContextRegister)); | 518 DCHECK(loc == regloc(kContextRegister)); |
| 520 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); | 519 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); |
| 521 } | 520 } |
| 522 } | 521 } |
| 523 | 522 |
| 524 | 523 |
| 525 } // namespace compiler | 524 } // namespace compiler |
| 526 } // namespace internal | 525 } // namespace internal |
| 527 } // namespace v8 | 526 } // namespace v8 |
| OLD | NEW |