[ VM / Hot Reload ] Fixed issue where CallSiteResetter was attempting to rebind ICData for field initializers

Fixes multiple hot reload tests.

Change-Id: I7b6a58bef78eef59db350c52dd5435c57482a21e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134864
Reviewed-by: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
Ben Konyi 2020-02-08 00:48:49 +00:00
parent 4310f50edc
commit 342fd67c1d

View file

@ -469,11 +469,11 @@ Fragment FlowGraphBuilder::LoadLateField(const Field& field,
Fragment initialize(is_uninitialized);
if (is_static) {
initialize += StaticCall(position, init_function,
/* argument_count = */ 0, ICData::kStatic);
/* argument_count = */ 0, ICData::kNoRebind);
} else {
initialize += LoadLocal(instance);
initialize += StaticCall(position, init_function,
/* argument_count = */ 1, ICData::kStatic);
/* argument_count = */ 1, ICData::kNoRebind);
}
initialize += StoreLocal(position, temp);
initialize += Drop();