Chromium Code Reviews
Description[kernel] Only add metadata if there's at least one annotation.
Currently we run execute "library.AddFieldMetadata",
"library.AddFunctionMetadata" etc for all fields and methods,
even if they do not contain any annotations
(which is what will eventually be extracted from it if ever used).
This CL changes that to only execute the "AddXMetadata" if there
are any annotations.
This saves the VM from creating strings and fields that aren't really
used anyway, while - as before - returning an empty array when
answering a request for metadata for something without any.
BUG=
R=kmillikin@google.com
Committed: https://github.com/dart-lang/sdk/commit/b0de84343a61b52babb70059b0e2c34984379880
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 6 (3 generated)
|
||||||||||||||||||||||||||||