| 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/compiler/linkage.h" | 5 #include "src/compiler/linkage.h" | 
| 6 | 6 | 
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" | 
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" | 
| 9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" | 
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 135                                CallDescriptor::kNoFlags); | 135                                CallDescriptor::kNoFlags); | 
| 136   } | 136   } | 
| 137   return nullptr;  // TODO(titzer): ? | 137   return nullptr;  // TODO(titzer): ? | 
| 138 } | 138 } | 
| 139 | 139 | 
| 140 | 140 | 
| 141 // static | 141 // static | 
| 142 bool Linkage::NeedsFrameStateInput(Runtime::FunctionId function) { | 142 bool Linkage::NeedsFrameStateInput(Runtime::FunctionId function) { | 
| 143   switch (function) { | 143   switch (function) { | 
| 144     // Most runtime functions need a FrameState. A few chosen ones that we know | 144     // Most runtime functions need a FrameState. A few chosen ones that we know | 
| 145     // not to call into arbitrary JavaScript, not to throw, and not to | 145     // not to call into arbitrary JavaScript, not to throw, and not to lazily | 
| 146     // deoptimize | 146     // deoptimize are whitelisted here and can be called without a FrameState. | 
| 147     // are whitelisted here and can be called without a FrameState. |  | 
| 148     case Runtime::kAbort: | 147     case Runtime::kAbort: | 
| 149     case Runtime::kAllocateInTargetSpace: | 148     case Runtime::kAllocateInTargetSpace: | 
|  | 149     case Runtime::kConvertReceiver: | 
| 150     case Runtime::kCreateIterResultObject: | 150     case Runtime::kCreateIterResultObject: | 
| 151     case Runtime::kDefineGetterPropertyUnchecked:  // TODO(jarin): Is it safe? | 151     case Runtime::kDefineGetterPropertyUnchecked:  // TODO(jarin): Is it safe? | 
| 152     case Runtime::kDefineSetterPropertyUnchecked:  // TODO(jarin): Is it safe? | 152     case Runtime::kDefineSetterPropertyUnchecked:  // TODO(jarin): Is it safe? | 
| 153     case Runtime::kGeneratorGetContinuation: | 153     case Runtime::kGeneratorGetContinuation: | 
| 154     case Runtime::kIsFunction: | 154     case Runtime::kIsFunction: | 
| 155     case Runtime::kNewClosure: | 155     case Runtime::kNewClosure: | 
| 156     case Runtime::kNewClosure_Tenured: | 156     case Runtime::kNewClosure_Tenured: | 
| 157     case Runtime::kNewFunctionContext: | 157     case Runtime::kNewFunctionContext: | 
| 158     case Runtime::kPushBlockContext: | 158     case Runtime::kPushBlockContext: | 
| 159     case Runtime::kPushCatchContext: | 159     case Runtime::kPushCatchContext: | 
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 505     DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); | 505     DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); | 
| 506     return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, | 506     return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, | 
| 507                                                MachineType::AnyTagged()); | 507                                                MachineType::AnyTagged()); | 
| 508   } | 508   } | 
| 509 } | 509 } | 
| 510 | 510 | 
| 511 | 511 | 
| 512 }  // namespace compiler | 512 }  // namespace compiler | 
| 513 }  // namespace internal | 513 }  // namespace internal | 
| 514 }  // namespace v8 | 514 }  // namespace v8 | 
| OLD | NEW | 
|---|