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

Issue 11474056: Store canonical type argments in a hash table instead of linear list. (Closed)

Created:
8 years ago by Florian Schneider
Modified:
8 years ago
Reviewers:
regis, srdjan, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Store canonical type argments in a hash table instead of linear list. The code closely follows the symbol table implementation, but adjusted for use with TypeArguments objects. Committed: https://code.google.com/p/dart/source/detail?r=16117

Patch Set 1 #

Total comments: 26

Patch Set 2 : addressed comments #

Total comments: 19

Patch Set 3 : #

Total comments: 13

Patch Set 4 : addessed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -26 lines) Patch
M runtime/vm/object.h View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 7 chunks +148 lines, -26 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Florian Schneider
8 years ago (2012-12-10 13:56:19 UTC) #1
Ivan Posva
https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc#newcode576 runtime/vm/object.cc:576: // canonical_type_arguments_ are NULL terminated. Comment out of date. ...
8 years ago (2012-12-10 20:07:52 UTC) #2
srdjan
https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc#newcode576 runtime/vm/object.cc:576: // canonical_type_arguments_ are NULL terminated. Fix comment: Smi terminated. ...
8 years ago (2012-12-10 21:19:37 UTC) #3
regis
https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc#newcode10075 runtime/vm/object.cc:10075: const char* characters = ToCString(); On 2012/12/10 20:07:52, Ivan ...
8 years ago (2012-12-11 01:37:15 UTC) #4
Florian Schneider
Updated with comments addressed. https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/1/runtime/vm/object.cc#newcode576 runtime/vm/object.cc:576: // canonical_type_arguments_ are NULL terminated. ...
8 years ago (2012-12-11 12:23:04 UTC) #5
Ivan Posva
https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc#newcode2874 runtime/vm/object.cc:2874: intptr_t index = static_cast<uword>(hash) % new_table_size; Since you know ...
8 years ago (2012-12-11 14:54:51 UTC) #6
Florian Schneider
https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.h#newcode922 runtime/vm/object.h:922: virtual uword Hash() const; On 2012/12/11 14:54:52, Ivan Posva ...
8 years ago (2012-12-11 15:42:32 UTC) #7
regis
https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc#newcode2519 runtime/vm/object.cc:2519: result += AbstractType::Handle(TypeAt(i)).Hash(); You should move the Handle out ...
8 years ago (2012-12-11 19:04:04 UTC) #8
Florian Schneider
https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc#newcode2519 runtime/vm/object.cc:2519: result += AbstractType::Handle(TypeAt(i)).Hash(); On 2012/12/11 19:04:04, regis wrote: > ...
8 years ago (2012-12-12 14:58:40 UTC) #9
regis
https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc#newcode9246 runtime/vm/object.cc:9246: result ^= String::Handle(name()).Hash(); On 2012/12/12 14:58:40, Florian Schneider wrote: ...
8 years ago (2012-12-12 18:36:48 UTC) #10
Ivan Posva
Hopefully last round of comments. -Ivan https://codereview.chromium.org/11474056/diff/10001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/10001/runtime/vm/object.cc#newcode2738 runtime/vm/object.cc:2738: return NULL; Please ...
8 years ago (2012-12-12 21:25:09 UTC) #11
Florian Schneider
https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/11474056/diff/5001/runtime/vm/object.cc#newcode9246 runtime/vm/object.cc:9246: result ^= String::Handle(name()).Hash(); On 2012/12/12 18:36:48, regis wrote: > ...
8 years ago (2012-12-13 11:59:45 UTC) #12
Ivan Posva
LGTM -ip
8 years ago (2012-12-13 14:59:11 UTC) #13
Florian Schneider
8 years ago (2012-12-13 15:26:29 UTC) #14
Message was sent while issue was closed.
On 2012/12/13 14:59:11, Ivan Posva wrote:
> LGTM -ip

Thanks! Landing.

Powered by Google App Engine
This is Rietveld 408576698