Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: src/compiler/js-generic-lowering.cc

Issue 492203002: Initial support for debugger frame state in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Another attempt to fix Win64 Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/compiler/js-generic-lowering.cc
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
index 5d1583142c1d5da49a3201c501a14ec947246615..77cb92900c4e2e021e8e7d5488c3e1a38ce232f8 100644
--- a/src/compiler/js-generic-lowering.cc
+++ b/src/compiler/js-generic-lowering.cc
@@ -288,9 +288,14 @@ REPLACE_UNIMPLEMENTED(JSDebugger)
static CallDescriptor::DeoptimizationSupport DeoptimizationSupportForNode(
Node* node) {
- return OperatorProperties::CanLazilyDeoptimize(node->op())
- ? CallDescriptor::kCanDeoptimize
- : CallDescriptor::kCannotDeoptimize;
+ int result = CallDescriptor::kNoDeoptimization;
+ if (OperatorProperties::CanLazilyDeoptimize(node->op())) {
+ result |= CallDescriptor::kLazyDeoptimization;
+ }
+ if (OperatorProperties::HasFrameStateInput(node->op())) {
+ result |= CallDescriptor::kNeedsFrameState;
+ }
+ return static_cast<CallDescriptor::DeoptimizationSupport>(result);
}

Powered by Google App Engine
This is Rietveld 408576698