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

Issue 1309613002: Avoid numerous type allocations by caching the canonical type of a class, which (Closed)

Created:
5 years, 4 months ago by regis
Modified:
5 years, 4 months ago
Reviewers:
srdjan, siva, Ivan Posva
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

Avoid numerous type allocations by caching the canonical type of a class, which is used as the receiver type for non-static methods of this class, be it a generic, non-generic, or signature class. R=srdjan@google.com Committed: https://github.com/dart-lang/sdk/commit/26031ab6b00022d96669db1f9c4370251ca1e389

Patch Set 1 #

Total comments: 8

Patch Set 2 : address comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -34 lines) Patch
M runtime/vm/dart_api_impl_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 chunks +10 lines, -7 lines 0 comments Download
M runtime/vm/object.cc View 1 9 chunks +41 lines, -18 lines 2 comments Download
M runtime/vm/parser.cc View 1 chunk +10 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
regis
5 years, 4 months ago (2015-08-21 01:52:35 UTC) #2
srdjan
https://codereview.chromium.org/1309613002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1309613002/diff/1/runtime/vm/object.cc#newcode3617 runtime/vm/object.cc:3617: if (!types.IsNull() && types.Length() > 0) { Add parenthesis. ...
5 years, 4 months ago (2015-08-21 05:02:21 UTC) #3
regis
Thanks! https://codereview.chromium.org/1309613002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1309613002/diff/1/runtime/vm/object.cc#newcode3617 runtime/vm/object.cc:3617: if (!types.IsNull() && types.Length() > 0) { On ...
5 years, 4 months ago (2015-08-21 15:38:22 UTC) #4
srdjan
lgtm https://codereview.chromium.org/1309613002/diff/20001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1309613002/diff/20001/runtime/vm/object.cc#newcode1869 runtime/vm/object.cc:1869: RawType* Class::SignatureType() const { Maybe we should grab ...
5 years, 4 months ago (2015-08-21 18:16:04 UTC) #5
regis
Thanks! https://codereview.chromium.org/1309613002/diff/20001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1309613002/diff/20001/runtime/vm/object.cc#newcode1869 runtime/vm/object.cc:1869: RawType* Class::SignatureType() const { On 2015/08/21 18:16:04, srdjan ...
5 years, 4 months ago (2015-08-21 20:33:28 UTC) #6
regis
5 years, 4 months ago (2015-08-21 20:37:17 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
26031ab6b00022d96669db1f9c4370251ca1e389 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698