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

Unified Diff: src/snapshot-common.cc

Issue 1000063002: Hide RegExp and String initialization in a closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments Created 5 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
« no previous file with comments | « src/regexp.js ('k') | src/string.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/snapshot-common.cc
diff --git a/src/snapshot-common.cc b/src/snapshot-common.cc
index a3e5e02511cc2315b067acdf4db4bd946f3909c3..6bcabffb8111121b2360fd388c377034acab5099 100644
--- a/src/snapshot-common.cc
+++ b/src/snapshot-common.cc
@@ -110,9 +110,9 @@ void CalculateFirstPageSizes(bool is_default_snapshot,
}
PrintF(
"Deserialization will reserve:\n"
- "%*d bytes for startup\n"
- "%*d bytes per context\n",
- 10, startup_total, 10, context_total);
+ "%10d bytes for startup\n"
+ "%10d bytes per context\n",
+ startup_total, context_total);
}
for (int space = 0; space < i::Serializer::kNumberOfSpaces; space++) {
@@ -187,9 +187,9 @@ v8::StartupData Snapshot::CreateSnapshotBlob(
if (FLAG_profile_deserialization) {
PrintF(
"Snapshot blob consists of:\n"
- "%*d bytes for startup\n"
- "%*d bytes for context\n",
- 10, startup_length, 10, context_length);
+ "%10d bytes for startup\n"
+ "%10d bytes for context\n",
+ startup_length, context_length);
}
return result;
}
« no previous file with comments | « src/regexp.js ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698