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

Unified Diff: src/compiler/ast-graph-builder.cc

Issue 1407953004: [turbofan] Use ReturnId for lazy bailout of JSCallFunction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/ast-graph-builder.cc
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
index 5889e46fb35abfac796401aabe93fbb29c54ad89..ef7050c8afc675e6773736c229bfcf501269ebd3 100644
--- a/src/compiler/ast-graph-builder.cc
+++ b/src/compiler/ast-graph-builder.cc
@@ -2466,7 +2466,9 @@ void AstGraphBuilder::VisitCall(Call* expr) {
const Operator* call = javascript()->CallFunction(args->length() + 2, flags,
language_mode(), feedback);
Node* value = ProcessArguments(call, args->length() + 2);
- PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine());
+ environment()->Push(callee_value);
+ PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push());
+ environment()->Drop(1);
ast_context()->ProduceValue(value);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698