Skip to content

Commit 8cbbd7a

Browse files
creliercommit-bot@chromium.org
authored andcommitted
[VM interpreter] Use write barrier in implicit setter.
Change-Id: I68351f5e009c1101bd7afc443b1b016197f62032 Reviewed-on: https://dart-review.googlesource.com/68427 Reviewed-by: Alexander Markov <[email protected]> Commit-Queue: Régis Crelier <[email protected]>
1 parent 91caf82 commit 8cbbd7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/vm/interpreter.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,9 @@ DART_NOINLINE bool Interpreter::ProcessInvocation(bool* invoked,
10381038
}
10391039
}
10401040
}
1041-
reinterpret_cast<RawObject**>(instance->ptr())[offset_in_words] = value;
1041+
instance->StorePointer(
1042+
reinterpret_cast<RawObject**>(instance->ptr()) + offset_in_words,
1043+
value);
10421044
*SP = call_base;
10431045
**SP = null_value;
10441046
*invoked = true;

0 commit comments

Comments
 (0)