0

[gin] Add DumpWithoutCrashing support to V8Platform

Change-Id: Iefe47787441cd8c2bc35ab500dfbc99fd26af5ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6388116
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1436990}
This commit is contained in:
Leszek Swirski
2025-03-24 11:27:13 -07:00
committed by Chromium LUCI CQ
parent 37f4e23414
commit a4cb88c2cf
2 changed files with 6 additions and 0 deletions

@ -63,6 +63,7 @@ class GIN_EXPORT V8Platform : public v8::Platform {
double CurrentClockTimeMillisecondsHighResolution() override;
StackTracePrinter GetStackTracePrinter() override;
v8::TracingController* GetTracingController() override;
void DumpWithoutCrashing() override;
private:
friend struct base::LazyInstanceTraitsBase<V8Platform>;

@ -8,6 +8,7 @@
#include "base/bit_cast.h"
#include "base/check_op.h"
#include "base/debug/dump_without_crashing.h"
#include "base/debug/stack_trace.h"
#include "base/functional/bind.h"
#include "base/location.h"
@ -332,4 +333,8 @@ v8::Platform::StackTracePrinter V8Platform::GetStackTracePrinter() {
return PrintStackTrace;
}
void V8Platform::DumpWithoutCrashing() {
base::debug::DumpWithoutCrashing();
}
} // namespace gin