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

Issue 1873143003: - Use a hash table to canonicalize instances/arrays to avoid having to iterate over a linear list a… (Closed)

Created:
4 years, 8 months ago by siva
Modified:
4 years, 8 months ago
Reviewers:
regis, rmacnak
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

- Use a hash table to canonicalize instances/arrays to avoid having to iterate over a linear list and search for canonical instances. - Some minor cleanups - Return an empty array right away in the parser instead of creating an empty array and canonicalizing it - The canonical bit was not being set for some of the singleton objects. R=regis@google.com Committed: https://github.com/dart-lang/sdk/commit/95a2b02a9e74714d7e9835e7af0fd85f694a4d2d

Patch Set 1 #

Patch Set 2 : pass-thread #

Patch Set 3 : adjust-indentation #

Patch Set 4 : adjust-signatures #

Total comments: 8

Patch Set 5 : address-code-review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -123 lines) Patch
M runtime/lib/integers.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 4 3 chunks +12 lines, -10 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 2 3 4 4 chunks +15 lines, -9 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 4 chunks +9 lines, -5 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 14 chunks +44 lines, -12 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 20 chunks +178 lines, -80 lines 1 comment Download
M runtime/vm/parser.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
siva
4 years, 8 months ago (2016-04-12 20:17:03 UTC) #2
regis
LGTM with comments/questions https://chromiumcodereview.appspot.com/1873143003/diff/60001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/1873143003/diff/60001/runtime/vm/object.cc#newcode4469 runtime/vm/object.cc:4469: }; No blank line(s)? https://chromiumcodereview.appspot.com/1873143003/diff/60001/runtime/vm/object.cc#newcode4480 runtime/vm/object.cc:4480: ...
4 years, 8 months ago (2016-04-12 21:12:32 UTC) #3
siva
https://chromiumcodereview.appspot.com/1873143003/diff/60001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/1873143003/diff/60001/runtime/vm/object.cc#newcode4469 runtime/vm/object.cc:4469: }; On 2016/04/12 21:12:32, regis wrote: > No blank ...
4 years, 8 months ago (2016-04-13 16:52:41 UTC) #4
siva
Committed patchset #5 (id:80001) manually as 95a2b02a9e74714d7e9835e7af0fd85f694a4d2d (presubmit successful).
4 years, 8 months ago (2016-04-13 17:26:21 UTC) #6
rmacnak
4 years, 8 months ago (2016-04-15 18:19:18 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1873143003/diff/80001/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/1873143003/diff/80001/runtime/vm/object.cc#ne...
runtime/vm/object.cc:14840: uword value = reinterpret_cast<uword>(
This won't work for precompiled or app snapshots, as the address can be
different in the new process. Or a compacting old space.

Powered by Google App Engine
This is Rietveld 408576698