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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 } | 1351 } |
1352 } | 1352 } |
1353 #endif // V8_SHARED | 1353 #endif // V8_SHARED |
1354 | 1354 |
1355 | 1355 |
1356 bool Shell::SetOptions(int argc, char* argv[]) { | 1356 bool Shell::SetOptions(int argc, char* argv[]) { |
1357 for (int i = 0; i < argc; i++) { | 1357 for (int i = 0; i < argc; i++) { |
1358 if (strcmp(argv[i], "--stress-opt") == 0) { | 1358 if (strcmp(argv[i], "--stress-opt") == 0) { |
1359 options.stress_opt = true; | 1359 options.stress_opt = true; |
1360 argv[i] = NULL; | 1360 argv[i] = NULL; |
1361 } else if (strcmp(argv[i], "--nostress-opt") == 0) { | |
1362 options.stress_opt = false; | |
1363 argv[i] = NULL; | |
1364 } else if (strcmp(argv[i], "--stress-deopt") == 0) { | 1361 } else if (strcmp(argv[i], "--stress-deopt") == 0) { |
1365 options.stress_deopt = true; | 1362 options.stress_deopt = true; |
1366 argv[i] = NULL; | 1363 argv[i] = NULL; |
1367 } else if (strcmp(argv[i], "--noalways-opt") == 0) { | 1364 } else if (strcmp(argv[i], "--noalways-opt") == 0) { |
1368 // No support for stressing if we can't use --always-opt. | 1365 // No support for stressing if we can't use --always-opt. |
1369 options.stress_opt = false; | 1366 options.stress_opt = false; |
1370 options.stress_deopt = false; | 1367 options.stress_deopt = false; |
1371 } else if (strcmp(argv[i], "--shell") == 0) { | 1368 } else if (strcmp(argv[i], "--shell") == 0) { |
1372 options.interactive_shell = true; | 1369 options.interactive_shell = true; |
1373 argv[i] = NULL; | 1370 argv[i] = NULL; |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 } | 1761 } |
1765 | 1762 |
1766 } // namespace v8 | 1763 } // namespace v8 |
1767 | 1764 |
1768 | 1765 |
1769 #ifndef GOOGLE3 | 1766 #ifndef GOOGLE3 |
1770 int main(int argc, char* argv[]) { | 1767 int main(int argc, char* argv[]) { |
1771 return v8::Shell::Main(argc, argv); | 1768 return v8::Shell::Main(argc, argv); |
1772 } | 1769 } |
1773 #endif | 1770 #endif |
OLD | NEW |