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

Unified Diff: src/wasm/wasm-module.h

Issue 2772363002: Separate function decoding counter into asm and wasm counters. (Closed)
Patch Set: Create dummy module environment for DecodeWasmFunction test. Created 3 years, 9 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: src/wasm/wasm-module.h
diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
index d7d1abd25e8ef707c45f3a553706647780d80dd9..39b8715412e007c0eca5566235c2723fc6062c3c 100644
--- a/src/wasm/wasm-module.h
+++ b/src/wasm/wasm-module.h
@@ -334,7 +334,8 @@ struct V8_EXPORT_PRIVATE ModuleEnv {
return &module->function_tables[index];
}
- bool asm_js() { return module->is_asm_js(); }
+ bool is_asm_js() const { return module->is_asm_js(); }
+ bool is_wasm() const { return module->is_wasm(); }
// Only used for testing.
Handle<Code> GetFunctionCode(uint32_t index) {

Powered by Google App Engine
This is Rietveld 408576698