mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:19:49 +00:00
[vm] Avoid sentinel entry at the end of invocation_dispatcher_cache.
No code actually relies on it being there. This saves ~1kb of snapshot size on a large Flutter application. Related to https://github.com/dart-lang/sdk/issues/48910 TEST=ci Change-Id: I03cf8811f39fc8882f7c650a79f01d350b520e5d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/242863 Commit-Queue: Slava Egorov <vegorov@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com>
This commit is contained in:
parent
bd950da0a8
commit
dff2bce0b8
|
@ -2266,10 +2266,6 @@ void Precompiler::DropFunctions() {
|
|||
}
|
||||
}
|
||||
if (retained_functions.Length() > 0) {
|
||||
// Last entry must be null.
|
||||
retained_functions.Add(Object::null_object());
|
||||
retained_functions.Add(Object::null_object());
|
||||
retained_functions.Add(Object::null_object());
|
||||
functions = Array::MakeFixedLength(retained_functions);
|
||||
} else {
|
||||
functions = Object::empty_array().ptr();
|
||||
|
|
Loading…
Reference in a new issue