diff --git a/src/compiler/linkage-impl.h b/src/compiler/linkage-impl.h index c4a8007bb8..9cd992063a 100644 --- a/src/compiler/linkage-impl.h +++ b/src/compiler/linkage-impl.h @@ -199,26 +199,6 @@ class LinkageHelper { CallDescriptor::kNoFlags); // TODO(jarin) should deoptimize! } }; - - -bool Linkage::NeedsFrameState(Runtime::FunctionId function) { - if (!FLAG_turbo_deoptimization) { - return false; - } - // TODO(jarin) At the moment, we only add frame state for - // few chosen runtime functions. - switch (function) { - case Runtime::kDebugBreak: - case Runtime::kDeoptimizeFunction: - case Runtime::kSetScriptBreakPoint: - case Runtime::kDebugGetLoadedScripts: - case Runtime::kStackGuard: - return true; - default: - return false; - } -} - } // namespace compiler } // namespace internal } // namespace v8 diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc index 670c4bb571..8a8afebc4e 100644 --- a/src/compiler/linkage.cc +++ b/src/compiler/linkage.cc @@ -109,6 +109,26 @@ CallDescriptor* Linkage::GetStubCallDescriptor( } +// static +bool Linkage::NeedsFrameState(Runtime::FunctionId function) { + if (!FLAG_turbo_deoptimization) { + return false; + } + // TODO(jarin) At the moment, we only add frame state for + // few chosen runtime functions. + switch (function) { + case Runtime::kDebugBreak: + case Runtime::kDeoptimizeFunction: + case Runtime::kSetScriptBreakPoint: + case Runtime::kDebugGetLoadedScripts: + case Runtime::kStackGuard: + return true; + default: + return false; + } +} + + //============================================================================== // Provide unimplemented methods on unsupported architectures, to at least link. //==============================================================================