Index: src/compiler/linkage.cc |
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc |
index 670c4bb571ff716e63cd6066fda64fd4c6da4baf..045a016245056ec7511f4abd06029bb9cc23dbe2 100644 |
--- a/src/compiler/linkage.cc |
+++ b/src/compiler/linkage.cc |
@@ -109,6 +109,25 @@ CallDescriptor* Linkage::GetStubCallDescriptor( |
} |
+bool Linkage::NeedsFrameState(Runtime::FunctionId function) { |
Benedikt Meurer
2014/09/02 11:31:25
Nit: add // static before.
|
+ 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. |
//============================================================================== |