Commit 30a218b3 authored by Clemens Backes's avatar Clemens Backes Committed by V8 LUCI CQ

[web-snapshot] Use v8_flags for accessing flag values

Avoid the deprecated FLAG_* syntax, access flag values via the
{v8_flags} struct instead.

R=marja@chromium.org

Bug: v8:12887
Change-Id: Ie6e725305db09f675da255a0da73d85e2a36298b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3900374
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83267}
parent 6809ef20
...@@ -2269,7 +2269,7 @@ bool WebSnapshotDeserializer::Deserialize( ...@@ -2269,7 +2269,7 @@ bool WebSnapshotDeserializer::Deserialize(
auto buffer_size = deserializer_->end_ - deserializer_->position_; auto buffer_size = deserializer_->end_ - deserializer_->position_;
base::ElapsedTimer timer; base::ElapsedTimer timer;
if (FLAG_trace_web_snapshot) { if (v8_flags.trace_web_snapshot) {
timer.Start(); timer.Start();
} }
if (!DeserializeSnapshot(skip_exports)) { if (!DeserializeSnapshot(skip_exports)) {
...@@ -2279,7 +2279,7 @@ bool WebSnapshotDeserializer::Deserialize( ...@@ -2279,7 +2279,7 @@ bool WebSnapshotDeserializer::Deserialize(
return false; return false;
} }
if (FLAG_trace_web_snapshot) { if (v8_flags.trace_web_snapshot) {
double ms = timer.Elapsed().InMillisecondsF(); double ms = timer.Elapsed().InMillisecondsF();
PrintF("[Deserializing snapshot (%zu bytes) took %0.3f ms]\n", buffer_size, PrintF("[Deserializing snapshot (%zu bytes) took %0.3f ms]\n", buffer_size,
ms); ms);
...@@ -2359,7 +2359,7 @@ bool WebSnapshotDeserializer::DeserializeSnapshot(bool skip_exports) { ...@@ -2359,7 +2359,7 @@ bool WebSnapshotDeserializer::DeserializeSnapshot(bool skip_exports) {
#ifdef VERIFY_HEAP #ifdef VERIFY_HEAP
// Verify the objects we produced during deserializing snapshot. // Verify the objects we produced during deserializing snapshot.
if (FLAG_verify_heap && !has_error()) { if (v8_flags.verify_heap && !has_error()) {
VerifyObjects(); VerifyObjects();
} }
#endif #endif
...@@ -3766,7 +3766,7 @@ void WebSnapshotDeserializer::DeserializeExports(bool skip_exports) { ...@@ -3766,7 +3766,7 @@ void WebSnapshotDeserializer::DeserializeExports(bool skip_exports) {
// have been deserialized. // have been deserialized.
Object export_value = std::get<0>(ReadValue()); Object export_value = std::get<0>(ReadValue());
#ifdef VERIFY_HEAP #ifdef VERIFY_HEAP
if (FLAG_verify_heap) { if (v8_flags.verify_heap) {
export_value.ObjectVerify(isolate_); export_value.ObjectVerify(isolate_);
} }
#endif #endif
...@@ -3797,7 +3797,7 @@ void WebSnapshotDeserializer::DeserializeExports(bool skip_exports) { ...@@ -3797,7 +3797,7 @@ void WebSnapshotDeserializer::DeserializeExports(bool skip_exports) {
// been deserialized. // been deserialized.
Object export_value = std::get<0>(ReadValue()); Object export_value = std::get<0>(ReadValue());
#ifdef VERIFY_HEAP #ifdef VERIFY_HEAP
if (FLAG_verify_heap) { if (v8_flags.verify_heap) {
export_value.ObjectVerify(isolate_); export_value.ObjectVerify(isolate_);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment