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

Unified Diff: src/hydrogen.cc

Issue 924453002: Fix invalid use of int in Zone. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Windows again... Created 5 years, 10 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/hydrogen.h ('k') | src/lithium-allocator.h » ('j') | src/zone.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 7e5880a0ad1b8df06ac0ee5d59c53af6b7925626..902c43c1330e4c7af7f977c9a41e6d7a8733bc80 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -13452,9 +13452,9 @@ void HStatistics::Print() {
double percent = times_[i].PercentOf(sum);
PrintF(" %8.3f ms / %4.1f %% ", ms, percent);
- unsigned size = sizes_[i];
+ size_t size = sizes_[i];
double size_percent = static_cast<double>(size) * 100 / total_size_;
- PrintF(" %9u bytes / %4.1f %%\n", size, size_percent);
+ PrintF(" %9zu bytes / %4.1f %%\n", size, size_percent);
}
PrintF(
@@ -13470,7 +13470,7 @@ void HStatistics::Print() {
PrintF(
"----------------------------------------"
"----------------------------------------\n");
- PrintF("%33s %8.3f ms %9u bytes\n", "Total",
+ PrintF("%33s %8.3f ms %9zu bytes\n", "Total",
total.InMillisecondsF(), total_size_);
PrintF("%33s (%.1f times slower than full code gen)\n", "",
total.TimesOf(full_code_gen_));
@@ -13489,7 +13489,7 @@ void HStatistics::Print() {
void HStatistics::SaveTiming(const char* name, base::TimeDelta time,
- unsigned size) {
+ size_t size) {
total_size_ += size;
for (int i = 0; i < names_.length(); ++i) {
if (strcmp(names_[i], name) == 0) {
« no previous file with comments | « src/hydrogen.h ('k') | src/lithium-allocator.h » ('j') | src/zone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698