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(); |