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

Issue 14296006: Fast copy between TypedData and ExternalTypedData (Closed)

Created:
7 years, 8 months ago by kustermann
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fast copy between TypedData and ExternalTypedData Until now, copying data from TypedData to TypedData and from ExternalTypedData to ExternalTypedData was fast. But copying between TypedData and ExternalTypedData was not handled in a fast way. Committed: https://code.google.com/p/dart/source/detail?r=21791

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -86 lines) Patch
M runtime/lib/typeddata.cc View 1 2 3 4 2 chunks +41 lines, -29 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 6 chunks +45 lines, -13 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 2 chunks +0 lines, -44 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
kustermann
7 years, 8 months ago (2013-04-16 14:12:54 UTC) #1
Vyacheslav Egorov (Google)
https://codereview.chromium.org/14296006/diff/1/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/1/runtime/lib/typeddata.cc#newcode82 runtime/lib/typeddata.cc:82: #define COPY_DATA_AND_RETURN(dsttype, dst, srctype, src) \ I'd prefer good ...
7 years, 8 months ago (2013-04-16 14:22:23 UTC) #2
kustermann
PTAL
7 years, 8 months ago (2013-04-16 15:48:51 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/14296006/diff/3/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/3/runtime/lib/typeddata.cc#newcode92 runtime/lib/typeddata.cc:92: if (src_element_size_in_bytes != dst_element_size_in_bytes) { You need to compare ...
7 years, 8 months ago (2013-04-16 16:23:06 UTC) #4
siva
https://codereview.chromium.org/14296006/diff/3/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/3/runtime/lib/typeddata.cc#newcode94 runtime/lib/typeddata.cc:94: } I don't believe this check is sufficient, if ...
7 years, 8 months ago (2013-04-16 16:36:48 UTC) #5
kustermann
Thanks for taking a look. https://codereview.chromium.org/14296006/diff/3/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/3/runtime/lib/typeddata.cc#newcode92 runtime/lib/typeddata.cc:92: if (src_element_size_in_bytes != dst_element_size_in_bytes) ...
7 years, 8 months ago (2013-04-16 17:26:04 UTC) #6
Vyacheslav Egorov (Google)
https://codereview.chromium.org/14296006/diff/7001/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/7001/runtime/lib/typeddata.cc#newcode103 runtime/lib/typeddata.cc:103: NoGCScope no_gc; If TypedData and ExternalTypedData had a base ...
7 years, 8 months ago (2013-04-17 11:41:56 UTC) #7
Søren Gjesse
lgtm from me, but please get an lgtm from siva.
7 years, 8 months ago (2013-04-17 12:39:45 UTC) #8
Vyacheslav Egorov (Google)
https://codereview.chromium.org/14296006/diff/7001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/14296006/diff/7001/runtime/vm/object.h#newcode5039 runtime/vm/object.h:5039: return ElementType(cid); I meant: enum TypeDataElementType { #define V(name) ...
7 years, 8 months ago (2013-04-17 12:55:27 UTC) #9
Anders Johnsen
STV! :) https://codereview.chromium.org/14296006/diff/7001/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/7001/runtime/lib/typeddata.cc#newcode91 runtime/lib/typeddata.cc:91: if (dst_array.ElementType() == src_array.ElementType()) { DBC: !=
7 years, 8 months ago (2013-04-18 11:00:43 UTC) #10
kustermann
It would be nice if you could take another look. https://codereview.chromium.org/14296006/diff/7001/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/7001/runtime/lib/typeddata.cc#newcode91 ...
7 years, 8 months ago (2013-04-18 13:57:57 UTC) #11
siva
LGTM with some comments. https://codereview.chromium.org/14296006/diff/17003/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://codereview.chromium.org/14296006/diff/17003/runtime/lib/typeddata.cc#newcode104 runtime/lib/typeddata.cc:104: length_in_bytes); See comments in object.h ...
7 years, 8 months ago (2013-04-19 17:38:40 UTC) #12
kustermann
Thanks for taking another look. I'll commit this CL on Monday. https://codereview.chromium.org/14296006/diff/17003/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): ...
7 years, 8 months ago (2013-04-19 19:21:54 UTC) #13
kustermann
7 years, 8 months ago (2013-04-22 08:27:25 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 manually as r21791 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698