Home | History | Annotate | Download | only in embenchen

Lines Matching refs:Array

344       // allocating a potentially huge array for [999999 x i8] etc.
394 if (!args.splice) args = Array.prototype.slice.call(args);
577 // @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and
578 // 'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).
579 // @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,
580 // except that 'array' is not possible (there is no way for us to know the length of the array)
581 // @param args An array of the arguments to the function, as native JS values (as in returnType)
607 type = 'array';
609 if (type == 'array') {
621 assert(type != 'array');
643 return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments));
706 // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
709 // @types: Either an array of types, one for each byte (or 0 if no type at that position),
1005 case 'A': { // array
1094 'JS engine does not provide full typed array support');
1211 // This processes a JS string into a C-line array of numbers, 0-terminated.
1225 function intArrayToString(array) {
1227 for (var i = 0; i < array.length; i++) {
1228 var chr = array[i];
1238 // Write a Javascript array to somewhere in the heap
1240 var array = intArrayFromString(string, dontAddNull);
1242 while (i < array.length) {
1243 var chr = array[i];
1250 function writeArrayToMemory(array, buffer) {
1251 for (var i = 0; i < array.length; i++) {
1252 HEAP8[(((buffer)+(i))|0)]=array[i];
1651 node.contents = Array.prototype.slice.call(contents);
1749 if (size > 8 && contents.subarray) { // non-trivial, and typed array
1820 contents = Array.prototype.slice.call(contents, position, position + length);
3344 FS.nameTable = new Array(4096);
3448 var arr = new Array(data.length);
3662 if (contents.slice) { // normal array
3842 var paths = Array.prototype.slice.call(arguments, 0);
3967 bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
4559 // <any space>,<any space> into an Array. Whitespace removal is important for Websockify and ws.
4622 data = new Uint8Array(data); // make a typed array view on the array buffer
4870 if (buffer instanceof Array || buffer instanceof ArrayBuffer) {