File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
runtime/vm/compiler/backend Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -5552,7 +5552,9 @@ class LoadStaticFieldInstr : public TemplateDefinition<0, Throws> {
55525552 return field ().is_final () && !FLAG_fields_may_be_reset;
55535553 }
55545554
5555- virtual bool ComputeCanDeoptimize () const { return calls_initializer (); }
5555+ virtual bool ComputeCanDeoptimize () const {
5556+ return calls_initializer () && !CompilerState::Current ().is_aot ();
5557+ }
55565558 virtual bool HasUnknownSideEffects () const { return calls_initializer (); }
55575559 virtual bool CanTriggerGC () const { return calls_initializer (); }
55585560 virtual bool MayThrow () const { return calls_initializer (); }
@@ -6592,7 +6594,9 @@ class LoadFieldInstr : public TemplateDefinition<1, Throws> {
65926594 DECLARE_INSTRUCTION (LoadField)
65936595 virtual CompileType ComputeType() const ;
65946596
6595- virtual bool ComputeCanDeoptimize () const { return calls_initializer (); }
6597+ virtual bool ComputeCanDeoptimize () const {
6598+ return calls_initializer () && !CompilerState::Current ().is_aot ();
6599+ }
65966600
65976601 virtual bool HasUnknownSideEffects () const {
65986602 return calls_initializer () && !throw_exception_on_initialization ();
Original file line number Diff line number Diff line change @@ -27,5 +27,5 @@ CHANNEL dev
2727MAJOR 2
2828MINOR 13
2929PATCH 0
30- PRERELEASE 83
30+ PRERELEASE 84
3131PRERELEASE_PATCH 0
You can’t perform that action at this time.
0 commit comments