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

Unified Diff: src/compiler/graph-assembler.cc

Issue 2683203002: Revert of [compiler] Pass deoptimization_kind through DeoptimizeParameters and FlagsContinuation (Closed)
Patch Set: 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 76efbced938ec79c2fa1ea3e2f701b4ee5029e04..235826e746e512d163fe67e3914c85689294444b 100644
--- a/src/compiler/graph-assembler.cc
+++ b/src/compiler/graph-assembler.cc
@@ -157,23 +157,16 @@
Node* GraphAssembler::DeoptimizeIf(DeoptimizeReason reason, Node* condition,
Node* frame_state) {
- 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_);
+ return current_control_ = current_effect_ =
+ graph()->NewNode(common()->DeoptimizeIf(reason), condition,
+ frame_state, current_effect_, current_control_);
}
Node* GraphAssembler::DeoptimizeUnless(DeoptimizeReason reason, Node* condition,
Node* frame_state) {
- return DeoptimizeUnless(DeoptimizeKind::kEager, reason, condition,
- frame_state);
+ return current_control_ = current_effect_ =
+ graph()->NewNode(common()->DeoptimizeUnless(reason), condition,
+ frame_state, current_effect_, current_control_);
}
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