[test] Remove v8-testing.h
Deprecation was prepared by: https://crrev.com/c/1899774 Bug: v8:9941 Change-Id: Idf236c2ebfc23e26dcb264747721d7c18986b6b8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1955552 Reviewed-by: Ulan Degenbaev <ulan@chromium.org> Commit-Queue: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/master@{#65396}
This commit is contained in:
parent
9d6911fde0
commit
3ab75534e6
1
BUILD.gn
1
BUILD.gn
@ -1959,7 +1959,6 @@ v8_source_set("v8_base_without_compiler") {
|
|||||||
"include/v8-internal.h",
|
"include/v8-internal.h",
|
||||||
"include/v8-platform.h",
|
"include/v8-platform.h",
|
||||||
"include/v8-profiler.h",
|
"include/v8-profiler.h",
|
||||||
"include/v8-testing.h",
|
|
||||||
"include/v8-util.h",
|
"include/v8-util.h",
|
||||||
"include/v8-wasm-trap-handler-posix.h",
|
"include/v8-wasm-trap-handler-posix.h",
|
||||||
"include/v8.h",
|
"include/v8.h",
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
// Copyright 2010 the V8 project authors. All rights reserved.
|
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
|
||||||
// found in the LICENSE file.
|
|
||||||
|
|
||||||
#ifndef V8_V8_TEST_H_
|
|
||||||
#define V8_V8_TEST_H_
|
|
||||||
|
|
||||||
#include "v8.h" // NOLINT(build/include)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Testing support for the V8 JavaScript engine.
|
|
||||||
*/
|
|
||||||
namespace v8 {
|
|
||||||
class V8_EXPORT Testing {
|
|
||||||
public:
|
|
||||||
enum V8_DEPRECATED("Don't use this (d8-specific testing logic).") StressType {
|
|
||||||
kStressTypeOpt,
|
|
||||||
kStressTypeDeopt
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the type of stressing to do. The default if not set is kStressTypeOpt.
|
|
||||||
*/
|
|
||||||
V8_DEPRECATED("Don't use this (d8-specific testing logic).")
|
|
||||||
static void SetStressRunType(StressType type);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the number of runs of a given test that is required to get the full
|
|
||||||
* stress coverage.
|
|
||||||
*/
|
|
||||||
V8_DEPRECATED("Don't use this (d8-specific testing logic).")
|
|
||||||
static int GetStressRuns();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Indicate the number of the run which is about to start. The value of run
|
|
||||||
* should be between 0 and one less than the result from GetStressRuns()
|
|
||||||
*/
|
|
||||||
V8_DEPRECATED("Don't use this (d8-specific testing logic).")
|
|
||||||
static void PrepareStressRun(int run);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Force deoptimization of all functions.
|
|
||||||
*/
|
|
||||||
V8_DEPRECATED("Don't use this (d8-specific testing logic).")
|
|
||||||
static void DeoptimizeAll(Isolate* isolate);
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace v8
|
|
||||||
|
|
||||||
#endif // V8_V8_TEST_H_
|
|
@ -14,7 +14,6 @@
|
|||||||
#include "src/api/api-inl.h"
|
#include "src/api/api-inl.h"
|
||||||
|
|
||||||
#include "include/v8-profiler.h"
|
#include "include/v8-profiler.h"
|
||||||
#include "include/v8-testing.h"
|
|
||||||
#include "include/v8-util.h"
|
#include "include/v8-util.h"
|
||||||
#include "src/api/api-natives.h"
|
#include "src/api/api-natives.h"
|
||||||
#include "src/base/functional.h"
|
#include "src/base/functional.h"
|
||||||
@ -10720,45 +10719,6 @@ void HeapProfiler::RemoveBuildEmbedderGraphCallback(
|
|||||||
callback, data);
|
callback, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deprecated.
|
|
||||||
void Testing::SetStressRunType(Testing::StressType type) {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated.
|
|
||||||
int Testing::GetStressRuns() {
|
|
||||||
if (internal::FLAG_stress_runs != 0) return internal::FLAG_stress_runs;
|
|
||||||
#ifdef DEBUG
|
|
||||||
// In debug mode the code runs much slower so stressing will only make two
|
|
||||||
// runs.
|
|
||||||
return 2;
|
|
||||||
#else
|
|
||||||
return 5;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated.
|
|
||||||
void Testing::PrepareStressRun(int run) {
|
|
||||||
static const char* kLazyOptimizations =
|
|
||||||
"--prepare-always-opt "
|
|
||||||
"--max-inlined-bytecode-size=999999 "
|
|
||||||
"--max-inlined-bytecode-size-cumulative=999999 "
|
|
||||||
"--noalways-opt";
|
|
||||||
static const char* kForcedOptimizations = "--always-opt";
|
|
||||||
|
|
||||||
if (run == GetStressRuns() - 1) {
|
|
||||||
V8::SetFlagsFromString(kForcedOptimizations);
|
|
||||||
} else {
|
|
||||||
V8::SetFlagsFromString(kLazyOptimizations);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated.
|
|
||||||
void Testing::DeoptimizeAll(Isolate* isolate) {
|
|
||||||
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
|
|
||||||
i::HandleScope scope(i_isolate);
|
|
||||||
i::Deoptimizer::DeoptimizeAll(i_isolate);
|
|
||||||
}
|
|
||||||
|
|
||||||
void EmbedderHeapTracer::FinalizeTracing() {
|
void EmbedderHeapTracer::FinalizeTracing() {
|
||||||
if (isolate_) {
|
if (isolate_) {
|
||||||
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(isolate_);
|
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(isolate_);
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "include/v8-testing.h"
|
|
||||||
#include "src/execution/isolate.h"
|
#include "src/execution/isolate.h"
|
||||||
#include "src/heap/factory.h"
|
#include "src/heap/factory.h"
|
||||||
#include "src/objects/bigint.h"
|
#include "src/objects/bigint.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user