| /external/skia/tools/lua/ |
| classify_rrect_clips.lua | 2 function sk_scrape_startcanvas(c, fileName) end 4 function sk_scrape_endcanvas(c, fileName) end 6 function classify_rrect(rrect) 72 function print_classes(class_table) 73 function sort_classes(a, b) 89 function sk_scrape_accumulate(t) 98 function sk_scrape_summarize()
|
| scrape_dashing.lua | 0 function tostr(t) 36 function sk_scrape_startcanvas(c, fileName) 43 function sk_scrape_endcanvas(c, fileName) 47 function increment(table, key) 55 function sk_scrape_accumulate(t) 82 lua_pictures will call this function after all of the pictures have been 85 function sk_scrape_summarize()
|
| /external/v8/test/mjsunit/ |
| accessors-on-global-object.js | 33 function getX() { return x; } 37 if (i == 4) __defineGetter__("x", function() { return 42; }); 47 function setY(value) { y = value; } 53 __defineSetter__("y", function(value) { setter_y = 2 * value; }); 54 __defineGetter__("y", function() { return setter_y; }); 62 __defineGetter__("z", function() { return 42; }); 64 function getZ() { return z; }
|
| fuzz-accessors.js | 32 function getAnException() { 40 function getSpecialObjects() { 42 function () { }, 54 var fun = function () { }; 68 function runTest(fun) { 84 runTest(function (obj, name) { return obj[name]; }); 85 runTest(function (obj, name) { return obj[name] = { }; });
|
| receiver-in-with-calls.js | 29 // the receiver to the object where we found the function. 31 (function () { 32 var x = { get_this: function() { return this; } }; 38 assertTrue({ f: function() { 39 function g() { return this; }; 44 assertTrue({ f: function() { 45 function g() { return this; };
|
| strict-mode-eval.js | 30 var code1 = "function f(eval) {}"; 31 var code2 = "function f(a, a) {}"; 33 var code4 = "function arguments() {}"; 44 function strict1() { 54 function strict2() { 64 function strict3() { 74 function strict4() {
|
| switch.js | 30 function f0() { 38 function f1(x) { 48 function f2(x) { 80 assertEquals("default", f2({valueOf: function(){return 2; }}), "0-1-switch.obj"); 83 function f3(x, c) { 113 function f4(x) { 131 function f4_string(tag, x) { 155 function regress_string(value) { 168 function f5(x) { 184 function f6(N) [all...] |
| /external/v8/test/mjsunit/compiler/ |
| compare-objeq-elim.js | 30 function A(x, y) { 35 function B(x, y) { 40 function F1(a, b) { 45 function F2(a, b) { 50 function F3(a, b) { 56 function F4(a, b) { 64 function test(f, a, b) {
|
| literals-assignment.js | 28 // Tests for simple assignments and literals inside an anonymous function 31 assertEquals(8, eval("(function() { return 8; })()")); 34 var code = "(function() {\ 41 code = "(function() {\ 50 code = "(function() {\ 58 code = "(function() {\ 66 code = "(function() {\
|
| regress-deopt-call-as-function.js | 30 function bar(a, b) {try { return a; } finally { } } 32 function test_context() { 33 function foo(x) { return 42; } 43 function value_context() { 44 function foo(x) { return 42; } 54 function effect_context() { 55 function foo(x) { return 42; }
|
| regress-funcaller.js | 30 // Test function.caller. 31 function A() {} 33 function fun(x) { 38 function gee(x) { return this.f(x); } 52 // Test when called from another function. 53 function hej(x) { 67 function from_eval(x) {
|
| regress-serialized-slots.js | 28 // The test verifies that parameters of the outer function are correctly 31 function runner(f, expected) { 37 Function.prototype.bind = function(thisObject) 41 function bound() 43 // Note outer function parameter access (|thisObject|). 51 function sum(x, y) { 55 function test(n) {
|
| /external/v8/test/mjsunit/regress/ |
| binop-in-effect-context-deopt.js | 30 (function BinopInEffectContextDeoptAndOsr() { 31 function f(a, deopt, osr) { 45 (function BinopInEffectContextLazyDeopt() { 46 function deopt_f() { 51 function h() { 55 function g(x) { 58 function f() {
|
| regress-931.js | 32 var o = { f: function (x, y) { return x + y; }, 33 2: function (x, y) { return x - y} }; 35 function first() { sequence += "1"; return o; } 36 function second() { sequence += "2"; return "f"; } 37 function third() { sequence += "3"; return 3; } 38 function fourth() { sequence += "4"; return 4; } 44 function second_prime() { sequence += "2'"; return 2; }
|
| regress-crbug-336148.js | 30 function f(o) { 41 function f1() { return 1 && 2; }; 42 function f2() { return 1 || 2; }; 43 function f3() { return 0 && 2; }; 44 function f4() { return 0 || 2; }; 46 function test() { 55 [f1, f2, f3, f4].forEach(function(f) { %OptimizeFunctionOnNextCall(f); });
|
| regress-deopt-gc.js | 30 // This tests that we can correctly handle a GC immediately after a function 31 // has been deoptimized, even when we have an activation of this function on 34 // Ensure that there is code objects before the code for the opt_me function. 35 (function() { var a = 10; a++; })(); 37 function opt_me() { 41 function deopt() { 42 // Make sure we don't inline this function
|
| regress-deopt-gcb.js | 30 // This tests that we can correctly handle a GC immediately after a function 31 // has been deoptimized, even when we have an activation of this function on 34 // Ensure that there is code objects before the code for the opt_me function. 35 (function() { var a = 10; a++; })(); 37 function opt_me() { 41 // Make sure we don't inline this function 43 function deopt() {
|
| regress-parse-use-strict.js | 35 assertThrows('function f() { "use sanity";' + strict + '}'); 36 assertThrows('function f() { "use sanity";' + strict + filler + '}'); 38 // Test switching to strict mode after function declaration. 41 eval('function f() { function g() {}' + strict + '}'); 42 eval('function f() { function g() {}' + strict + filler + '}');
|
| /external/v8/test/webkit/ |
| dfg-inline-function-dot-caller.js | 25 "Tests that DFG inlining does not brak function.arguments.caller." 32 function throwError() { 36 nonInlineable : function nonInlineable() { 37 if (0) return [arguments, function(){}]; 46 inlineable : function inlineable() { 50 function makeInlinableCall(o) { 55 function g() {
|
| function-prototype-descriptor.js | 25 'Test for function.prototype\'s property descriptor.' 28 function test(func) 30 // test function.prototype has the correct attributes - writable, enumerable, non-configurable. 38 function a() {} 42 function b() {} 47 function c() {} 48 shouldThrow("Object.defineProperty(c, 'prototype', { get: function(){} })");
|
| /external/v8/test/webkit/fast/js/ |
| Promise-then.js | 33 var firstPromise = new Promise(function(newResolve) { 38 var secondPromise = firstPromise.then(function(localResult) { 50 secondPromise.then(undefined, 37).then(function(localResult) { 54 }).then(1, 2).then(function() { 56 }, function(localResult) { 60 }).then(function() { 63 }, function() {
|
| /external/v8/test/webkit/fast/js/kde/ |
| func-decl.js | 26 function shouldBeOfType(msg, val, type) { 33 function shouldBeVal(msg, val, expected) { 42 function test() { 44 shouldBeOfType("Function declaration takes effect at entry", f, "function"); 52 shouldBeOfType("Decl not yet overwritten", f, 'function'); 59 function f() {}; 60 shouldBeVal("function decls have no execution content", f, 3);
|
| /sdk/templates/docs/ |
| prettify.js | 2 (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= 3 [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0;c< 4 f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.charAt(0)&& 5 (j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break}}for(var r= 6 {b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibli (…) [all...] |
| /external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/src/gl-matrix/ |
| quat.js | 37 quat.create = function() { 57 quat.rotationTo = (function() { 62 return function(out, a, b) { 98 quat.setAxes = (function() { 101 return function(out, view, right, up) { 123 * @function 135 * @function 145 * @function 158 * @function 168 quat.identity = function(out) [all...] |
| /external/v8/tools/ |
| tickprocessor.js | 29 function inherits(childCtor, parentCtor) { 34 function V8Profile(separateIc) { 37 this.skipThisFunction = function(name) { return V8Profile.IC_RE.test(name); }; 48 * A thin wrapper around shell's 'read' function showing a file name on error. 50 function readFile(fileName) { 63 function parseState(s) { 73 function SnapshotLogProcessor() { 82 'function-creation': null, 83 'function-move': null, 84 'function-delete': null [all...] |