Suppress some console functions for fuzzing
Bug: chromium:1044942 Change-Id: I6bc5f9a83e56a67996bb23ff46e1c58c719a2dfb Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2027988 Commit-Queue: Michael Achenbach <machenbach@chromium.org> Reviewed-by: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#66030}
This commit is contained in:
parent
acb4f3b549
commit
01646bc89c
@ -76,6 +76,7 @@ void D8Console::Debug(const debug::ConsoleCallArguments& args,
|
||||
|
||||
void D8Console::Time(const debug::ConsoleCallArguments& args,
|
||||
const v8::debug::ConsoleContext&) {
|
||||
if (internal::FLAG_correctness_fuzzer_suppressions) return;
|
||||
if (args.Length() == 0) {
|
||||
default_timer_ = base::TimeTicks::HighResolutionNow();
|
||||
} else {
|
||||
@ -97,6 +98,7 @@ void D8Console::Time(const debug::ConsoleCallArguments& args,
|
||||
|
||||
void D8Console::TimeEnd(const debug::ConsoleCallArguments& args,
|
||||
const v8::debug::ConsoleContext&) {
|
||||
if (internal::FLAG_correctness_fuzzer_suppressions) return;
|
||||
base::TimeDelta delta;
|
||||
if (args.Length() == 0) {
|
||||
delta = base::TimeTicks::HighResolutionNow() - default_timer_;
|
||||
@ -119,6 +121,7 @@ void D8Console::TimeEnd(const debug::ConsoleCallArguments& args,
|
||||
|
||||
void D8Console::TimeStamp(const debug::ConsoleCallArguments& args,
|
||||
const v8::debug::ConsoleContext&) {
|
||||
if (internal::FLAG_correctness_fuzzer_suppressions) return;
|
||||
base::TimeDelta delta = base::TimeTicks::HighResolutionNow() - default_timer_;
|
||||
if (args.Length() == 0) {
|
||||
printf("console.timeStamp: default, %f\n", delta.InMillisecondsF());
|
||||
@ -135,6 +138,7 @@ void D8Console::TimeStamp(const debug::ConsoleCallArguments& args,
|
||||
|
||||
void D8Console::Trace(const debug::ConsoleCallArguments& args,
|
||||
const v8::debug::ConsoleContext&) {
|
||||
if (internal::FLAG_correctness_fuzzer_suppressions) return;
|
||||
i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate_);
|
||||
i_isolate->PrintStack(stderr, i::Isolate::kPrintStackConcise);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user