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

Side by Side Diff: src/d8.cc

Issue 115013003: Merged r17800, r17801 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Fix new line Created 7 years 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 | src/elements-kind.h » ('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 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 } 1329 }
1330 } 1330 }
1331 #endif // V8_SHARED 1331 #endif // V8_SHARED
1332 1332
1333 1333
1334 bool Shell::SetOptions(int argc, char* argv[]) { 1334 bool Shell::SetOptions(int argc, char* argv[]) {
1335 for (int i = 0; i < argc; i++) { 1335 for (int i = 0; i < argc; i++) {
1336 if (strcmp(argv[i], "--stress-opt") == 0) { 1336 if (strcmp(argv[i], "--stress-opt") == 0) {
1337 options.stress_opt = true; 1337 options.stress_opt = true;
1338 argv[i] = NULL; 1338 argv[i] = NULL;
1339 } else if (strcmp(argv[i], "--nostress-opt") == 0) {
1340 options.stress_opt = false;
1341 argv[i] = NULL;
1339 } else if (strcmp(argv[i], "--stress-deopt") == 0) { 1342 } else if (strcmp(argv[i], "--stress-deopt") == 0) {
1340 options.stress_deopt = true; 1343 options.stress_deopt = true;
1341 argv[i] = NULL; 1344 argv[i] = NULL;
1342 } else if (strcmp(argv[i], "--noalways-opt") == 0) { 1345 } else if (strcmp(argv[i], "--noalways-opt") == 0) {
1343 // No support for stressing if we can't use --always-opt. 1346 // No support for stressing if we can't use --always-opt.
1344 options.stress_opt = false; 1347 options.stress_opt = false;
1345 options.stress_deopt = false; 1348 options.stress_deopt = false;
1346 } else if (strcmp(argv[i], "--shell") == 0) { 1349 } else if (strcmp(argv[i], "--shell") == 0) {
1347 options.interactive_shell = true; 1350 options.interactive_shell = true;
1348 argv[i] = NULL; 1351 argv[i] = NULL;
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 } 1735 }
1733 1736
1734 } // namespace v8 1737 } // namespace v8
1735 1738
1736 1739
1737 #ifndef GOOGLE3 1740 #ifndef GOOGLE3
1738 int main(int argc, char* argv[]) { 1741 int main(int argc, char* argv[]) {
1739 return v8::Shell::Main(argc, argv); 1742 return v8::Shell::Main(argc, argv);
1740 } 1743 }
1741 #endif 1744 #endif
OLDNEW
« no previous file with comments | « no previous file | src/elements-kind.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698