Commit f6cd451c authored by Anton Bikineev's avatar Anton Bikineev Committed by V8 LUCI CQ

cppgc: young-gen: Fix DCHECK in VisitTracedReference

Bug: chromium:1029379
Change-Id: I3523fd8b2ee2c308f8253f3a638917825666663e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3477106
Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Auto-Submit: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: 's avatarOmer Katz <omerkatz@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79195}
parent 66d5cebb
...@@ -75,7 +75,7 @@ class V8ToCppGCReferencesVisitor final ...@@ -75,7 +75,7 @@ class V8ToCppGCReferencesVisitor final
private: private:
void VisitHandle(const v8::TracedReference<v8::Value>& value, void VisitHandle(const v8::TracedReference<v8::Value>& value,
uint16_t class_id) { uint16_t class_id) {
DCHECK(value.IsEmpty()); DCHECK(!value.IsEmpty());
const internal::JSObject js_object = const internal::JSObject js_object =
*reinterpret_cast<const internal::JSObject* const&>(value); *reinterpret_cast<const internal::JSObject* const&>(value);
......
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