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

Unified Diff: test/unittests/compiler/zone-stats-unittest.cc

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 years, 2 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 | « test/unittests/compiler/loop-peeling-unittest.cc ('k') | test/unittests/test-utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/compiler/zone-stats-unittest.cc
diff --git a/test/unittests/compiler/zone-stats-unittest.cc b/test/unittests/compiler/zone-stats-unittest.cc
index 67e181dc0760d80c92bae0dfd76cd5607121511e..a643d1480c5aa7865eaf9012cee366ab99ac501e 100644
--- a/test/unittests/compiler/zone-stats-unittest.cc
+++ b/test/unittests/compiler/zone-stats-unittest.cc
@@ -51,7 +51,7 @@ TEST_F(ZoneStatsTest, Empty) {
}
ExpectForPool(0, 0, 0);
{
- ZoneStats::Scope scope(zone_stats());
+ ZoneStats::Scope scope(zone_stats(), ZONE_NAME);
scope.zone();
}
ExpectForPool(0, 0, 0);
@@ -65,7 +65,7 @@ TEST_F(ZoneStatsTest, MultipleZonesWithDeletion) {
// Initialize.
size_t before_stats = 0;
for (size_t i = 0; i < kArraySize; ++i) {
- scopes[i] = new ZoneStats::Scope(zone_stats());
+ scopes[i] = new ZoneStats::Scope(zone_stats(), ZONE_NAME);
before_stats += Allocate(scopes[i]->zone()); // Add some stuff.
}
@@ -85,7 +85,7 @@ TEST_F(ZoneStatsTest, MultipleZonesWithDeletion) {
// Delete the scopes and create new ones.
for (size_t i = 0; i < kArraySize; ++i) {
delete scopes[i];
- scopes[i] = new ZoneStats::Scope(zone_stats());
+ scopes[i] = new ZoneStats::Scope(zone_stats(), ZONE_NAME);
}
Expect(&stats, 0, before_deletion, before_deletion);
@@ -120,7 +120,7 @@ TEST_F(ZoneStatsTest, SimpleAllocationLoop) {
size_t max_loop_allocation = 0;
ZoneStats::StatsScope outer_stats(zone_stats());
{
- ZoneStats::Scope outer_scope(zone_stats());
+ ZoneStats::Scope outer_scope(zone_stats(), ZONE_NAME);
size_t outer_allocated = 0;
for (int i = 0; i < runs; ++i) {
{
@@ -131,7 +131,7 @@ TEST_F(ZoneStatsTest, SimpleAllocationLoop) {
ZoneStats::StatsScope inner_stats(zone_stats());
size_t allocated = 0;
{
- ZoneStats::Scope inner_scope(zone_stats());
+ ZoneStats::Scope inner_scope(zone_stats(), ZONE_NAME);
for (int j = 0; j < 20; ++j) {
size_t bytes = Allocate(inner_scope.zone());
allocated += bytes;
« no previous file with comments | « test/unittests/compiler/loop-peeling-unittest.cc ('k') | test/unittests/test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698