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

Side by Side Diff: src/counters.h

Issue 2783713002: Separate module max memory pages counter for asm.js/WASM. (Closed)
Patch Set: Fix merge conflicts with master 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COUNTERS_H_ 5 #ifndef V8_COUNTERS_H_
6 #define V8_COUNTERS_H_ 6 #define V8_COUNTERS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/base/atomic-utils.h" 10 #include "src/base/atomic-utils.h"
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ 1017 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \
1018 HM(wasm_decode_asm_module_peak_memory_bytes, \ 1018 HM(wasm_decode_asm_module_peak_memory_bytes, \
1019 V8.WasmDecodeModulePeakMemoryBytes) \ 1019 V8.WasmDecodeModulePeakMemoryBytes) \
1020 HM(wasm_decode_wasm_module_peak_memory_bytes, \ 1020 HM(wasm_decode_wasm_module_peak_memory_bytes, \
1021 V8.WasmDecodeModulePeakMemoryBytes) \ 1021 V8.WasmDecodeModulePeakMemoryBytes) \
1022 HM(wasm_compile_function_peak_memory_bytes, \ 1022 HM(wasm_compile_function_peak_memory_bytes, \
1023 V8.WasmCompileFunctionPeakMemoryBytes) \ 1023 V8.WasmCompileFunctionPeakMemoryBytes) \
1024 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ 1024 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \
1025 HM(wasm_asm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ 1025 HM(wasm_asm_min_mem_pages_count, V8.WasmMinMemPagesCount) \
1026 HM(wasm_wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \ 1026 HM(wasm_wasm_min_mem_pages_count, V8.WasmMinMemPagesCount) \
1027 HM(wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \ 1027 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \
1028 HM(wasm_asm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \
1029 HM(wasm_wasm_max_mem_pages_count, V8.WasmMaxMemPagesCount) \
1028 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \ 1030 /* TODO(karlschimpf) Update chrome flags to reflect asm/wasm split. */ \
1029 HM(wasm_asm_function_size_bytes, V8.WasmFunctionSizeBytes) \ 1031 HM(wasm_asm_function_size_bytes, V8.WasmFunctionSizeBytes) \
1030 HM(wasm_wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \ 1032 HM(wasm_wasm_function_size_bytes, V8.WasmFunctionSizeBytes) \
1031 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes) 1033 HM(wasm_module_size_bytes, V8.WasmModuleSizeBytes)
1032 1034
1033 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC 1035 // WARNING: STATS_COUNTER_LIST_* is a very large macro that is causing MSVC
1034 // Intellisense to crash. It was broken into two macros (each of length 40 1036 // Intellisense to crash. It was broken into two macros (each of length 40
1035 // lines) rather than one macro (of length about 80 lines) to work around 1037 // lines) rather than one macro (of length about 80 lines) to work around
1036 // this problem. Please avoid using recursive macros of this length when 1038 // this problem. Please avoid using recursive macros of this length when
1037 // possible. 1039 // possible.
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 1342
1341 explicit Counters(Isolate* isolate); 1343 explicit Counters(Isolate* isolate);
1342 1344
1343 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 1345 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
1344 }; 1346 };
1345 1347
1346 } // namespace internal 1348 } // namespace internal
1347 } // namespace v8 1349 } // namespace v8
1348 1350
1349 #endif // V8_COUNTERS_H_ 1351 #endif // V8_COUNTERS_H_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/wasm-module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698