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

Unified Diff: test/unittests/compiler/int64-lowering-unittest.cc

Issue 2446543002: [turbofan] Support variable size argument popping in TF-generated functions (Closed)
Patch Set: Fix tests and arm64 Created 4 years, 1 month 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/unittests/compiler/int64-lowering-unittest.cc
diff --git a/test/unittests/compiler/int64-lowering-unittest.cc b/test/unittests/compiler/int64-lowering-unittest.cc
index fb6c76b1ea1814e3949bb79a8fd92757ba2b6c1a..400eafb4dc69c24ac33754c9c78f2c4b7b419b13 100644
--- a/test/unittests/compiler/int64-lowering-unittest.cc
+++ b/test/unittests/compiler/int64-lowering-unittest.cc
@@ -40,8 +40,9 @@ class Int64LoweringTest : public GraphTest {
MachineOperatorBuilder* machine() { return &machine_; }
void LowerGraph(Node* node, Signature<MachineRepresentation>* signature) {
- Node* ret = graph()->NewNode(common()->Return(), node, graph()->start(),
- graph()->start());
+ Node* zero = graph()->NewNode(common()->Int32Constant(0));
+ Node* ret = graph()->NewNode(common()->Return(), zero, node,
+ graph()->start(), graph()->start());
NodeProperties::MergeControlToEnd(graph(), common(), ret);
Int64Lowering lowering(graph(), machine(), common(), zone(), signature);
@@ -216,7 +217,8 @@ TEST_F(Int64LoweringTest, UnalignedInt64Load) {
Int32Constant(base), Int32Constant(index), \
Int64Constant(value(0)), start(), start()); \
\
- Node* ret = graph()->NewNode(common()->Return(), \
+ Node* zero = graph()->NewNode(common()->Int32Constant(0)); \
+ Node* ret = graph()->NewNode(common()->Return(), zero, \
Int32Constant(return_value), store, start()); \
\
NodeProperties::MergeControlToEnd(graph(), common(), ret); \
@@ -313,7 +315,7 @@ TEST_F(Int64LoweringTest, CallI64Return) {
CompareCallDescriptors(
OpParameter<const CallDescriptor*>(
- graph()->end()->InputAt(1)->InputAt(0)->InputAt(0)),
+ graph()->end()->InputAt(1)->InputAt(1)->InputAt(0)),
wasm::ModuleEnv::GetI32WasmCallDescriptor(zone(), desc));
}
@@ -347,7 +349,7 @@ TEST_F(Int64LoweringTest, CallI64Parameter) {
CompareCallDescriptors(
OpParameter<const CallDescriptor*>(
- graph()->end()->InputAt(1)->InputAt(0)),
+ graph()->end()->InputAt(1)->InputAt(1)),
wasm::ModuleEnv::GetI32WasmCallDescriptor(zone(), desc));
}
« no previous file with comments | « test/unittests/compiler/instruction-selector-unittest.cc ('k') | test/unittests/compiler/loop-peeling-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698