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