| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 printf("Warning: unknown flag %s.\nTry --help for options\n", argv[i]); | 1400 printf("Warning: unknown flag %s.\nTry --help for options\n", argv[i]); |
| 1401 } | 1401 } |
| 1402 } | 1402 } |
| 1403 current->End(argc); | 1403 current->End(argc); |
| 1404 | 1404 |
| 1405 return true; | 1405 return true; |
| 1406 } | 1406 } |
| 1407 | 1407 |
| 1408 | 1408 |
| 1409 int Shell::RunMain(int argc, char* argv[]) { | 1409 int Shell::RunMain(int argc, char* argv[]) { |
| 1410 i::Isolate::GlobalSetup(); |
| 1410 #ifndef V8_SHARED | 1411 #ifndef V8_SHARED |
| 1411 i::List<i::Thread*> threads(1); | 1412 i::List<i::Thread*> threads(1); |
| 1412 if (options.parallel_files != NULL) { | 1413 if (options.parallel_files != NULL) { |
| 1413 for (int i = 0; i < options.num_parallel_files; i++) { | 1414 for (int i = 0; i < options.num_parallel_files; i++) { |
| 1414 char* files = NULL; | 1415 char* files = NULL; |
| 1415 { Locker lock(Isolate::GetCurrent()); | 1416 { Locker lock(Isolate::GetCurrent()); |
| 1416 int size = 0; | 1417 int size = 0; |
| 1417 files = ReadChars(options.parallel_files[i], &size); | 1418 files = ReadChars(options.parallel_files[i], &size); |
| 1418 } | 1419 } |
| 1419 if (files == NULL) { | 1420 if (files == NULL) { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 } | 1554 } |
| 1554 | 1555 |
| 1555 } // namespace v8 | 1556 } // namespace v8 |
| 1556 | 1557 |
| 1557 | 1558 |
| 1558 #ifndef GOOGLE3 | 1559 #ifndef GOOGLE3 |
| 1559 int main(int argc, char* argv[]) { | 1560 int main(int argc, char* argv[]) { |
| 1560 return v8::Shell::Main(argc, argv); | 1561 return v8::Shell::Main(argc, argv); |
| 1561 } | 1562 } |
| 1562 #endif | 1563 #endif |
| OLD | NEW |