DescriptionEmit switchable instance calls when we don't know the complete set of receiver classes for a call site.
A switchable call in the monomorphic state is now basically the same cost as a test and call, so this is as performant without ht code size cost of the slow path megemorphic call.
Flutter gallery before:
VMIsolate(CodeSize): 114052
Isolate(CodeSize): 2250283
ReadOnlyData(CodeSize): 1744760
Instructions(CodeSize): 5679488
Total(CodeSize): 9788583
After:
VMIsolate(CodeSize): 114085
Isolate(CodeSize): 2047224
ReadOnlyData(CodeSize): 1666808
Instructions(CodeSize): 5405424 -4.8%
Total(CodeSize): 9233541 -5.6%
R=fschneider@google.com
Committed: https://github.com/dart-lang/sdk/commit/271483911fb26294d215cec8e567c43558c78da2
Patch Set 1 #
Messages
Total messages: 8 (4 generated)
|