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

Unified Diff: src/compilation-info.h

Issue 2663433003: [wasm] Introduce the --print-wasm-code flag to print wasm code. (Closed)
Patch Set: Forgot to save Created 3 years, 10 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 | « src/codegen.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-info.h
diff --git a/src/compilation-info.h b/src/compilation-info.h
index 46fb3cb9ace02be2c32141fa3175955b5b5aa857..e5c32e00a72f31c68e38ada74e0a01c7b52c9f8f 100644
--- a/src/compilation-info.h
+++ b/src/compilation-info.h
@@ -210,6 +210,7 @@ class V8_EXPORT_PRIVATE CompilationInfo final {
// Accessors for the different compilation modes.
bool IsOptimizing() const { return mode_ == OPTIMIZE; }
bool IsStub() const { return mode_ == STUB; }
+ bool IsWasm() const { return output_code_kind() == Code::WASM_FUNCTION; }
void SetOptimizing();
void SetOptimizingForOsr(BailoutId osr_ast_id, JavaScriptFrame* osr_frame) {
SetOptimizing();
« no previous file with comments | « src/codegen.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698