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

Issue 536043002: Merge array allocation and List._copyFromObjectArray to provide fast path for large arrays. (Closed)

Created:
6 years, 3 months ago by Vyacheslav Egorov (Google)
Modified:
6 years, 3 months ago
Reviewers:
srdjan, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Improve List.sublist and List.toList for large lists. - Merge array allocation and List._copyFromObjectArray to provide memmove fast path; - In optimizer given v2 = CreateArray(v0, v1) fold v2.length load to v1; BUG= R=iposva@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=39831

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -54 lines) Patch
M runtime/lib/array.cc View 1 1 chunk +12 lines, -33 lines 0 comments Download
M runtime/lib/array.dart View 1 4 chunks +13 lines, -19 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/method_recognizer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M tests/language/list_test.dart View 1 3 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Vyacheslav Egorov (Google)
Please take a look.
6 years, 3 months ago (2014-09-03 17:54:19 UTC) #2
srdjan
lgtm https://codereview.chromium.org/536043002/diff/1/runtime/lib/array.cc File runtime/lib/array.cc (right): https://codereview.chromium.org/536043002/diff/1/runtime/lib/array.cc#newcode59 runtime/lib/array.cc:59: GET_NON_NULL_NATIVE_ARGUMENT(Bool, need_type_arg, arguments->NativeArgAt(3)); optional: needs_type_arg https://codereview.chromium.org/536043002/diff/1/runtime/lib/array.dart File runtime/lib/array.dart ...
6 years, 3 months ago (2014-09-03 18:08:11 UTC) #3
Ivan Posva
LGTM except that we seem to be missing tests verifying the type of empty sublists. ...
6 years, 3 months ago (2014-09-03 19:10:00 UTC) #4
Vyacheslav Egorov (Google)
Thanks for the reviews! Landing. https://codereview.chromium.org/536043002/diff/1/runtime/lib/array.cc File runtime/lib/array.cc (right): https://codereview.chromium.org/536043002/diff/1/runtime/lib/array.cc#newcode59 runtime/lib/array.cc:59: GET_NON_NULL_NATIVE_ARGUMENT(Bool, need_type_arg, arguments->NativeArgAt(3)); On ...
6 years, 3 months ago (2014-09-03 20:35:17 UTC) #5
Vyacheslav Egorov (Google)
6 years, 3 months ago (2014-09-03 20:36:13 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 39831 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698