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

Issue 380333002: Add VM class for Map/LinkedHashMap. (Closed)

Created:
6 years, 5 months ago by koda
Modified:
6 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add VM class for Map/LinkedHashMap. Introduces a new internal class for the most common case, the default Map. Passes all functionality tests. Slow: Dart side simply calls into runtime for now. Hidden behind "--use_internal_hash_map". Add copies of hash map tests to exercise this implementation. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=38588

Patch Set 1 #

Patch Set 2 : #

Total comments: 28

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+574 lines, -5 lines) Patch
M runtime/lib/collection_patch.dart View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download
M runtime/lib/collection_sources.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A runtime/lib/linked_hash_map.cc View 1 2 3 4 1 chunk +96 lines, -0 lines 0 comments Download
A runtime/lib/linked_hash_map.dart View 1 2 1 chunk +118 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/bootstrap_natives.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/hash_table.h View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 chunk +47 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 3 chunks +188 lines, -0 lines 0 comments Download
M runtime/vm/object_store.h View 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 3 chunks +19 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 2 chunks +52 lines, -2 lines 0 comments Download
M runtime/vm/snapshot.h View 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 chunk +1 line, -0 lines 0 comments Download
A + tests/corelib/hash_map2_internal_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
A + tests/corelib/hash_map_internal_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/standalone/issue14236_test.dart View Binary file 0 comments Download

Messages

Total messages: 9 (0 generated)
koda
6 years, 5 months ago (2014-07-10 20:11:36 UTC) #1
siva
Mostly minor nits... https://chromiumcodereview.appspot.com/380333002/diff/20001/runtime/lib/linked_hash_map.cc File runtime/lib/linked_hash_map.cc (right): https://chromiumcodereview.appspot.com/380333002/diff/20001/runtime/lib/linked_hash_map.cc#newcode47 runtime/lib/linked_hash_map.cc:47: return map.Contains(key) ? Bool::True().raw() : Bool::False().raw(); ...
6 years, 5 months ago (2014-07-23 22:43:07 UTC) #2
koda
https://chromiumcodereview.appspot.com/380333002/diff/20001/runtime/lib/linked_hash_map.cc File runtime/lib/linked_hash_map.cc (right): https://chromiumcodereview.appspot.com/380333002/diff/20001/runtime/lib/linked_hash_map.cc#newcode47 runtime/lib/linked_hash_map.cc:47: return map.Contains(key) ? Bool::True().raw() : Bool::False().raw(); On 2014/07/23 22:43:06, ...
6 years, 5 months ago (2014-07-24 19:31:45 UTC) #3
siva
Did you upload after the changes? I do not see any delta.
6 years, 5 months ago (2014-07-24 20:24:25 UTC) #4
siva
On 2014/07/24 20:24:25, siva wrote: > Did you upload after the changes? I do not ...
6 years, 5 months ago (2014-07-24 20:25:54 UTC) #5
koda
On 2014/07/24 20:24:25, siva wrote: > Did you upload after the changes? I do not ...
6 years, 5 months ago (2014-07-24 20:28:13 UTC) #6
siva
lgtm https://chromiumcodereview.appspot.com/380333002/diff/60001/runtime/lib/linked_hash_map.cc File runtime/lib/linked_hash_map.cc (right): https://chromiumcodereview.appspot.com/380333002/diff/60001/runtime/lib/linked_hash_map.cc#newcode93 runtime/lib/linked_hash_map.cc:93: return FLAG_use_internal_hash_map ? Bool::True().raw() : Bool::False().raw(); return Bool::Get(FLAG_use_internal_hash_map).raw();
6 years, 5 months ago (2014-07-24 20:47:11 UTC) #7
koda
https://chromiumcodereview.appspot.com/380333002/diff/60001/runtime/lib/linked_hash_map.cc File runtime/lib/linked_hash_map.cc (right): https://chromiumcodereview.appspot.com/380333002/diff/60001/runtime/lib/linked_hash_map.cc#newcode93 runtime/lib/linked_hash_map.cc:93: return FLAG_use_internal_hash_map ? Bool::True().raw() : Bool::False().raw(); On 2014/07/24 20:47:11, ...
6 years, 5 months ago (2014-07-25 20:03:17 UTC) #8
koda
6 years, 5 months ago (2014-07-25 20:04:22 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 manually as r38588 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698