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

Issue 12608006: Use offsetInBytes and not index in the get/set accessors of views. (Closed)

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

Description

Use offsetInBytes and not index in the get/set accessors of views. Committed: https://code.google.com/p/dart/source/detail?r=20003

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -110 lines) Patch
M runtime/lib/typeddata.cc View 1 5 chunks +20 lines, -28 lines 0 comments Download
M runtime/lib/typeddata.dart View 1 49 chunks +186 lines, -56 lines 0 comments Download
M tests/standalone/typed_data_test.dart View 1 2 chunks +62 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
7 years, 9 months ago (2013-03-14 08:17:36 UTC) #1
Anders Johnsen
LGTM https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.cc#newcode193 runtime/lib/typeddata.cc:193: GET_NON_NULL_NATIVE_ARGUMENT(Smi, offsetInBytes, arguments->NativeArgAt(1)); \ Random question: What if ...
7 years, 9 months ago (2013-03-14 09:06:57 UTC) #2
Florian Schneider
LGTM. https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.cc#newcode193 runtime/lib/typeddata.cc:193: GET_NON_NULL_NATIVE_ARGUMENT(Smi, offsetInBytes, arguments->NativeArgAt(1)); \ On 2013/03/14 09:06:57, Anders ...
7 years, 9 months ago (2013-03-14 09:47:22 UTC) #3
Florian Schneider
https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.dart File runtime/lib/typeddata.dart (right): https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.dart#newcode484 runtime/lib/typeddata.dart:484: int _getIndexedInt16(int index) { It does not make a ...
7 years, 9 months ago (2013-03-14 10:11:59 UTC) #4
siva
https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.cc File runtime/lib/typeddata.cc (right): https://chromiumcodereview.appspot.com/12608006/diff/1/runtime/lib/typeddata.cc#newcode193 runtime/lib/typeddata.cc:193: GET_NON_NULL_NATIVE_ARGUMENT(Smi, offsetInBytes, arguments->NativeArgAt(1)); \ Yes, as Florian points out ...
7 years, 9 months ago (2013-03-14 11:16:34 UTC) #5
siva
7 years, 9 months ago (2013-03-14 11:38:23 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r20003 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698