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

Issue 12632014: Allow String.fromCharCodes to work directly on a GrowableObjectArray. (Closed)

Created:
7 years, 9 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 9 months ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Allow String.fromCharCodes to work directly on a GrowableObjectArray. Avoids copying the data from the internal ObjectArray into a new ObjectArray before creating the string. Committed: https://code.google.com/p/dart/source/detail?r=20060

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M runtime/lib/string.cc View 1 1 chunk +18 lines, -2 lines 0 comments Download
M runtime/lib/string_base.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
It seems calling String.fromCharCodes with a growable list is a common case, so this should ...
7 years, 9 months ago (2013-03-14 15:34:24 UTC) #1
siva
lgtm https://codereview.chromium.org/12632014/diff/1/runtime/lib/string.cc File runtime/lib/string.cc (right): https://codereview.chromium.org/12632014/diff/1/runtime/lib/string.cc#newcode28 runtime/lib/string.cc:28: : a.Length(); I would structure this code as: ...
7 years, 9 months ago (2013-03-14 15:56:02 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/12632014/diff/1/runtime/lib/string.cc File runtime/lib/string.cc (right): https://codereview.chromium.org/12632014/diff/1/runtime/lib/string.cc#newcode28 runtime/lib/string.cc:28: : a.Length(); Much better. Done! https://codereview.chromium.org/12632014/diff/1/runtime/lib/string.cc#newcode62 runtime/lib/string.cc:62: No reason. ...
7 years, 9 months ago (2013-03-15 06:58:40 UTC) #3
Lasse Reichstein Nielsen
7 years, 9 months ago (2013-03-15 07:22:22 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r20060 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698