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

Issue 11312122: Change List constructors. (Closed)

Created:
8 years, 1 month ago by floitsch
Modified:
8 years ago
CC:
reviews_dartlang.org, Anders Johnsen
Visibility:
Public.

Description

Change List constructors. BUG=http://dartbug.com/1331 BUG=http://dartbug.com/788 Committed: https://code.google.com/p/dart/source/detail?r=15929

Patch Set 1 #

Patch Set 2 : Change to fixedLength. #

Total comments: 6

Patch Set 3 : Address comments and fix. #

Total comments: 14

Patch Set 4 : Address comments. #

Patch Set 5 : rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Adapt code to List.fixedLength. #

Patch Set 8 : Reupload. Adapt code for List.fixedLength. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -175 lines) Patch
M runtime/bin/socket_patch.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/array_patch.dart View 1 2 3 4 1 chunk +36 lines, -5 lines 0 comments Download
M runtime/lib/math_patch.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/string_base.dart View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M runtime/vm/snapshot_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M samples/chat/chat_server_lib.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M samples/dartcombat/grids.dart View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M samples/sample_extension/sample_asynchronous_extension.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 2 3 4 1 chunk +38 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_helper.dart View 1 2 3 4 1 chunk +8 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/optimize.dart View 1 2 3 4 5 6 2 chunks +12 lines, -6 lines 0 comments Download
M sdk/lib/async/future_impl.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/core/list.dart View 1 2 3 4 3 chunks +34 lines, -10 lines 0 comments Download
M sdk/lib/core/map.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/crypto/hash_utils.dart View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/crypto/hmac.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/crypto/sha1.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/crypto/sha256.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/html/src/Serialization.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/src/native_DOMImplementation.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/directory_impl.dart View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 3 4 5 6 18 chunks +18 lines, -18 lines 0 comments Download
M sdk/lib/isolate/mangler.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/value_range_test.dart View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M tests/compiler/dart2js_extra/invalid_length_negative_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js_extra/list_factory_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/collection_contains_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/collection_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/for_in_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/indexed_list_access_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A tests/corelib/list_fixed_test.dart View 1 1 chunk +27 lines, -0 lines 0 comments Download
A tests/corelib/list_growable_test.dart View 1 chunk +60 lines, -0 lines 0 comments Download
M tests/corelib/list_index_of_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/list_iterators_test.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M tests/corelib/list_removeat_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/list_set_range_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/list_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/range_error_test.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M tests/corelib/set_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/sort_helper.dart View 1 2 3 4 5 6 4 chunks +5 lines, -5 lines 0 comments Download
M tests/corelib/string_base_vm_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/string_from_list_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/strings_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/html/native_gc_test.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M tests/isolate/message_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/json/json_test.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/bailout4_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/compound_assignment_operator_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/const_list_test.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/deopt_no_feedback_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/execute_finally7_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/fannkuch_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/gc_test.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/generic_instanceof.dart View 1 2 3 4 5 6 11 chunks +11 lines, -11 lines 0 comments Download
M tests/language/incr_op_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/index_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/inst_field_initializer1_negative_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/instanceof2_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/list_test.dart View 1 2 3 4 4 chunks +9 lines, -9 lines 0 comments Download
M tests/language/local_function_test.dart View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M tests/language/many_calls_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/optimization_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/optimized_lists_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/language/type_vm_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/async/slow_sink_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/file_invalid_arguments_test.dart View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M tests/standalone/io/file_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_read_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/regress-1925.dart View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/tls_socket_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M utils/archive/utils.dart View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
floitsch
@Nicolas: could you please verify that the change to the optimizer is correct?
8 years, 1 month ago (2012-11-07 14:15:13 UTC) #1
ngeoffray
https://codereview.chromium.org/11312122/diff/16/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart File sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (right): https://codereview.chromium.org/11312122/diff/16/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart#newcode256 sdk/lib/_internal/compiler/implementation/ssa/optimize.dart:256: DartType defaultClass = compiler.listClass.defaultClass; Please add a TODO that ...
8 years, 1 month ago (2012-11-07 14:27:52 UTC) #2
floitsch
PTAL. thanks. https://codereview.chromium.org/11312122/diff/16/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart File sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (right): https://codereview.chromium.org/11312122/diff/16/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart#newcode256 sdk/lib/_internal/compiler/implementation/ssa/optimize.dart:256: DartType defaultClass = compiler.listClass.defaultClass; On 2012/11/07 14:27:52, ...
8 years, 1 month ago (2012-11-07 16:42:48 UTC) #3
sra1
DBC https://codereview.chromium.org/11312122/diff/2015/sdk/lib/core/list.dart File sdk/lib/core/list.dart (right): https://codereview.chromium.org/11312122/diff/2015/sdk/lib/core/list.dart#newcode12 sdk/lib/core/list.dart:12: * Creates an extendable list of the given ...
8 years, 1 month ago (2012-11-07 21:36:34 UTC) #4
Lasse Reichstein Nielsen
I think you need to change some code in flow_graph_builder.cc: GetResultCidOfConstructor too. It's probably safe ...
8 years, 1 month ago (2012-11-12 11:31:05 UTC) #5
Lasse Reichstein Nielsen
And LGTM.
8 years, 1 month ago (2012-11-12 11:31:15 UTC) #6
floitsch
Adding Carl for the VM changes. https://codereview.chromium.org/11312122/diff/2015/runtime/lib/array_patch.dart File runtime/lib/array_patch.dart (right): https://codereview.chromium.org/11312122/diff/2015/runtime/lib/array_patch.dart#newcode14 runtime/lib/array_patch.dart:14: if (length != ...
8 years, 1 month ago (2012-11-12 13:21:50 UTC) #7
cshapiro
It looks like the only changed VM file is flow_graph_builder.cc. I am guessing that the ...
8 years, 1 month ago (2012-11-12 19:31:35 UTC) #8
floitsch
On 2012/11/12 19:31:35, cshapiro wrote: > It looks like the only changed VM file is ...
8 years, 1 month ago (2012-11-12 20:04:43 UTC) #9
floitsch
8 years ago (2012-12-10 20:21:36 UTC) #10
Finally landing.
Just had to run a script and replace all new List(..) with new
List.fixedLength(..) to get rid of the assertion failure (thanks Anders for
debugging that).

Powered by Google App Engine
This is Rietveld 408576698