| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 if (result == BZ_OK) { | 289 if (result == BZ_OK) { |
| 290 *raw_data_size = decompressed_size; | 290 *raw_data_size = decompressed_size; |
| 291 } | 291 } |
| 292 return result; | 292 return result; |
| 293 } | 293 } |
| 294 }; | 294 }; |
| 295 #endif | 295 #endif |
| 296 | 296 |
| 297 | 297 |
| 298 int main(int argc, char** argv) { | 298 int main(int argc, char** argv) { |
| 299 #ifdef ENABLE_LOGGING_AND_PROFILING | |
| 300 // By default, log code create information in the snapshot. | 299 // By default, log code create information in the snapshot. |
| 301 i::FLAG_log_code = true; | 300 i::FLAG_log_code = true; |
| 302 #endif | 301 |
| 303 // Print the usage if an error occurs when parsing the command line | 302 // Print the usage if an error occurs when parsing the command line |
| 304 // flags or if the help flag is set. | 303 // flags or if the help flag is set. |
| 305 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); | 304 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
| 306 if (result > 0 || argc != 2 || i::FLAG_help) { | 305 if (result > 0 || argc != 2 || i::FLAG_help) { |
| 307 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); | 306 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); |
| 308 i::FlagList::PrintHelp(); | 307 i::FlagList::PrintHelp(); |
| 309 return !i::FLAG_help; | 308 return !i::FLAG_help; |
| 310 } | 309 } |
| 311 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 310 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
| 312 BZip2Decompressor natives_decompressor; | 311 BZip2Decompressor natives_decompressor; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 sink.WriteSpaceUsed( | 353 sink.WriteSpaceUsed( |
| 355 partial_ser.CurrentAllocationAddress(i::NEW_SPACE), | 354 partial_ser.CurrentAllocationAddress(i::NEW_SPACE), |
| 356 partial_ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), | 355 partial_ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), |
| 357 partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), | 356 partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), |
| 358 partial_ser.CurrentAllocationAddress(i::CODE_SPACE), | 357 partial_ser.CurrentAllocationAddress(i::CODE_SPACE), |
| 359 partial_ser.CurrentAllocationAddress(i::MAP_SPACE), | 358 partial_ser.CurrentAllocationAddress(i::MAP_SPACE), |
| 360 partial_ser.CurrentAllocationAddress(i::CELL_SPACE), | 359 partial_ser.CurrentAllocationAddress(i::CELL_SPACE), |
| 361 partial_ser.CurrentAllocationAddress(i::LO_SPACE)); | 360 partial_ser.CurrentAllocationAddress(i::LO_SPACE)); |
| 362 return 0; | 361 return 0; |
| 363 } | 362 } |
| OLD | NEW |