Skip to content

Commit f99be4f

Browse files
mi-acCommit Bot
authored andcommitted
[test] Remove --deopt-stress from d8
The deopt-stress mode is unused. This prepares for deprecating corresponding api methods. The same kind of testing can be done by using --stress-opt and setting --deopt-every-n-times. Bug: v8:9941 Change-Id: I6796fcfa43d0efad51ec9d9a9adc949c26805a81 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1899617 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/master@{#64772}
1 parent 9716206 commit f99be4f

3 files changed

Lines changed: 2 additions & 15 deletions

File tree

src/api/api.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10604,13 +10604,6 @@ void Testing::PrepareStressRun(int run) {
1060410604
"--noalways-opt";
1060510605
static const char* kForcedOptimizations = "--always-opt";
1060610606

10607-
// In deopt-stress mode turn on frequent deoptimization. If no value
10608-
// is specified through --deopt-every-n-times use a default value.
10609-
static const char* kDeoptEvery13Times = "--deopt-every-n-times=13";
10610-
if (internal::Testing::stress_type() == Testing::kStressTypeDeopt &&
10611-
internal::FLAG_deopt_every_n_times == 0) {
10612-
V8::SetFlagsFromString(kDeoptEvery13Times);
10613-
}
1061410607
if (run == GetStressRuns() - 1) {
1061510608
V8::SetFlagsFromString(kForcedOptimizations);
1061610609
} else {

src/d8/d8.cc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2924,9 +2924,6 @@ bool Shell::SetOptions(int argc, char* argv[]) {
29242924
strcmp(argv[i], "--no-stress-opt") == 0) {
29252925
options.stress_opt = false;
29262926
argv[i] = nullptr;
2927-
} else if (strcmp(argv[i], "--stress-deopt") == 0) {
2928-
options.stress_deopt = true;
2929-
argv[i] = nullptr;
29302927
} else if (strcmp(argv[i], "--stress-background-compile") == 0) {
29312928
options.stress_background_compile = true;
29322929
argv[i] = nullptr;
@@ -2938,7 +2935,6 @@ bool Shell::SetOptions(int argc, char* argv[]) {
29382935
strcmp(argv[i], "--no-always-opt") == 0) {
29392936
// No support for stressing if we can't use --always-opt.
29402937
options.stress_opt = false;
2941-
options.stress_deopt = false;
29422938
} else if (strcmp(argv[i], "--logfile-per-isolate") == 0) {
29432939
logfile_per_isolate = true;
29442940
argv[i] = nullptr;
@@ -3644,9 +3640,8 @@ int Shell::Main(int argc, char* argv[]) {
36443640
tracing_controller->StartTracing(trace_config);
36453641
}
36463642

3647-
if (options.stress_opt || options.stress_deopt) {
3648-
Testing::SetStressRunType(options.stress_opt ? Testing::kStressTypeOpt
3649-
: Testing::kStressTypeDeopt);
3643+
if (options.stress_opt) {
3644+
Testing::SetStressRunType(Testing::kStressTypeOpt);
36503645
options.stress_runs = Testing::GetStressRuns();
36513646
for (int i = 0; i < options.stress_runs && result == 0; i++) {
36523647
printf("============ Stress %d/%d ============\n", i + 1,

src/d8/d8.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ class ShellOptions {
268268
bool omit_quit = false;
269269
bool wait_for_wasm = true;
270270
bool stress_opt = false;
271-
bool stress_deopt = false;
272271
int stress_runs = 1;
273272
bool interactive_shell = false;
274273
bool test_shell = false;

0 commit comments

Comments
 (0)