/external/webkit/PerformanceTests/SunSpider/tests/ubench/ |
function-sum.js | 3 return x + y + z;
|
/external/webkit/LayoutTests/fast/js/resources/ |
codegen-temporaries-multiple-global-blocks-1.js | 4 return 1; 10 return 2; 16 return 1; 22 return "a"; 28 return "a"; 34 return 2; 40 return "a"; 46 return 1;
|
JSON-stringify.js | 6 var complexObject = {a:"1", b:"2", c:"3", d:undefined, e:null, "":12, get f(){ return simpleArray; }, array: complexArray}; 12 var complexObjectWithProto = {d:"4", e:"5", f:"6", g:undefined, h:null, "":12, get i(){ return simpleArrayWithProto; }, array2: complexArrayWithProto, __proto__:complexObject}; 22 return jsonObject.stringify(1); 25 return jsonObject.stringify(1.5); 28 return jsonObject.stringify(-1); 31 return jsonObject.stringify(-1.5); 34 return jsonObject.stringify(null); 37 return jsonObject.stringify("string"); 40 return jsonObject.stringify(new Number(0)); 43 return jsonObject.stringify(new Number(1)) [all...] |
JSON-parse.js | 5 return jsonObject.parse(); 9 return jsonObject.parse(''); 13 return jsonObject.parse('1'); 16 return jsonObject.parse('-1'); 19 return jsonObject.parse('Infinity'); 23 return jsonObject.parse('NaN'); 27 return jsonObject.parse('null'); 30 return jsonObject.parse('undefined'); 34 return jsonObject.parse('{}'); 37 return jsonObject.parse('({})') [all...] |
const.js | 51 shouldBe("function f() { const one = 1; one++; return one; } f();", "1"); 52 shouldBe("function f() { const oneString = '1'; return oneString++; } f();", "1"); 53 shouldBe("function f() { const one = 1; return one++; } f();", "1"); 56 shouldBe("function f() { const one = 1; one--; return one; } f();", "1"); 57 shouldBe("function f() { const oneString = '1'; return oneString--; } f();", "1"); 58 shouldBe("function f() { const one = 1; return one--; } f();", "1"); 61 shouldBe("function f() { const one = 1; ++one; return one; } f();", "1"); 62 shouldBe("function f() { const one = 1; return ++one; } f();", "2"); 65 shouldBe("function f() { const one = 1; --one; return one; } f();", "1"); 66 shouldBe("function f() { const one = 1; return --one; } f();", "0") [all...] |
/external/chromium/net/data/proxy_resolver_v8_unittest/ |
return_empty_string.js | 2 return "";
|
return_integer.js | 2 return 0;
|
direct.js | 2 return "DIRECT";
|
return_function.js | 2 return FindProxyForURL;
|
return_null.js | 2 return null;
|
return_undefined.js | 2 return undefined;
|
return_object.js | 2 return {result: "PROXY foo"};
|
ends_with_statement_no_semicolon.js | 2 function FindProxyForURL(url, host) { return "PROXY success:" + x; }
|
return_unicode.js | 3 return "PROXY foo.com\u200B";
|
simple.js | 8 return "PROXY a:80"; 13 return "PROXY b:80"; 17 return "PROXY c:100"; 20 return "DIRECT";
|
unhandled_exception.js | 3 return "PROXY x" + undefined_variable;
|
/external/chromium/chrome/common/extensions/docs/examples/extensions/irc/servlet/ |
util.js | 2 return document.getElementById(el); 6 return $(el).value; 10 return function() { 11 return func.apply(obj, arguments); 17 return document.evaluate(expression, node,
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
controlflow-recursive.js | 6 if (m==0) { return n+1; } 7 if (n==0) { return ack(m-1,1); } 8 return ack(m-1, ack(m,n-1) ); 12 if (n < 2){ return 1; } 13 return fib(n-2) + fib(n-1); 17 if (y >= x) return z; 18 return tak(tak(x-1,y,z), tak(y-1,z,x), tak(z-1,x,y));
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
controlflow-recursive.js | 6 if (m==0) { return n+1; } 7 if (n==0) { return ack(m-1,1); } 8 return ack(m-1, ack(m,n-1) ); 12 if (n < 2){ return 1; } 13 return fib(n-2) + fib(n-1); 17 if (y >= x) return z; 18 return tak(tak(x-1,y,z), tak(y-1,z,x), tak(z-1,x,y));
|
/external/v8/test/mjsunit/ |
arguments-read-and-assignment.js | 30 assertEquals(42, function(){ return arguments;}(42)[0], 31 "return arguments value"); 32 assertEquals(42, function(){ return arguments;}(42)[0], 34 assertEquals(42, function(){ arguments;return 42}(37), 36 assertEquals(42, function(){ if(arguments)return 42;}(), 38 assertEquals(42, function(){ return arguments || true;}(42)[0], 40 assertEquals(true, function(){ return arguments && [true];}(42)[0], 42 assertEquals(42, function(){ arguments = 42; return 42;}(), 45 assertEquals(42, function(){ return arguments[0]; }(42), 47 assertEquals(42, function(){ arguments[0]; return 42}() [all...] |
try.js | 32 try { r = f(); } catch (o) { return g(o); } 33 return r; 37 try { return f(); } catch (o) { return g(o); } 44 assertEquals(1, c(function() { return 1; })); 45 assertEquals('bar', c(function() { return 'bar'; })); 46 assertEquals(1, c(function () { throw 1; }, function (x) { return x; })); 47 assertEquals('bar', c(function () { throw 'bar'; }, function (x) { return x; })); 51 assertEquals(1, (function() { try { return 1; } finally { } })()); 52 assertEquals(1, (function() { try { return 1; } finally { var x = 12; } })()) [all...] |
/external/chromium/chrome/browser/debugger/manual_tests/resources/ |
primes.js | 7 if (p % divisor === 0) return false; 12 return true;
|
loop-statements.js | 11 return !i;
|
/external/webkit/Source/WebCore/manual-tests/inspector/resources/ |
loop-statements.js | 11 return !i;
|
script-error.js | 5 return 42;
|