Home | History | Annotate | Download | only in embenchen

Lines Matching refs:Array

375       // allocating a potentially huge array for [999999 x i8] etc.
425 if (!args.splice) args = Array.prototype.slice.call(args);
608 // @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and
609 // 'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).
610 // @param argTypes An array of the types of arguments for the function (if there are no arguments, this can be ommitted). Types are as in returnType,
611 // except that 'array' is not possible (there is no way for us to know the length of the array)
612 // @param args An array of the arguments to the function, as native JS values (as in returnType)
638 type = 'array';
640 if (type == 'array') {
652 assert(type != 'array');
674 return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments));
737 // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
740 // @types: Either an array of types, one for each byte (or 0 if no type at that position),
1036 case 'A': { // array
1125 'JS engine does not provide full typed array support');
1242 // This processes a JS string into a C-line array of numbers, 0-terminated.
1256 function intArrayToString(array) {
1258 for (var i = 0; i < array.length; i++) {
1259 var chr = array[i];
1269 // Write a Javascript array to somewhere in the heap
1271 var array = intArrayFromString(string, dontAddNull);
1273 while (i < array.length) {
1274 var chr = array[i];
1281 function writeArrayToMemory(array, buffer) {
1282 for (var i = 0; i < array.length; i++) {
1283 HEAP8[(((buffer)+(i))|0)]=array[i];
1519 var paths = Array.prototype.slice.call(arguments, 0);
1776 node.contents = Array.prototype.slice.call(contents);
1874 if (size > 8 && contents.subarray) { // non-trivial, and typed array
1945 contents = Array.prototype.slice.call(contents, position, position + length);
3469 FS.nameTable = new Array(4096);
3573 var arr = new Array(data.length);
3787 if (contents.slice) { // normal array
4039 // <any space>,<any space> into an Array. Whitespace removal is important for Websockify and ws.
4102 data = new Uint8Array(data); // make a typed array view on the array buffer
4350 if (buffer instanceof Array || buffer instanceof ArrayBuffer) {
5162 bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range