| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 i::FLAG_log_code = true; | 286 i::FLAG_log_code = true; |
| 287 | 287 |
| 288 // Print the usage if an error occurs when parsing the command line | 288 // Print the usage if an error occurs when parsing the command line |
| 289 // flags or if the help flag is set. | 289 // flags or if the help flag is set. |
| 290 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); | 290 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
| 291 if (result > 0 || argc != 2 || i::FLAG_help) { | 291 if (result > 0 || argc != 2 || i::FLAG_help) { |
| 292 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); | 292 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); |
| 293 i::FlagList::PrintHelp(); | 293 i::FlagList::PrintHelp(); |
| 294 return !i::FLAG_help; | 294 return !i::FLAG_help; |
| 295 } | 295 } |
| 296 i::Isolate::GlobalSetup(); |
| 296 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 297 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
| 297 BZip2Decompressor natives_decompressor; | 298 BZip2Decompressor natives_decompressor; |
| 298 int bz2_result = natives_decompressor.Decompress(); | 299 int bz2_result = natives_decompressor.Decompress(); |
| 299 if (bz2_result != BZ_OK) { | 300 if (bz2_result != BZ_OK) { |
| 300 fprintf(stderr, "bzip error code: %d\n", bz2_result); | 301 fprintf(stderr, "bzip error code: %d\n", bz2_result); |
| 301 exit(1); | 302 exit(1); |
| 302 } | 303 } |
| 303 #endif | 304 #endif |
| 304 i::Serializer::Enable(); | 305 i::Serializer::Enable(); |
| 305 Persistent<Context> context = v8::Context::New(); | 306 Persistent<Context> context = v8::Context::New(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 sink.WriteSpaceUsed( | 340 sink.WriteSpaceUsed( |
| 340 partial_ser.CurrentAllocationAddress(i::NEW_SPACE), | 341 partial_ser.CurrentAllocationAddress(i::NEW_SPACE), |
| 341 partial_ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), | 342 partial_ser.CurrentAllocationAddress(i::OLD_POINTER_SPACE), |
| 342 partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), | 343 partial_ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), |
| 343 partial_ser.CurrentAllocationAddress(i::CODE_SPACE), | 344 partial_ser.CurrentAllocationAddress(i::CODE_SPACE), |
| 344 partial_ser.CurrentAllocationAddress(i::MAP_SPACE), | 345 partial_ser.CurrentAllocationAddress(i::MAP_SPACE), |
| 345 partial_ser.CurrentAllocationAddress(i::CELL_SPACE), | 346 partial_ser.CurrentAllocationAddress(i::CELL_SPACE), |
| 346 partial_ser.CurrentAllocationAddress(i::LO_SPACE)); | 347 partial_ser.CurrentAllocationAddress(i::LO_SPACE)); |
| 347 return 0; | 348 return 0; |
| 348 } | 349 } |
| OLD | NEW |