Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index f36e3a1739f0ca666baf2e9d3d442462d2032516..171c59b6f0464fb9dc314cb8a2d9246aa6574f70 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -2429,7 +2429,8 @@ bool Shell::SetOptions(int argc, char* argv[]) { |
if (strcmp(argv[i], "--stress-opt") == 0) { |
options.stress_opt = true; |
argv[i] = NULL; |
- } else if (strcmp(argv[i], "--nostress-opt") == 0) { |
+ } else if (strcmp(argv[i], "--nostress-opt") == 0 || |
+ strcmp(argv[i], "--no-stress-opt") == 0) { |
options.stress_opt = false; |
argv[i] = NULL; |
} else if (strcmp(argv[i], "--stress-deopt") == 0) { |
@@ -2438,7 +2439,8 @@ bool Shell::SetOptions(int argc, char* argv[]) { |
} else if (strcmp(argv[i], "--mock-arraybuffer-allocator") == 0) { |
options.mock_arraybuffer_allocator = true; |
argv[i] = NULL; |
- } else if (strcmp(argv[i], "--noalways-opt") == 0) { |
+ } else if (strcmp(argv[i], "--noalways-opt") == 0 || |
+ strcmp(argv[i], "--no-always-opt") == 0) { |
// No support for stressing if we can't use --always-opt. |
options.stress_opt = false; |
options.stress_deopt = false; |