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

Issue 1748913002: Factor out code that looks up a canonical type and adds it to the canonical_types_ array if necessa… (Closed)

Created:
4 years, 9 months ago by srdjan
Modified:
4 years, 8 months ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Factor out code that looks up a canonical type and adds it to the canonical_types_ array if necessary. BUG= R=regis@google.com Committed: https://github.com/dart-lang/sdk/commit/cd1112a382b2aabd73299e2fc593eefdd7b64cd3

Patch Set 1 #

Patch Set 2 : Fix bug #

Total comments: 5

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -72 lines) Patch
M runtime/vm/object.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 4 chunks +53 lines, -72 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
srdjan
4 years, 9 months ago (2016-02-29 23:07:33 UTC) #2
regis
LGTM with a couple of comments. https://codereview.chromium.org/1748913002/diff/20001/runtime/vm/object.cc File runtime/vm/object.cc (left): https://codereview.chromium.org/1748913002/diff/20001/runtime/vm/object.cc#oldcode15798 runtime/vm/object.cc:15798: // grown the ...
4 years, 9 months ago (2016-02-29 23:40:05 UTC) #3
srdjan
Committed patchset #3 (id:40001) manually as cd1112a382b2aabd73299e2fc593eefdd7b64cd3 (presubmit successful).
4 years, 9 months ago (2016-02-29 23:49:12 UTC) #5
srdjan
4 years, 8 months ago (2016-03-30 17:48:27 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1748913002/diff/20001/runtime/vm/object.cc
File runtime/vm/object.cc (left):

https://codereview.chromium.org/1748913002/diff/20001/runtime/vm/object.cc#ol...
runtime/vm/object.cc:15798: // grown the table, or may even have canonicalized
this type.
On 2016/02/29 23:40:04, regis wrote:
> I would still keep this comment around, because the reason that we do a lookup
> for the second time is not obvious.

Done.

https://codereview.chromium.org/1748913002/diff/20001/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/1748913002/diff/20001/runtime/vm/object.cc#ne...
runtime/vm/object.cc:4132: RawAbstractType* Class::LookupCanonicalType(const
AbstractType& lookup_type,
On 2016/02/29 23:40:04, regis wrote:
> Lookup and insert?

LookupOrAdd

Powered by Google App Engine
This is Rietveld 408576698