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

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

Issue 2959963002: [wasm] Move the CallDescriptor creation methods out of ModuleEnv into the compiler. (Closed)
Patch Set: Include wasm-compiler.h from wasm-linkage.cc Created 3 years, 6 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 | « test/cctest/wasm/wasm-run-utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5604b81ecd828f7fab422188847de076d7e0455b..35f296442e44222b6fd74a62f870d4bfcf11775b 100644
--- a/test/unittests/compiler/int64-lowering-unittest.cc
+++ b/test/unittests/compiler/int64-lowering-unittest.cc
@@ -7,6 +7,7 @@
#include "src/compiler/linkage.h"
#include "src/compiler/machine-operator.h"
#include "src/compiler/node.h"
+#include "src/compiler/wasm-compiler.h"
#include "src/compiler/node-properties.h"
@@ -331,7 +332,7 @@ TEST_F(Int64LoweringTest, CallI64Return) {
sig_builder.AddReturn(MachineRepresentation::kWord64);
compiler::CallDescriptor* desc =
- wasm::ModuleEnv::GetWasmCallDescriptor(zone(), sig_builder.Build());
+ compiler::GetWasmCallDescriptor(zone(), sig_builder.Build());
LowerGraph(graph()->NewNode(common()->Call(desc), Int32Constant(function),
start(), start()),
@@ -349,7 +350,7 @@ TEST_F(Int64LoweringTest, CallI64Return) {
CompareCallDescriptors(
OpParameter<const CallDescriptor*>(
graph()->end()->InputAt(1)->InputAt(1)->InputAt(0)),
- wasm::ModuleEnv::GetI32WasmCallDescriptor(zone(), desc));
+ compiler::GetI32WasmCallDescriptor(zone(), desc));
}
TEST_F(Int64LoweringTest, CallI64Parameter) {
@@ -362,7 +363,7 @@ TEST_F(Int64LoweringTest, CallI64Parameter) {
sig_builder.AddParam(MachineRepresentation::kWord64);
compiler::CallDescriptor* desc =
- wasm::ModuleEnv::GetWasmCallDescriptor(zone(), sig_builder.Build());
+ compiler::GetWasmCallDescriptor(zone(), sig_builder.Build());
LowerGraph(graph()->NewNode(common()->Call(desc), Int32Constant(function),
Int64Constant(value(0)),
@@ -380,10 +381,9 @@ TEST_F(Int64LoweringTest, CallI64Parameter) {
IsInt32Constant(high_word_value(2)), start(), start()),
start(), start()));
- CompareCallDescriptors(
- OpParameter<const CallDescriptor*>(
- graph()->end()->InputAt(1)->InputAt(1)),
- wasm::ModuleEnv::GetI32WasmCallDescriptor(zone(), desc));
+ CompareCallDescriptors(OpParameter<const CallDescriptor*>(
+ graph()->end()->InputAt(1)->InputAt(1)),
+ compiler::GetI32WasmCallDescriptor(zone(), desc));
}
TEST_F(Int64LoweringTest, Int64Add) {
« no previous file with comments | « test/cctest/wasm/wasm-run-utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698