[vm] Fix uninitialized Code::instructions_ during deferred loading.
TEST=ci Bug: https://github.com/dart-lang/sdk/issues/59905 Bug: https://github.com/dart-lang/sdk/issues/60035 Change-Id: I733ee43f4e5e48ffa8eeb357de543233a1887b4a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407601 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Brian Quinlan <bquinlan@google.com>
This commit is contained in:
committed by
Commit Queue
parent
2e13d4d954
commit
fb0cac7375
@@ -9412,6 +9412,8 @@ void Deserializer::ReadInstructions(CodePtr code, bool deferred) {
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
if (deferred) {
|
||||
uword entry_point = StubCode::NotLoaded().EntryPoint();
|
||||
// There are no serialized RawInstructions objects in this mode.
|
||||
code->untag()->instructions_ = Instructions::null();
|
||||
code->untag()->entry_point_ = entry_point;
|
||||
code->untag()->unchecked_entry_point_ = entry_point;
|
||||
code->untag()->monomorphic_entry_point_ = entry_point;
|
||||
|
||||
Reference in New Issue
Block a user