New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure the isolate hidden class is constant #6892
Comments
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
@floitschG Could you update the status of this bug? |
Current version of dart2js seems to do the right thing. Deferred loading of libraries destroys the hidden map of global objects, but that's a different issue.
|
V8 optimizes function instantiations by moving constant functions into the hidden class.
for example function A() { this.foo = function() { return 499; }; }
Afaik this will move the function into the hidden class of the newly allocated object.
However if 'foo' changes this means that we have a map-transition. Normally this doesn't happen for dart2js generated code, but we should probably make sure that non-final statics don't have this problem:
===
bar() => 499;
var foo = bar;
// later in code:
... foo = (() => 42);
===
The text was updated successfully, but these errors were encountered: