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

Unified Diff: test/cctest/wasm/wasm-run-utils.h

Issue 1655883002: [wasm] Initial commit for the Int64Reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename children to inputs Created 4 years, 11 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/wasm/wasm-run-utils.h
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h
index f855306763f36142b7e876bbb0ed461dc0ca5a38..9eca72b8d197f02e2f759810dd0d984e5a477d6f 100644
--- a/test/cctest/wasm/wasm-run-utils.h
+++ b/test/cctest/wasm/wasm-run-utils.h
@@ -12,6 +12,7 @@
#include "src/base/utils/random-number-generator.h"
#include "src/compiler/graph-visualizer.h"
+#include "src/compiler/int64-reducer.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/wasm-compiler.h"
@@ -283,6 +284,13 @@ class WasmFunctionCompiler : public HandleAndZoneScope,
Handle<Code> Compile(ModuleEnv* module) {
descriptor_ = module->GetWasmCallDescriptor(this->zone(), env.sig);
CompilationInfo info("wasm compile", this->isolate(), this->zone());
+
+#if !WASM_64
+ Int64Reducer r(this->graph(), this->machine(), this->common(),
titzer 2016/02/02 10:14:35 I think you should move this use of the pipeline i
ahaas 2016/02/02 13:32:48 I call WasmCompiler::Int64LoweringForTesting now a
+ this->zone());
+ r.ReduceGraph();
+#endif
+
Handle<Code> result =
Pipeline::GenerateCodeForTesting(&info, descriptor_, this->graph());
#ifdef ENABLE_DISASSEMBLER

Powered by Google App Engine
This is Rietveld 408576698