@@ -2836,7 +2836,11 @@ DEFINE_RUNTIME_ENTRY(FixCallersTarget, 0) {
2836
2836
current_target_code.EntryPoint (),
2837
2837
current_target_code.is_optimized () ? " optimized" : " unoptimized" );
2838
2838
}
2839
- ASSERT (!current_target_code.IsDisabled ());
2839
+ // With isolate groups enabled, it is possible that the target code
2840
+ // has been deactivated just now(as a result of re-optimizatin for example),
2841
+ // which will result in another run through FixCallersTarget.
2842
+ ASSERT (!current_target_code.IsDisabled () ||
2843
+ IsolateGroup::AreIsolateGroupsEnabled ());
2840
2844
arguments.SetReturn (current_target_code);
2841
2845
#else
2842
2846
UNREACHABLE ();
@@ -2882,7 +2886,11 @@ DEFINE_RUNTIME_ENTRY(FixCallersTargetMonomorphic, 0) {
2882
2886
current_target_code.EntryPoint (),
2883
2887
current_target_code.is_optimized () ? " optimized" : " unoptimized" );
2884
2888
}
2885
- ASSERT (!current_target_code.IsDisabled ());
2889
+ // With isolate groups enabled, it is possible that the target code
2890
+ // has been deactivated just now(as a result of re-optimizatin for example),
2891
+ // which will result in another run through FixCallersTarget.
2892
+ ASSERT (!current_target_code.IsDisabled () ||
2893
+ IsolateGroup::AreIsolateGroupsEnabled ());
2886
2894
arguments.SetReturn (current_target_code);
2887
2895
#else
2888
2896
UNREACHABLE ();
0 commit comments