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

Issue 14572004: Put HashMap class in dart namespace. (Closed)

Created:
7 years, 7 months ago by tfarina
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org, siva, Ivan Posva
Visibility:
Public.

Description

Put HashMap class in dart namespace. R=sgjesse@google.com Signed-off-by: Thiago Farina <tfarina@chromium.org>; Committed: https://code.google.com/p/dart/source/detail?r=22175

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M runtime/bin/hashmap_test.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/platform/hashmap.h View 2 chunks +4 lines, -0 lines 2 comments Download
M runtime/platform/hashmap.cc View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tfarina
7 years, 7 months ago (2013-04-30 01:57:46 UTC) #1
Søren Gjesse
lgtm Looking at the code hashmap is currently only used in runtime/bin, so we might ...
7 years, 7 months ago (2013-04-30 06:22:50 UTC) #2
tfarina
Could you land this to me? git cl patch 14572004, git cl dcommit. Should I ...
7 years, 7 months ago (2013-04-30 10:40:14 UTC) #3
tfarina
On 2013/04/30 06:22:50, Søren Gjesse wrote: > Looking at the code hashmap is currently only ...
7 years, 7 months ago (2013-04-30 10:41:30 UTC) #4
Søren Gjesse
Committed patchset #1 manually as r22175 (presubmit successful).
7 years, 7 months ago (2013-04-30 11:48:56 UTC) #5
Søren Gjesse
Thanks for the patch. It is now landed. Regarding moving hashmap.* let's postpone that for ...
7 years, 7 months ago (2013-04-30 11:50:37 UTC) #6
Ivan Posva
!LGTM -Ivan https://codereview.chromium.org/14572004/diff/1/runtime/platform/hashmap.h File runtime/platform/hashmap.h (right): https://codereview.chromium.org/14572004/diff/1/runtime/platform/hashmap.h#newcode10 runtime/platform/hashmap.h:10: namespace dart { We should NOT pollute ...
7 years, 7 months ago (2013-04-30 15:07:53 UTC) #7
tfarina
https://codereview.chromium.org/14572004/diff/1/runtime/platform/hashmap.h File runtime/platform/hashmap.h (right): https://codereview.chromium.org/14572004/diff/1/runtime/platform/hashmap.h#newcode10 runtime/platform/hashmap.h:10: namespace dart { On 2013/04/30 15:07:53, Ivan Posva wrote: ...
7 years, 7 months ago (2013-04-30 16:31:03 UTC) #8
Søren Gjesse
7 years, 7 months ago (2013-05-01 06:28:37 UTC) #9
Message was sent while issue was closed.
The hashmap.* files was originally moved from runtime/bin to runtime/platform in
https://code.google.com/p/dart/source/detail?r=10261.

The comment says:

Move hashmap.h and hashmap.cc from the 'bin' directory to 'platform' directory
so that it can be used from VM code too.

Based on that I don't see any issues with placing it in the dart namespace like
the rest in runtime/platform.

On 2013/04/30 16:31:03, tfarina wrote:
> https://codereview.chromium.org/14572004/diff/1/runtime/platform/hashmap.h
> File runtime/platform/hashmap.h (right):
> 
>
https://codereview.chromium.org/14572004/diff/1/runtime/platform/hashmap.h#ne...
> runtime/platform/hashmap.h:10: namespace dart {
> On 2013/04/30 15:07:53, Ivan Posva wrote:
> > We should NOT pollute the dart namespace from outside the VM code.
> What is your argument about leaving it in the global namespace? Did you run
the
> command line "git grep --files-without-match  "namespace dart"
> runtime/platform/"?
> Why would runtime/vm be special and only it use dart namespace? runtime/bin
uses
> dart::bin namespace already.
> 
> v8 on the other hand has all its implementation in src/ and the types are
inside
> v8::internal namespace, while the public api is in include/v8.h and in the v8
> namespace.
> 
> Søren suggested that we would put this also in dart::platform namespace. Which
> would be consistent with dart::bin namespace.
> 
> But that is mirror, and I wouldn't worry too much about this anyway.

Powered by Google App Engine
This is Rietveld 408576698