|
|
|
|
|
by mezoni
4211 days ago
|
|
Dart VM uses a black list for methods that cannot be optimized by VM intelligence.
I cannot say anything about V8.
But with optimization in Dart VM not all so good.
Dynamic typing in Javascript is a normal behavior (VM optimized for that).
Dynamic typing in Dart produce a lot of pitfalls (in the sense of the intelligence of optimization). |
|
Dart and JavaScript are both completely dynamically typed. The Dart VM and V8 both use inline caches to remember what types are flowing to what call sites. Both optimize monomorphic call sites the best and megamorphic call sites the worst. I know of no "blacklist" in the Dart VM.