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

Issue 9114050: Add primitive WebGL ArrayBuffer() support to d8 (Closed)

Created:
8 years, 11 months ago by danno
Modified:
8 years, 11 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Add primitive WebGL ArrayBuffer() support to d8 R=jkummerow@chromium.org BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=10389

Patch Set 1 #

Patch Set 2 : Remove unrelated changed files #

Patch Set 3 : reactivate TypedArray disposal #

Total comments: 12

Patch Set 4 : fix bonehead mistakes #

Patch Set 5 : fix more random stuff #

Patch Set 6 : git commit -a -m "fix last bug" #

Patch Set 7 : Fix empty array edge case #

Total comments: 12

Patch Set 8 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -40 lines) Patch
M src/d8.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/d8.cc View 1 2 3 4 5 6 7 4 chunks +150 lines, -39 lines 0 comments Download
M test/mjsunit/external-array.js View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
danno
PTAL
8 years, 11 months ago (2012-01-11 08:49:44 UTC) #1
Jakob Kummerow
http://codereview.chromium.org/9114050/diff/4001/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/9114050/diff/4001/src/d8.cc#newcode284 src/d8.cc:284: static int convertToInt(Local<Value> value_in, TryCatch* try_catch) { Rename to ...
8 years, 11 months ago (2012-01-11 10:17:53 UTC) #2
danno
Please take another look http://codereview.chromium.org/9114050/diff/4001/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/9114050/diff/4001/src/d8.cc#newcode284 src/d8.cc:284: static int convertToInt(Local<Value> value_in, TryCatch* ...
8 years, 11 months ago (2012-01-11 13:07:41 UTC) #3
Jakob Kummerow
LGTM with comments. http://codereview.chromium.org/9114050/diff/9004/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/9114050/diff/9004/src/d8.cc#newcode399 src/d8.cc:399: if (offset + (length * element_size) ...
8 years, 11 months ago (2012-01-11 13:54:27 UTC) #4
danno
8 years, 11 months ago (2012-01-11 15:10:20 UTC) #5
http://codereview.chromium.org/9114050/diff/9004/src/d8.cc
File src/d8.cc (right):

http://codereview.chromium.org/9114050/diff/9004/src/d8.cc#newcode399
src/d8.cc:399: if (offset + (length * element_size) > array_buffer_length) {
On 2012/01/11 13:54:27, Jakob wrote:
> You need an equivalent check (offset > array_buffer_length) in the
args.Length()
> == 2 case.

Done.

http://codereview.chromium.org/9114050/diff/9004/src/d8.cc#newcode407
src/d8.cc:407: String::New("ArrayBuffer minus the byteOffset must be a "
On 2012/01/11 13:54:27, Jakob wrote:
> nit: s/ArrayBuffer/ArrayBuffer length/

Done.

http://codereview.chromium.org/9114050/diff/9004/src/d8.cc#newcode456
src/d8.cc:456: return result;
On 2012/01/11 13:54:27, Jakob wrote:
> nit: you don't need this line, could return directly instead (as the next
couple
> of functions do).

Done.

http://codereview.chromium.org/9114050/diff/9004/test/mjsunit/external-array.js
File test/mjsunit/external-array.js (right):

http://codereview.chromium.org/9114050/diff/9004/test/mjsunit/external-array....
test/mjsunit/external-array.js:75: new Uint32Array(ab,13);
On 2012/01/11 13:54:27, Jakob wrote:
> s/13/16/ to avoid triggering the "offset must be multiple of element size"
code
> path. 

Done.

http://codereview.chromium.org/9114050/diff/9004/test/mjsunit/external-array....
test/mjsunit/external-array.js:81: function abfunc5() {
On 2012/01/11 13:54:27, Jakob wrote:
> nit: AFAICS, abfunc5 and abfunc2 test the same thing.

Done.

Powered by Google App Engine
This is Rietveld 408576698