Chromium Code Reviews
DescriptionInvoke native methods directly
In DDC, if the receiver is typed and the target method simply forwards to a JS call, invoke that call directly instead of via a symbol.
This is a step toward #28307.
Paul: can you look the the analyzer / summary code change?
dart:html uses "native". other libraries (e.g., typed_data) use "external" for more or less the same thing. The analyzer element model doesn't provide a way to test for "native" methods, but it does for "external". I map native to external here. Not sure if it's better to treat them as separate (I believe native predated external). Longer term, it may make sense to try to remove "native" in favor of "external".
R=brianwilkerson@google.com, jacobr@google.com, jmesserly@google.com, paulberry@google.com
Committed: https://github.com/dart-lang/sdk/commit/f331ecea201156bd9f1e8e2584ba9d818d927971
Patch Set 1 #
Total comments: 10
Patch Set 2 : Address comments / cleanup #
Total comments: 1
Messages
Total messages: 12 (4 generated)
|