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

Side by Side Diff: src/mksnapshot.cc

Issue 18860007: Move InitializeICU() to the V8 API and use it. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/icu_util.cc ('k') | tools/gyp/v8.gyp » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 fprintf(stderr, "%s at line %d\n", *message_string, message->GetLineNumber()); 302 fprintf(stderr, "%s at line %d\n", *message_string, message->GetLineNumber());
303 fprintf(stderr, "%s\n", *message_line); 303 fprintf(stderr, "%s\n", *message_line);
304 for (int i = 0; i <= message->GetEndColumn(); ++i) { 304 for (int i = 0; i <= message->GetEndColumn(); ++i) {
305 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^'); 305 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^');
306 } 306 }
307 fprintf(stderr, "\n"); 307 fprintf(stderr, "\n");
308 } 308 }
309 309
310 310
311 int main(int argc, char** argv) { 311 int main(int argc, char** argv) {
312 V8::InitializeICU();
313
312 // By default, log code create information in the snapshot. 314 // By default, log code create information in the snapshot.
313 i::FLAG_log_code = true; 315 i::FLAG_log_code = true;
314 316
315 // Disable the i18n extension, as it doesn't support being snapshotted yet. 317 // Disable the i18n extension, as it doesn't support being snapshotted yet.
316 i::FLAG_enable_i18n = false; 318 i::FLAG_enable_i18n = false;
317 319
318 // Print the usage if an error occurs when parsing the command line 320 // Print the usage if an error occurs when parsing the command line
319 // flags or if the help flag is set. 321 // flags or if the help flag is set.
320 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 322 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
321 if (result > 0 || argc != 2 || i::FLAG_help) { 323 if (result > 0 || argc != 2 || i::FLAG_help) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 "", 433 "",
432 ser.CurrentAllocationAddress(i::NEW_SPACE), 434 ser.CurrentAllocationAddress(i::NEW_SPACE),
433 ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), 435 ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE),
434 ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), 436 ser.CurrentAllocationAddress(i::OLD_DATA_SPACE),
435 ser.CurrentAllocationAddress(i::CODE_SPACE), 437 ser.CurrentAllocationAddress(i::CODE_SPACE),
436 ser.CurrentAllocationAddress(i::MAP_SPACE), 438 ser.CurrentAllocationAddress(i::MAP_SPACE),
437 ser.CurrentAllocationAddress(i::CELL_SPACE), 439 ser.CurrentAllocationAddress(i::CELL_SPACE),
438 ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); 440 ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE));
439 return 0; 441 return 0;
440 } 442 }
OLDNEW
« no previous file with comments | « src/icu_util.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698