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

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2663433003: [wasm] Introduce the --print-wasm-code flag to print wasm code. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index 28066d5be674717fadd186f683ce9334987ae989..c493ff879485e0c37f8f6ad56f3912724bb0f149 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -4000,6 +4000,9 @@ Handle<Code> WasmCompilationUnit::FinishCompilation() {
compile_timer.Start();
}
Handle<Code> code = info_.code();
+ if (FLAG_print_wasm_code) {
titzer 2017/01/27 14:03:21 Despite the mess in src/codegen.cc, I think this s
ahaas 2017/02/10 10:21:48 Done.
+ code->Print();
+ }
DCHECK(!code.is_null());
if (isolate_->logger()->is_logging_code_events() ||
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698