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

Unified Diff: test/cctest/compiler/test-js-typed-lowering.cc

Issue 2446543002: [turbofan] Support variable size argument popping in TF-generated functions (Closed)
Patch Set: Fix bugs Created 4 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
Index: test/cctest/compiler/test-js-typed-lowering.cc
diff --git a/test/cctest/compiler/test-js-typed-lowering.cc b/test/cctest/compiler/test-js-typed-lowering.cc
index 604e696ab53efd0f74510e678a051a3a7c6afee9..a925d5ea2c7eb934eb647c164582d716696344cc 100644
--- a/test/cctest/compiler/test-js-typed-lowering.cc
+++ b/test/cctest/compiler/test-js-typed-lowering.cc
@@ -694,6 +694,7 @@ TEST(RemoveToNumberEffects) {
JSTypedLoweringTester R;
Node* effect_use = NULL;
+ Node* zero = R.graph.NewNode(R.common.Int32Constant(0));
for (int i = 0; i < 10; i++) {
Node* p0 = R.Parameter(Type::Number());
Node* ton = R.Unop(R.javascript.ToNumber(), p0);
@@ -724,10 +725,12 @@ TEST(RemoveToNumberEffects) {
R.context(), frame_state, ton, R.start());
break;
case 5:
- effect_use = R.graph.NewNode(R.common.Return(), p0, ton, R.start());
+ effect_use =
+ R.graph.NewNode(R.common.Return(), zero, p0, ton, R.start());
break;
case 6:
- effect_use = R.graph.NewNode(R.common.Return(), ton, ton, R.start());
+ effect_use =
+ R.graph.NewNode(R.common.Return(), zero, ton, ton, R.start());
}
R.CheckEffectInput(R.start(), ton);

Powered by Google App Engine
This is Rietveld 408576698