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

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

Issue 2845163002: Remove collecting data on max memory pages for asm.js, not applicable. (Closed)
Patch Set: Created 3 years, 8 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/counters.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-objects.cc
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc
index e9e70db568f1e6aba6ecf957b6d45c53ed353b04..679590f39aece1d71a62e679d317c49fc7e9d9e4 100644
--- a/src/wasm/wasm-objects.cc
+++ b/src/wasm/wasm-objects.cc
@@ -629,10 +629,9 @@ uint32_t WasmInstanceObject::GetMaxMemoryPages() {
}
uint32_t compiled_max_pages = compiled_module()->module()->max_mem_pages;
Isolate* isolate = GetIsolate();
- auto* histogram = (compiled_module()->module()->is_wasm()
- ? isolate->counters()->wasm_wasm_max_mem_pages_count()
- : isolate->counters()->wasm_asm_max_mem_pages_count());
- histogram->AddSample(compiled_max_pages);
+ assert(compiled_module()->module()->is_wasm());
+ isolate->counters()->wasm_wasm_max_mem_pages_count()->AddSample(
+ compiled_max_pages);
if (compiled_max_pages != 0) return compiled_max_pages;
return FLAG_wasm_max_mem_pages;
}
« no previous file with comments | « src/counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698