| 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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 } | 1325 } |
| 1326 } | 1326 } |
| 1327 #endif // V8_SHARED | 1327 #endif // V8_SHARED |
| 1328 | 1328 |
| 1329 | 1329 |
| 1330 bool Shell::SetOptions(int argc, char* argv[]) { | 1330 bool Shell::SetOptions(int argc, char* argv[]) { |
| 1331 for (int i = 0; i < argc; i++) { | 1331 for (int i = 0; i < argc; i++) { |
| 1332 if (strcmp(argv[i], "--stress-opt") == 0) { | 1332 if (strcmp(argv[i], "--stress-opt") == 0) { |
| 1333 options.stress_opt = true; | 1333 options.stress_opt = true; |
| 1334 argv[i] = NULL; | 1334 argv[i] = NULL; |
| 1335 } else if (strcmp(argv[i], "--nostress-opt") == 0) { |
| 1336 options.stress_opt = false; |
| 1337 argv[i] = NULL; |
| 1335 } else if (strcmp(argv[i], "--stress-deopt") == 0) { | 1338 } else if (strcmp(argv[i], "--stress-deopt") == 0) { |
| 1336 options.stress_deopt = true; | 1339 options.stress_deopt = true; |
| 1337 argv[i] = NULL; | 1340 argv[i] = NULL; |
| 1338 } else if (strcmp(argv[i], "--noalways-opt") == 0) { | 1341 } else if (strcmp(argv[i], "--noalways-opt") == 0) { |
| 1339 // No support for stressing if we can't use --always-opt. | 1342 // No support for stressing if we can't use --always-opt. |
| 1340 options.stress_opt = false; | 1343 options.stress_opt = false; |
| 1341 options.stress_deopt = false; | 1344 options.stress_deopt = false; |
| 1342 } else if (strcmp(argv[i], "--shell") == 0) { | 1345 } else if (strcmp(argv[i], "--shell") == 0) { |
| 1343 options.interactive_shell = true; | 1346 options.interactive_shell = true; |
| 1344 argv[i] = NULL; | 1347 argv[i] = NULL; |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1725 } | 1728 } |
| 1726 | 1729 |
| 1727 } // namespace v8 | 1730 } // namespace v8 |
| 1728 | 1731 |
| 1729 | 1732 |
| 1730 #ifndef GOOGLE3 | 1733 #ifndef GOOGLE3 |
| 1731 int main(int argc, char* argv[]) { | 1734 int main(int argc, char* argv[]) { |
| 1732 return v8::Shell::Main(argc, argv); | 1735 return v8::Shell::Main(argc, argv); |
| 1733 } | 1736 } |
| 1734 #endif | 1737 #endif |
| OLD | NEW |