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

Issue 1934263003: - Add a new constructor to the hash table classes that allow handles to be passed in instead of cre… (Closed)

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

- Add a new constructor to the hash table classes that allow handles to be passed in instead of creating new ones for every lookup/insertion - Use reusable handles in Symbols::New and Symbols::Lookup with the new constructor defined above R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/65c4aaee1738e5ba842ed90e4aa3a7966be2366e

Patch Set 1 #

Patch Set 2 : self-review-changes #

Total comments: 2

Patch Set 3 : address-code-review-comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -56 lines) Patch
M runtime/vm/hash_table.h View 1 2 15 chunks +64 lines, -46 lines 0 comments Download
M runtime/vm/hash_table_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/reusable_handles.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/symbols.cc View 3 chunks +24 lines, -9 lines 0 comments Download
M runtime/vm/thread.h View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
siva
4 years, 7 months ago (2016-05-02 23:04:44 UTC) #2
hausner
LGTM https://chromiumcodereview.appspot.com/1934263003/diff/20001/runtime/vm/hash_table.h File runtime/vm/hash_table.h (right): https://chromiumcodereview.appspot.com/1934263003/diff/20001/runtime/vm/hash_table.h#newcode136 runtime/vm/hash_table.h:136: data_->SetAt(kOccupiedEntriesIndex, SmiHandle()); I'd find this more readable if ...
4 years, 7 months ago (2016-05-02 23:24:54 UTC) #3
siva
https://chromiumcodereview.appspot.com/1934263003/diff/20001/runtime/vm/hash_table.h File runtime/vm/hash_table.h (right): https://chromiumcodereview.appspot.com/1934263003/diff/20001/runtime/vm/hash_table.h#newcode136 runtime/vm/hash_table.h:136: data_->SetAt(kOccupiedEntriesIndex, SmiHandle()); On 2016/05/02 23:24:54, hausner wrote: > I'd ...
4 years, 7 months ago (2016-05-02 23:53:55 UTC) #4
siva
4 years, 7 months ago (2016-05-03 00:07:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
65c4aaee1738e5ba842ed90e4aa3a7966be2366e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698