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

Issue 10990083: Reapply change to hide VM-only List implementation classes. (Closed)

Created:
8 years, 2 months ago by Mads Ager (google)
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Reapply change to hide VM-only List implementation classes. The performance issue was that I had not updated the method recognizer. BUG= Committed: https://code.google.com/p/dart/source/detail?r=13003

Patch Set 1 #

Patch Set 2 : Fix method recognizer #

Total comments: 9

Patch Set 3 : Fix dart:io perf regression. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -346 lines) Patch
M lib/compiler/implementation/lib/io.dart View 2 chunks +35 lines, -1 line 0 comments Download
M lib/html/dartium/html_dartium.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/html/src/native_DOMImplementation.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/builtin_impl_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 chunk +1 line, -0 lines 0 comments Download
A runtime/bin/common.cc View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
M runtime/bin/common.dart View 1 2 2 chunks +37 lines, -0 lines 0 comments Download
M runtime/bin/file_impl.dart View 3 chunks +2 lines, -30 lines 0 comments Download
M runtime/bin/isolate_data.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M runtime/bin/process_impl.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/bin/socket_impl.dart View 1 chunk +2 lines, -22 lines 0 comments Download
M runtime/lib/array.dart View 12 chunks +19 lines, -17 lines 0 comments Download
M runtime/lib/array_patch.dart View 1 chunk +6 lines, -5 lines 0 comments Download
M runtime/lib/byte_array.dart View 4 chunks +4 lines, -8 lines 0 comments Download
M runtime/lib/growable_array.dart View 8 chunks +18 lines, -18 lines 0 comments Download
M runtime/lib/immutable_map.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/lib/literal_factory.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/lib/string_base.dart View 5 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/intrinsifier.h View 1 chunk +19 lines, -17 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M tests/corelib/corelib.status View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D tests/corelib/growable_object_array2_vm_test.dart View 1 chunk +0 lines, -74 lines 0 comments Download
D tests/corelib/growable_object_array_vm_test.dart View 1 chunk +0 lines, -113 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mads Ager (google)
There we go, updated method recognizer as well as intrinsifier. The performance problem was that ...
8 years, 2 months ago (2012-09-27 15:17:15 UTC) #1
Ivan Posva
https://codereview.chromium.org/10990083/diff/1001/runtime/bin/common.dart File runtime/bin/common.dart (right): https://codereview.chromium.org/10990083/diff/1001/runtime/bin/common.dart#newcode54 runtime/bin/common.dart:54: bool _isBuiltinList(List buffer) native "Common_IsBuiltinList"; You can do this ...
8 years, 2 months ago (2012-09-28 04:56:10 UTC) #2
Ivan Posva
https://codereview.chromium.org/10990083/diff/1001/runtime/bin/common.dart File runtime/bin/common.dart (right): https://codereview.chromium.org/10990083/diff/1001/runtime/bin/common.dart#newcode54 runtime/bin/common.dart:54: bool _isBuiltinList(List buffer) native "Common_IsBuiltinList"; On 2012/09/28 04:56:10, Ivan ...
8 years, 2 months ago (2012-09-28 04:57:46 UTC) #3
Mads Ager (google)
Soren, you reviewed most of this before. Could you have a look at patch set ...
8 years, 2 months ago (2012-09-28 10:14:20 UTC) #4
Søren Gjesse
LGTM for patch set #2 and #3
8 years, 2 months ago (2012-09-28 10:39:43 UTC) #5
Ivan Posva
https://codereview.chromium.org/10990083/diff/1001/runtime/bin/socket_impl.dart File runtime/bin/socket_impl.dart (right): https://codereview.chromium.org/10990083/diff/1001/runtime/bin/socket_impl.dart#newcode407 runtime/bin/socket_impl.dart:407: var fastBuffer = _ensureFastAndSerializableBuffer(buffer, offset, bytes); Returning a List ...
8 years, 2 months ago (2012-09-28 16:26:09 UTC) #6
Mads Ager (google)
8 years, 2 months ago (2012-09-29 11:54:53 UTC) #7
https://codereview.chromium.org/10990083/diff/1001/runtime/bin/socket_impl.dart
File runtime/bin/socket_impl.dart (right):

https://codereview.chromium.org/10990083/diff/1001/runtime/bin/socket_impl.da...
runtime/bin/socket_impl.dart:407: var fastBuffer =
_ensureFastAndSerializableBuffer(buffer, offset, bytes);
On 2012/09/28 16:26:09, Ivan Posva wrote:
> Returning a List with two elements for buffer and offset instead of an object
> with real properties is freaky and really hard to understand.

Agreed, that is not pretty. I have a change up for review to clean that up along
with a bunch of other stuff in file implementation that was left over from a
previous version of the file implementation.

https://codereview.chromium.org/10990083/diff/1001/runtime/lib/array_patch.dart
File runtime/lib/array_patch.dart (right):

https://codereview.chromium.org/10990083/diff/1001/runtime/lib/array_patch.da...
runtime/lib/array_patch.dart:5: // Note that optimizing compiler depends on the
algorithm which
On 2012/09/28 16:26:09, Ivan Posva wrote:
> that optimizing compiler -> that the optimizing compiler

Done in a separate patch sent to your for review.

https://codereview.chromium.org/10990083/diff/1001/runtime/vm/intrinsifier.h
File runtime/vm/intrinsifier.h (right):

https://codereview.chromium.org/10990083/diff/1001/runtime/vm/intrinsifier.h#...
runtime/vm/intrinsifier.h:59: V(_GrowableObjectArray,                           
                          \
On 2012/09/28 16:26:09, Ivan Posva wrote:
> This should definitely fit on one line, especially if it did before.

Yes, it does now, thanks. It didn't when I followed the (broken)
_Double.fromInteger style and had _GrowableObjectArray.fromObjectArray. Fixed in
a separate patch sent out to you for review. Thanks!

Powered by Google App Engine
This is Rietveld 408576698