| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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 | 
| 146     // deoptimize | 146     // deoptimize | 
| 147     // 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: | 148     case Runtime::kAbort: | 
| 149     case Runtime::kAllocateInTargetSpace: | 149     case Runtime::kAllocateInTargetSpace: | 
| 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::kGetSuperConstructor: |  | 
| 155     case Runtime::kIsFunction: | 154     case Runtime::kIsFunction: | 
| 156     case Runtime::kNewClosure: | 155     case Runtime::kNewClosure: | 
| 157     case Runtime::kNewClosure_Tenured: | 156     case Runtime::kNewClosure_Tenured: | 
| 158     case Runtime::kNewFunctionContext: | 157     case Runtime::kNewFunctionContext: | 
| 159     case Runtime::kPushBlockContext: | 158     case Runtime::kPushBlockContext: | 
| 160     case Runtime::kPushCatchContext: | 159     case Runtime::kPushCatchContext: | 
| 161     case Runtime::kReThrow: | 160     case Runtime::kReThrow: | 
| 162     case Runtime::kStringCompare: | 161     case Runtime::kStringCompare: | 
| 163     case Runtime::kStringEqual: | 162     case Runtime::kStringEqual: | 
| 164     case Runtime::kStringNotEqual: | 163     case Runtime::kStringNotEqual: | 
| 165     case Runtime::kStringLessThan: | 164     case Runtime::kStringLessThan: | 
| 166     case Runtime::kStringLessThanOrEqual: | 165     case Runtime::kStringLessThanOrEqual: | 
| 167     case Runtime::kStringGreaterThan: | 166     case Runtime::kStringGreaterThan: | 
| 168     case Runtime::kStringGreaterThanOrEqual: | 167     case Runtime::kStringGreaterThanOrEqual: | 
| 169     case Runtime::kToFastProperties:  // TODO(conradw): Is it safe? | 168     case Runtime::kToFastProperties:  // TODO(conradw): Is it safe? | 
| 170     case Runtime::kTraceEnter: | 169     case Runtime::kTraceEnter: | 
| 171     case Runtime::kTraceExit: | 170     case Runtime::kTraceExit: | 
| 172       return false; | 171       return false; | 
| 173 | 172 | 
| 174     // Some inline intrinsics are also safe to call without a FrameState. | 173     // Some inline intrinsics are also safe to call without a FrameState. | 
| 175     case Runtime::kInlineCreateIterResultObject: | 174     case Runtime::kInlineCreateIterResultObject: | 
| 176     case Runtime::kInlineFixedArrayGet: | 175     case Runtime::kInlineFixedArrayGet: | 
| 177     case Runtime::kInlineFixedArraySet: | 176     case Runtime::kInlineFixedArraySet: | 
| 178     case Runtime::kInlineGeneratorClose: | 177     case Runtime::kInlineGeneratorClose: | 
| 179     case Runtime::kInlineGeneratorGetInputOrDebugPos: | 178     case Runtime::kInlineGeneratorGetInputOrDebugPos: | 
| 180     case Runtime::kInlineGeneratorGetResumeMode: | 179     case Runtime::kInlineGeneratorGetResumeMode: | 
| 181     case Runtime::kInlineGetSuperConstructor: |  | 
| 182     case Runtime::kInlineIsArray: | 180     case Runtime::kInlineIsArray: | 
| 183     case Runtime::kInlineIsJSReceiver: | 181     case Runtime::kInlineIsJSReceiver: | 
| 184     case Runtime::kInlineIsRegExp: | 182     case Runtime::kInlineIsRegExp: | 
| 185     case Runtime::kInlineIsSmi: | 183     case Runtime::kInlineIsSmi: | 
| 186     case Runtime::kInlineIsTypedArray: | 184     case Runtime::kInlineIsTypedArray: | 
| 187       return false; | 185       return false; | 
| 188 | 186 | 
| 189     default: | 187     default: | 
| 190       break; | 188       break; | 
| 191   } | 189   } | 
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 506     DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); | 504     DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); | 
| 507     return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, | 505     return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, | 
| 508                                                MachineType::AnyTagged()); | 506                                                MachineType::AnyTagged()); | 
| 509   } | 507   } | 
| 510 } | 508 } | 
| 511 | 509 | 
| 512 | 510 | 
| 513 }  // namespace compiler | 511 }  // namespace compiler | 
| 514 }  // namespace internal | 512 }  // namespace internal | 
| 515 }  // namespace v8 | 513 }  // namespace v8 | 
| OLD | NEW | 
|---|