| 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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 // Ignore any -f flags for compatibility with other stand-alone | 1153 // Ignore any -f flags for compatibility with other stand-alone |
| 1154 // JavaScript engines. | 1154 // JavaScript engines. |
| 1155 continue; | 1155 continue; |
| 1156 } else if (strcmp(argv[i], "--isolate") == 0) { | 1156 } else if (strcmp(argv[i], "--isolate") == 0) { |
| 1157 #ifdef V8_SHARED | 1157 #ifdef V8_SHARED |
| 1158 printf("D8 with shared library does not support multi-threading\n"); | 1158 printf("D8 with shared library does not support multi-threading\n"); |
| 1159 return false; | 1159 return false; |
| 1160 #endif // V8_SHARED | 1160 #endif // V8_SHARED |
| 1161 options.num_isolates++; | 1161 options.num_isolates++; |
| 1162 } else if (strcmp(argv[i], "-p") == 0) { | 1162 } else if (strcmp(argv[i], "-p") == 0) { |
| 1163 options.num_parallel_files++; | |
| 1164 #ifdef V8_SHARED | 1163 #ifdef V8_SHARED |
| 1165 printf("D8 with shared library does not support multi-threading\n"); | 1164 printf("D8 with shared library does not support multi-threading\n"); |
| 1166 return false; | 1165 return false; |
| 1166 #else |
| 1167 options.num_parallel_files++; |
| 1167 #endif // V8_SHARED | 1168 #endif // V8_SHARED |
| 1168 } | 1169 } |
| 1169 #ifdef V8_SHARED | 1170 #ifdef V8_SHARED |
| 1170 else if (strcmp(argv[i], "--dump-counters") == 0) { | 1171 else if (strcmp(argv[i], "--dump-counters") == 0) { |
| 1171 printf("D8 with shared library does not include counters\n"); | 1172 printf("D8 with shared library does not include counters\n"); |
| 1172 return false; | 1173 return false; |
| 1173 } else if (strcmp(argv[i], "--debugger") == 0) { | 1174 } else if (strcmp(argv[i], "--debugger") == 0) { |
| 1174 printf("Javascript debugger not included\n"); | 1175 printf("Javascript debugger not included\n"); |
| 1175 return false; | 1176 return false; |
| 1176 } | 1177 } |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 } | 1345 } |
| 1345 | 1346 |
| 1346 } // namespace v8 | 1347 } // namespace v8 |
| 1347 | 1348 |
| 1348 | 1349 |
| 1349 #ifndef GOOGLE3 | 1350 #ifndef GOOGLE3 |
| 1350 int main(int argc, char* argv[]) { | 1351 int main(int argc, char* argv[]) { |
| 1351 return v8::Shell::Main(argc, argv); | 1352 return v8::Shell::Main(argc, argv); |
| 1352 } | 1353 } |
| 1353 #endif | 1354 #endif |
| OLD | NEW |