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

Issue 10942025: Convert String and List to abstract classes. (Closed)

Created:
8 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
8 years, 1 month ago
Reviewers:
srdjan, hausner
CC:
reviews_dartlang.org, Ivan Posva
Visibility:
Public.

Description

Convert String and List to abstract classes. Removes StringImplementation and ListImplementation which were just containers for static/factory methods. Split into two parts, with String landed now and List being worked on. This CL is closed.

Patch Set 1 #

Patch Set 2 : Updated to tip-of-tree. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -227 lines) Patch
M lib/compiler/implementation/lib/core_patch.dart View 1 1 chunk +56 lines, -0 lines 0 comments Download
M lib/compiler/implementation/lib/coreimpl.dart View 1 1 chunk +0 lines, -2 lines 0 comments Download
M lib/compiler/implementation/lib/coreimpl_patch.dart View 1 1 chunk +0 lines, -65 lines 0 comments Download
M lib/compiler/implementation/lib/string_helper.dart View 1 3 chunks +3 lines, -3 lines 0 comments Download
M lib/core/collection.dart View 1 chunk +2 lines, -2 lines 3 comments Download
M lib/core/list.dart View 1 2 chunks +9 lines, -4 lines 0 comments Download
M lib/core/string.dart View 1 1 chunk +2 lines, -4 lines 0 comments Download
M lib/core/strings.dart View 1 1 chunk +2 lines, -6 lines 0 comments Download
M lib/coreimpl/collections.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lib/coreimpl/coreimpl.dart View 1 1 chunk +0 lines, -2 lines 0 comments Download
M lib/coreimpl/corelib_impl_sources.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
D lib/coreimpl/list.dart View 1 1 chunk +0 lines, -31 lines 0 comments Download
D lib/coreimpl/string.dart View 1 chunk +0 lines, -26 lines 0 comments Download
M lib/coreimpl/string_buffer.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/array_patch.dart View 2 chunks +1 line, -9 lines 2 comments Download
M runtime/lib/lib_impl_sources.gypi View 1 2 chunks +0 lines, -2 lines 0 comments Download
M runtime/lib/lib_sources.gypi View 1 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/lib/string_patch.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_message.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/object.cc View 1 5 chunks +16 lines, -12 lines 0 comments Download
M runtime/vm/object_store.h View 1 4 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 8 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/snapshot_ids.h View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/symbols.h View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-dart2dart.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 1 chunk +0 lines, -2 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein Nielsen
There are some references to "ListImplementation" left in the VM code. One in tests/vm/dart/isolate_mirror_local_test.dart. I'll ...
8 years, 3 months ago (2012-09-19 12:33:21 UTC) #1
Lasse Reichstein Nielsen
Ack, there is more wrong with this. It also fails both of: vm/cc/DartGeneratedListMessages vm/cc/DartGeneratedListMessagesWithBackref due ...
8 years, 3 months ago (2012-09-19 14:21:02 UTC) #2
srdjan
Lasse, can you please split List and String conversions into two different CLs https://codereview.chromium.org/10942025/diff/4001/lib/core/collection.dart File ...
8 years, 2 months ago (2012-09-28 17:52:22 UTC) #3
Lasse Reichstein Nielsen
Good idea. I'll split this up when I get back from GOTO; https://codereview.chromium.org/10942025/diff/4001/lib/core/collection.dart File lib/core/collection.dart ...
8 years, 2 months ago (2012-09-30 20:46:43 UTC) #4
srdjan
https://codereview.chromium.org/10942025/diff/4001/lib/core/collection.dart File lib/core/collection.dart (right): https://codereview.chromium.org/10942025/diff/4001/lib/core/collection.dart#newcode35 lib/core/collection.dart:35: Dynamic reduce(var initialValue, On 2012/09/30 20:46:43, Lasse Reichstein Nielsen ...
8 years, 2 months ago (2012-10-02 17:21:14 UTC) #5
Mads Ager (google)
8 years, 2 months ago (2012-10-02 17:33:07 UTC) #6
On 2012/10/02 17:21:14, srdjan wrote:
> https://codereview.chromium.org/10942025/diff/4001/lib/core/collection.dart
> File lib/core/collection.dart (right):
> 
>
https://codereview.chromium.org/10942025/diff/4001/lib/core/collection.dart#n...
> lib/core/collection.dart:35: Dynamic reduce(var initialValue,
> On 2012/09/30 20:46:43, Lasse Reichstein Nielsen wrote:
> > "var" is not a valid return type, and I don't like not writing a return type
> > (looks like an omission).
> 
> This is not the the style that has been used by most people in Dart team
> (checked with Ivan and Bob). It is important that we have a unified style in
the
> libraries.I.e., rather than "Dynamic foo(var a, var b)", we should write
"foo(a,
> b)"

Dynamic is unnecessary as a return type and I agree that we should leave out the
return type instead. Why add an optional type when it means the same as leaving
it out? I think we should limit the use of Dynamic as much as possible.

Powered by Google App Engine
This is Rietveld 408576698