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

Issue 518273004: Don't always call _copyFromObjectArray. (Closed)

Created:
6 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, srdjan
Visibility:
Public.

Description

Don't always call _copyFromObjectArray. The call is a runtime call, not internalized as I expected. Only use it for large array slices. R=srdjan@google.com, vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=39803

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. #

Patch Set 3 : full version of previous patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -15 lines) Patch
M runtime/lib/array.dart View 1 2 2 chunks +27 lines, -15 lines 0 comments Download
M runtime/vm/method_recognizer.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Lasse Reichstein Nielsen
6 years, 3 months ago (2014-09-02 14:27:52 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/518273004/diff/1/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/518273004/diff/1/runtime/lib/array.dart#newcode72 runtime/lib/array.dart:72: _copyFromObjectArray(iterable, skipCount, start, length); Good thing this wasn't called ...
6 years, 3 months ago (2014-09-02 14:29:10 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/518273004/diff/1/runtime/lib/array.dart File runtime/lib/array.dart (right): https://codereview.chromium.org/518273004/diff/1/runtime/lib/array.dart#newcode106 runtime/lib/array.dart:106: if (length < 128) { I don't like that ...
6 years, 3 months ago (2014-09-02 14:31:15 UTC) #4
Vyacheslav Egorov (Google)
Maybe I suggest actually making _copyFromObjectArray a Dart routine that does length check and renaming ...
6 years, 3 months ago (2014-09-02 14:32:22 UTC) #5
Lasse Reichstein Nielsen
Good idea. I'll move the code into _copyFromObjectArray, and make the native function one step ...
6 years, 3 months ago (2014-09-02 14:34:28 UTC) #6
srdjan
LGTM after addressing Slava's comments and checking that there are no regressions. https://codereview.chromium.org/518273004/diff/1/runtime/lib/array.dart File runtime/lib/array.dart ...
6 years, 3 months ago (2014-09-02 18:33:58 UTC) #8
Vyacheslav Egorov (Google)
LGTM
6 years, 3 months ago (2014-09-03 12:37:58 UTC) #9
Lasse Reichstein Nielsen
6 years, 3 months ago (2014-09-03 12:39:43 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 39803 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698