Home | History | Annotate | Download | only in embenchen

Lines Matching refs:Array

354       // allocating a potentially huge array for [999999 x i8] etc.
404 if (!args.splice) args = Array.prototype.slice.call(args);
587 // @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and
588 // 'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).
589 // @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,
590 // except that 'array' is not possible (there is no way for us to know the length of the array)
591 // @param args An array of the arguments to the function, as native JS values (as in returnType)
617 type = 'array';
619 if (type == 'array') {
631 assert(type != 'array');
653 return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments));
716 // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
719 // @types: Either an array of types, one for each byte (or 0 if no type at that position),
1015 case 'A': { // array
1104 'JS engine does not provide full typed array support');
1221 // This processes a JS string into a C-line array of numbers, 0-terminated.
1235 function intArrayToString(array) {
1237 for (var i = 0; i < array.length; i++) {
1238 var chr = array[i];
1248 // Write a Javascript array to somewhere in the heap
1250 var array = intArrayFromString(string, dontAddNull);
1252 while (i < array.length) {
1253 var chr = array[i];
1260 function writeArrayToMemory(array, buffer) {
1261 for (var i = 0; i < array.length; i++) {
1262 HEAP8[(((buffer)+(i))|0)]=array[i];
1641 var typeArray = Array.prototype.slice.call(arguments, 2);
1763 var paths = Array.prototype.slice.call(arguments, 0);
2020 node.contents = Array.prototype.slice.call(contents);
2118 if (size > 8 && contents.subarray) { // non-trivial, and typed array
2189 contents = Array.prototype.slice.call(contents, position, position + length);
3713 FS.nameTable = new Array(4096);
3817 var arr = new Array(data.length);
4031 if (contents.slice) { // normal array
4283 // <any space>,<any space> into an Array. Whitespace removal is important for Websockify and ws.
4346 data = new Uint8Array(data); // make a typed array view on the array buffer
4594 if (buffer instanceof Array || buffer instanceof ArrayBuffer) {
5284 bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range