OLD | NEW |
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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // By default, log code create information in the snapshot. | 312 // By default, log code create information in the snapshot. |
313 i::FLAG_log_code = true; | 313 i::FLAG_log_code = true; |
314 | 314 |
| 315 // Disable the i18n extension, as it doesn't support being snapshotted yet. |
| 316 i::FLAG_enable_i18n = false; |
| 317 |
315 // Print the usage if an error occurs when parsing the command line | 318 // Print the usage if an error occurs when parsing the command line |
316 // flags or if the help flag is set. | 319 // flags or if the help flag is set. |
317 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); | 320 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
318 if (result > 0 || argc != 2 || i::FLAG_help) { | 321 if (result > 0 || argc != 2 || i::FLAG_help) { |
319 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); | 322 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); |
320 i::FlagList::PrintHelp(); | 323 i::FlagList::PrintHelp(); |
321 return !i::FLAG_help; | 324 return !i::FLAG_help; |
322 } | 325 } |
323 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 326 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
324 BZip2Decompressor natives_decompressor; | 327 BZip2Decompressor natives_decompressor; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 "", | 431 "", |
429 ser.CurrentAllocationAddress(i::NEW_SPACE), | 432 ser.CurrentAllocationAddress(i::NEW_SPACE), |
430 ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), | 433 ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), |
431 ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), | 434 ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), |
432 ser.CurrentAllocationAddress(i::CODE_SPACE), | 435 ser.CurrentAllocationAddress(i::CODE_SPACE), |
433 ser.CurrentAllocationAddress(i::MAP_SPACE), | 436 ser.CurrentAllocationAddress(i::MAP_SPACE), |
434 ser.CurrentAllocationAddress(i::CELL_SPACE), | 437 ser.CurrentAllocationAddress(i::CELL_SPACE), |
435 ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); | 438 ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); |
436 return 0; | 439 return 0; |
437 } | 440 } |
OLD | NEW |