dc77baa5a8
This CL splits up `Reference.node` in to the most-often fast-case and the has-to-load case, making the procedure smaller which makes the VM inline it. This was "verified" by looking at the VMs optimized flow graph for `Reference.asClass`. This CL furthermore reduces the number of "calls" to `Reference.node` by almost half (a reduction of over 3 mio calls when compiling `compile.dart`) by "caching" the `.node` call in the `as*` methods. Change-Id: I7b5497397a11f05fdeaf05d6cc420072d98dc030 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/298101 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Jens Johansen <jensj@google.com>