OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1089 } | 1089 } |
1090 #endif // V8_SHARED | 1090 #endif // V8_SHARED |
1091 | 1091 |
1092 | 1092 |
1093 ShellOptions::~ShellOptions() { | 1093 ShellOptions::~ShellOptions() { |
1094 delete[] isolate_sources; | 1094 delete[] isolate_sources; |
1095 isolate_sources = NULL; | 1095 isolate_sources = NULL; |
1096 #ifndef V8_SHARED | 1096 #ifndef V8_SHARED |
1097 delete parallel_files; | 1097 delete parallel_files; |
1098 parallel_files = NULL; | 1098 parallel_files = NULL; |
1099 #endif // V8_SHARED | 1099 #endif // V8_SHARED |
1100 } | 1100 } |
1101 | 1101 |
1102 | 1102 |
1103 bool Shell::SetOptions(int argc, char* argv[]) { | 1103 bool Shell::SetOptions(int argc, char* argv[]) { |
1104 for (int i = 0; i < argc; i++) { | 1104 for (int i = 0; i < argc; i++) { |
1105 if (strcmp(argv[i], "--stress-opt") == 0) { | 1105 if (strcmp(argv[i], "--stress-opt") == 0) { |
1106 options.stress_opt = true; | 1106 options.stress_opt = true; |
1107 argv[i] = NULL; | 1107 argv[i] = NULL; |
1108 } else if (strcmp(argv[i], "--stress-deopt") == 0) { | 1108 } else if (strcmp(argv[i], "--stress-deopt") == 0) { |
1109 options.stress_deopt = true; | 1109 options.stress_deopt = true; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1338 } | 1338 } |
1339 | 1339 |
1340 } // namespace v8 | 1340 } // namespace v8 |
1341 | 1341 |
1342 | 1342 |
1343 #ifndef GOOGLE3 | 1343 #ifndef GOOGLE3 |
1344 int main(int argc, char* argv[]) { | 1344 int main(int argc, char* argv[]) { |
1345 return v8::Shell::Main(argc, argv); | 1345 return v8::Shell::Main(argc, argv); |
1346 } | 1346 } |
1347 #endif | 1347 #endif |
OLD | NEW |