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

Side by Side Diff: src/d8.cc

Issue 2655223003: Revert of [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « src/compiler.cc ('k') | src/runtime/runtime.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 v8::V8::SetFlagsFromString(flags, static_cast<int>(strlen(flags))); 2422 v8::V8::SetFlagsFromString(flags, static_cast<int>(strlen(flags)));
2423 } 2423 }
2424 2424
2425 2425
2426 bool Shell::SetOptions(int argc, char* argv[]) { 2426 bool Shell::SetOptions(int argc, char* argv[]) {
2427 bool logfile_per_isolate = false; 2427 bool logfile_per_isolate = false;
2428 for (int i = 0; i < argc; i++) { 2428 for (int i = 0; i < argc; i++) {
2429 if (strcmp(argv[i], "--stress-opt") == 0) { 2429 if (strcmp(argv[i], "--stress-opt") == 0) {
2430 options.stress_opt = true; 2430 options.stress_opt = true;
2431 argv[i] = NULL; 2431 argv[i] = NULL;
2432 } else if (strcmp(argv[i], "--nostress-opt") == 0 || 2432 } else if (strcmp(argv[i], "--nostress-opt") == 0) {
2433 strcmp(argv[i], "--no-stress-opt") == 0) {
2434 options.stress_opt = false; 2433 options.stress_opt = false;
2435 argv[i] = NULL; 2434 argv[i] = NULL;
2436 } else if (strcmp(argv[i], "--stress-deopt") == 0) { 2435 } else if (strcmp(argv[i], "--stress-deopt") == 0) {
2437 options.stress_deopt = true; 2436 options.stress_deopt = true;
2438 argv[i] = NULL; 2437 argv[i] = NULL;
2439 } else if (strcmp(argv[i], "--mock-arraybuffer-allocator") == 0) { 2438 } else if (strcmp(argv[i], "--mock-arraybuffer-allocator") == 0) {
2440 options.mock_arraybuffer_allocator = true; 2439 options.mock_arraybuffer_allocator = true;
2441 argv[i] = NULL; 2440 argv[i] = NULL;
2442 } else if (strcmp(argv[i], "--noalways-opt") == 0 || 2441 } else if (strcmp(argv[i], "--noalways-opt") == 0) {
2443 strcmp(argv[i], "--no-always-opt") == 0) {
2444 // No support for stressing if we can't use --always-opt. 2442 // No support for stressing if we can't use --always-opt.
2445 options.stress_opt = false; 2443 options.stress_opt = false;
2446 options.stress_deopt = false; 2444 options.stress_deopt = false;
2447 } else if (strcmp(argv[i], "--logfile-per-isolate") == 0) { 2445 } else if (strcmp(argv[i], "--logfile-per-isolate") == 0) {
2448 logfile_per_isolate = true; 2446 logfile_per_isolate = true;
2449 argv[i] = NULL; 2447 argv[i] = NULL;
2450 } else if (strcmp(argv[i], "--shell") == 0) { 2448 } else if (strcmp(argv[i], "--shell") == 0) {
2451 options.interactive_shell = true; 2449 options.interactive_shell = true;
2452 argv[i] = NULL; 2450 argv[i] = NULL;
2453 } else if (strcmp(argv[i], "--test") == 0) { 2451 } else if (strcmp(argv[i], "--test") == 0) {
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
3085 } 3083 }
3086 3084
3087 } // namespace v8 3085 } // namespace v8
3088 3086
3089 3087
3090 #ifndef GOOGLE3 3088 #ifndef GOOGLE3
3091 int main(int argc, char* argv[]) { 3089 int main(int argc, char* argv[]) {
3092 return v8::Shell::Main(argc, argv); 3090 return v8::Shell::Main(argc, argv);
3093 } 3091 }
3094 #endif 3092 #endif
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698