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

Issue 2278273003: VM: New, faster default Map construction. (Closed)

Created:
4 years, 3 months ago by Florian Schneider
Modified:
4 years, 3 months ago
Reviewers:
siva, sra1, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: New, faster default Map construction. Replace the C++ implementation of the default Map constructor with a Dart version that uses the existing native setters to initialize members. This avoid the expensive runtime transition when doing "new Map()". BUG=#26046 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/caceddba8f5d8fc86c859ea41fcc5b27772dcfe4

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M runtime/lib/compact_hash.dart View 1 chunk +7 lines, -1 line 2 comments Download
M runtime/lib/linked_hash_map.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (5 generated)
Florian Schneider
4 years, 3 months ago (2016-08-26 00:30:57 UTC) #3
sra1
DBC https://codereview.chromium.org/2278273003/diff/1/runtime/lib/compact_hash.dart File runtime/lib/compact_hash.dart (right): https://codereview.chromium.org/2278273003/diff/1/runtime/lib/compact_hash.dart#newcode126 runtime/lib/compact_hash.dart:126: _InternalLinkedHashMap() { How about using initializers so that ...
4 years, 3 months ago (2016-08-26 00:36:36 UTC) #5
Florian Schneider
https://codereview.chromium.org/2278273003/diff/1/runtime/lib/compact_hash.dart File runtime/lib/compact_hash.dart (right): https://codereview.chromium.org/2278273003/diff/1/runtime/lib/compact_hash.dart#newcode126 runtime/lib/compact_hash.dart:126: _InternalLinkedHashMap() { On 2016/08/26 00:36:36, sra1 wrote: > How ...
4 years, 3 months ago (2016-08-26 00:40:33 UTC) #6
siva
lgtm
4 years, 3 months ago (2016-08-26 00:50:04 UTC) #7
Florian Schneider
Committed patchset #1 (id:1) manually as caceddba8f5d8fc86c859ea41fcc5b27772dcfe4 (presubmit successful).
4 years, 3 months ago (2016-08-26 00:51:53 UTC) #9
Ivan Posva
4 years, 3 months ago (2016-08-26 16:03:10 UTC) #11
Message was sent while issue was closed.
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698