Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: test/tests/typedObjects.js

Issue 5728072976302080: Issue 151 - [Typed objects] Implement dynamically-sized array types (Closed)
Left Patch Set: Created May 16, 2014, 12:44 p.m.
Right Patch Set: Created July 11, 2014, 7:26 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « test/index.html ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 669
670 let array6 = uint32Array(9); 670 let array6 = uint32Array(9);
671 equal(array6.arrayBufferIndex, 4, "Second large array gets its own buffer"); 671 equal(array6.arrayBufferIndex, 4, "Second large array gets its own buffer");
672 equal(array6.arrayByteOffset, 0, "Second large array is allocated at zero of fset"); 672 equal(array6.arrayByteOffset, 0, "Second large array is allocated at zero of fset");
673 673
674 array5.release(); 674 array5.release();
675 array5 = uint32Array(9); 675 array5 = uint32Array(9);
676 equal(array5.arrayBufferIndex, 5, "Buffer indexes for large arrays aren't re used"); 676 equal(array5.arrayBufferIndex, 5, "Buffer indexes for large arrays aren't re used");
677 equal(array5.arrayByteOffset, 0, "Large array is allocated at zero offset"); 677 equal(array5.arrayByteOffset, 0, "Large array is allocated at zero offset");
678 678
679 for (let array of [array1, array2, array3, array4]) 679 for (let array of [array1, array2, array3, array4, array5])
Wladimir Palant 2014/05/16 13:23:14 This should release array5 as well, fixed it local
680 array.release(); 680 array.release();
681 }); 681 });
682 })(); 682 })();
LEFTRIGHT

Powered by Google App Engine
This is Rietveld