Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index 670c4bb571ff716e63cd6066fda64fd4c6da4baf..8a8afebc4ec1fbcdd5e1ff3d01a51a1b10ab94ed 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. |
//============================================================================== |