Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(982)

Side by Side Diff: src/d8.cc

Issue 9307122: Bash completion for d8 flags (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/bash-completion.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 options.test_shell = true; 1281 options.test_shell = true;
1282 argv[i] = NULL; 1282 argv[i] = NULL;
1283 } else if (strcmp(argv[i], "--preemption") == 0) { 1283 } else if (strcmp(argv[i], "--preemption") == 0) {
1284 #ifdef V8_SHARED 1284 #ifdef V8_SHARED
1285 printf("D8 with shared library does not support multi-threading\n"); 1285 printf("D8 with shared library does not support multi-threading\n");
1286 return false; 1286 return false;
1287 #else 1287 #else
1288 options.use_preemption = true; 1288 options.use_preemption = true;
1289 argv[i] = NULL; 1289 argv[i] = NULL;
1290 #endif // V8_SHARED 1290 #endif // V8_SHARED
1291 } else if (strcmp(argv[i], "--no-preemption") == 0) { 1291 } else if (strcmp(argv[i], "--nopreemption") == 0) {
1292 #ifdef V8_SHARED 1292 #ifdef V8_SHARED
1293 printf("D8 with shared library does not support multi-threading\n"); 1293 printf("D8 with shared library does not support multi-threading\n");
1294 return false; 1294 return false;
1295 #else 1295 #else
1296 options.use_preemption = false; 1296 options.use_preemption = false;
1297 argv[i] = NULL; 1297 argv[i] = NULL;
1298 #endif // V8_SHARED 1298 #endif // V8_SHARED
1299 } else if (strcmp(argv[i], "--preemption-interval") == 0) { 1299 } else if (strcmp(argv[i], "--preemption-interval") == 0) {
1300 #ifdef V8_SHARED 1300 #ifdef V8_SHARED
1301 printf("D8 with shared library does not support multi-threading\n"); 1301 printf("D8 with shared library does not support multi-threading\n");
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 } 1531 }
1532 1532
1533 } // namespace v8 1533 } // namespace v8
1534 1534
1535 1535
1536 #ifndef GOOGLE3 1536 #ifndef GOOGLE3
1537 int main(int argc, char* argv[]) { 1537 int main(int argc, char* argv[]) {
1538 return v8::Shell::Main(argc, argv); 1538 return v8::Shell::Main(argc, argv);
1539 } 1539 }
1540 #endif 1540 #endif
OLDNEW
« no previous file with comments | « no previous file | tools/bash-completion.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698