@@ -9153,7 +9153,7 @@ void Function::SetDeoptReasonForAll(intptr_t deopt_id,
9153
9153
}
9154
9154
}
9155
9155
9156
- bool Function::CheckSourceFingerprint(const char* prefix, int32_t fp) const {
9156
+ bool Function::CheckSourceFingerprint(int32_t fp) const {
9157
9157
if (Isolate::Current()->obfuscate() || FLAG_precompiled_mode ||
9158
9158
(Dart::vm_snapshot_kind() != Snapshot::kNone)) {
9159
9159
return true; // The kernel structure has been altered, skip checking.
@@ -9165,12 +9165,6 @@ bool Function::CheckSourceFingerprint(const char* prefix, int32_t fp) const {
9165
9165
return true;
9166
9166
}
9167
9167
9168
- #if 1
9169
- // The non-nullable experiment changes the fingerprints, we only track
9170
- // one fingerprint set, until we unfork and settle on a single snapshot
9171
- // version this check has to be bypassed.
9172
- // TODO(36376) - Restore checking fingerprints of recognized methods.
9173
- #else
9174
9168
if (SourceFingerprint() != fp) {
9175
9169
const bool recalculatingFingerprints = false;
9176
9170
if (recalculatingFingerprints) {
@@ -9189,7 +9183,6 @@ bool Function::CheckSourceFingerprint(const char* prefix, int32_t fp) const {
9189
9183
return false;
9190
9184
}
9191
9185
}
9192
- #endif
9193
9186
return true;
9194
9187
}
9195
9188
@@ -13520,7 +13513,7 @@ void Library::CheckFunctionFingerprints() {
13520
13513
has_errors = true; \
13521
13514
OS::PrintErr("Function not found %s.%s\n", #class_name, #function_name); \
13522
13515
} else { \
13523
- CHECK_FINGERPRINT3 (func, class_name, function_name, dest, fp); \
13516
+ ASSERT (func.CheckSourceFingerprint(fp)); \
13524
13517
}
13525
13518
13526
13519
#define CHECK_FINGERPRINTS2(class_name, function_name, dest, fp) \
@@ -13563,7 +13556,7 @@ void Library::CheckFunctionFingerprints() {
13563
13556
has_errors = true; \
13564
13557
OS::PrintErr("Function not found %s.%s\n", #class_name, #factory_name); \
13565
13558
} else { \
13566
- CHECK_FINGERPRINT2 (func, symbol, cid, fp); \
13559
+ ASSERT (func.CheckSourceFingerprint( fp)); \
13567
13560
}
13568
13561
13569
13562
all_libs.Add(&Library::ZoneHandle(Library::CoreLibrary()));
0 commit comments