mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
[vm] Fix build on debug IA32.
set_pointer_offsets_length() sets a part of the state_bits bitfield, so we need to move this check before it's called. Fixes https://github.com/dart-lang/sdk/issues/52923 TEST=vm-linux-debug-ia32 builds Cq-Include-Trybots: luci.dart.try:vm-linux-debug-ia32-try Change-Id: I9f4ec78b03a6b7b2d45f13e9cc277411dcc90493 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/313480 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com>
This commit is contained in:
parent
148af29811
commit
db2e318b5d
1 changed files with 1 additions and 1 deletions
|
@ -18111,9 +18111,9 @@ CodePtr Code::New(intptr_t pointer_offsets_length) {
|
|||
auto raw = Object::Allocate<Code>(Heap::kOld, pointer_offsets_length);
|
||||
NoSafepointScope no_safepoint;
|
||||
result = raw;
|
||||
ASSERT_EQUAL(result.untag()->state_bits_, 0);
|
||||
result.set_pointer_offsets_length(pointer_offsets_length);
|
||||
}
|
||||
ASSERT_EQUAL(result.untag()->state_bits_, 0);
|
||||
DEBUG_ASSERT(result.compile_timestamp() == 0);
|
||||
#if defined(INCLUDE_IL_PRINTER)
|
||||
result.set_comments(Comments::New(0));
|
||||
|
|
Loading…
Reference in a new issue