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/graph-assembler.cc

Issue 2682143002: [compiler] Pass deoptimization_kind through DeoptimizeParameters and FlagsContinuation (Closed)
Patch Set: fix Created 3 years, 10 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 | « src/compiler/graph-assembler.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-assembler.cc
diff --git a/src/compiler/graph-assembler.cc b/src/compiler/graph-assembler.cc
index 235826e746e512d163fe67e3914c85689294444b..76efbced938ec79c2fa1ea3e2f701b4ee5029e04 100644
--- a/src/compiler/graph-assembler.cc
+++ b/src/compiler/graph-assembler.cc
@@ -157,16 +157,23 @@ Node* GraphAssembler::ToNumber(Node* value) {
Node* GraphAssembler::DeoptimizeIf(DeoptimizeReason reason, Node* condition,
Node* frame_state) {
- return current_control_ = current_effect_ =
- graph()->NewNode(common()->DeoptimizeIf(reason), condition,
- frame_state, current_effect_, current_control_);
+ return current_control_ = current_effect_ = graph()->NewNode(
+ common()->DeoptimizeIf(DeoptimizeKind::kEager, reason), condition,
+ frame_state, current_effect_, current_control_);
+}
+
+Node* GraphAssembler::DeoptimizeUnless(DeoptimizeKind kind,
+ DeoptimizeReason reason, Node* condition,
+ Node* frame_state) {
+ return current_control_ = current_effect_ = graph()->NewNode(
+ common()->DeoptimizeUnless(kind, reason), condition, frame_state,
+ current_effect_, current_control_);
}
Node* GraphAssembler::DeoptimizeUnless(DeoptimizeReason reason, Node* condition,
Node* frame_state) {
- return current_control_ = current_effect_ =
- graph()->NewNode(common()->DeoptimizeUnless(reason), condition,
- frame_state, current_effect_, current_control_);
+ return DeoptimizeUnless(DeoptimizeKind::kEager, reason, condition,
+ frame_state);
}
void GraphAssembler::Branch(Node* condition,
« no previous file with comments | « src/compiler/graph-assembler.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698