Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Issue 175403004: Modify growth policy for table of canonical types in each class. (Closed)

Created:
6 years, 10 months ago by regis
Modified:
6 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, rmacnak
Visibility:
Public.

Description

Modify growth policy for table of canonical types in each class. Modify growth policy for cache of type arguments instantiations. Add language test for generic closure. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=32940

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -6 lines) Patch
M runtime/vm/code_generator.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 3 chunks +9 lines, -6 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 1 chunk +3 lines, -0 lines 1 comment Download
A tests/language/generic_closure_test.dart View 1 chunk +62 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
regis
I will remove the obsolete code for closure allocation in a following cl. Ryan, I ...
6 years, 10 months ago (2014-02-21 18:57:59 UTC) #1
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/175403004/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/175403004/diff/1/runtime/vm/object.cc#newcode4266 runtime/vm/object.cc:4266: length = (length == 1) ? 3 ...
6 years, 10 months ago (2014-02-21 22:26:56 UTC) #2
regis
Thanks! https://codereview.chromium.org/175403004/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/175403004/diff/1/runtime/vm/object.cc#newcode4266 runtime/vm/object.cc:4266: length = (length == 1) ? 3 : ...
6 years, 10 months ago (2014-02-21 23:08:47 UTC) #3
regis
Committed patchset #2 manually as r32940 (presubmit successful).
6 years, 10 months ago (2014-02-21 23:09:08 UTC) #4
Florian Schneider
6 years, 10 months ago (2014-02-24 09:29:00 UTC) #5
Message was sent while issue was closed.
dbc

https://codereview.chromium.org/175403004/diff/70001/runtime/vm/stub_code_ia3...
File runtime/vm/stub_code_ia32.cc (right):

https://codereview.chromium.org/175403004/diff/70001/runtime/vm/stub_code_ia3...
runtime/vm/stub_code_ia32.cc:1226: // but only implicit instance closures.
Simplify.
I noticed that as well after I changed the way regular closure are allocated to
allow allocation sinking: Use a AllocateObject + 2 * StoreInstanceField to
initialize the closure object.

I'm thinking about doing the same for instance closures so they also work with
allocation sinking. As a side-effect, this stub can be removed completely. What
do you think?

Powered by Google App Engine
This is Rietveld 408576698