| /external/chromium/chrome/browser/resources/bookmark_manager/js/ |
| main.js | 31 chrome.experimental.bookmarkManager.getStrings(function(data) { 54 remove: function(id) { 70 * @param {Function=} opt_f A funciton to call when done. 72 updateChildren: function(id, opt_f) { 73 function updateItem(bookmarkNode) { 80 chrome.bookmarks.getChildren(id, function(children) { 96 splitter.addEventListener('resize', function(e) { 116 tree.addEventListener('change', function() { 126 function navigateTo(id, opt_updateHashNow) { 132 function f() [all...] |
| /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; }
|
| array-sort.js | 33 function TestNumberSort() { 41 a.sort(function(x, y) { return x - y; }); 78 function TestSmiLexicographicCompare() { 85 function add(x) { 94 function addSigned(x) { 129 function TestStringSort() { 140 function TestObjectSort() { 141 var obj0 = { toString: function() { return "a"; } }; 142 var obj1 = { toString: function() { return "b"; } }; 143 var obj2 = { toString: function() { return "c"; } } [all...] |
| 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...] |
| assert-opt-and-deopt.js | 36 function OptTracker() { 41 * The possible optimization states of a function. Must be in sync with the 53 * Always call this at the beginning of your test, once for each function 58 OptTracker.prototype.CheckpointOptCount = function(func) { 62 OptTracker.prototype.AssertOptCount = function(func, optcount) { 69 OptTracker.prototype.AssertDeoptCount = function(func, deopt_count) { 76 OptTracker.prototype.AssertDeoptHappened = function(func, expect_deopt) { 87 OptTracker.prototype.AssertIsOptimized = function(func, expect_optimized) { 102 OptTracker.prototype.GetOptCount_ = function(func) { 114 OptTracker.prototype.GetDeoptCount_ = function(func) [all...] |
| keyed-call-generic.js | 30 function testOne(receiver, key, result) { 36 function testMany(receiver, keys, results) { 47 function TypeOfThis() { return typeof this; } 49 Number.prototype.square = function() { return this * this; } 50 Number.prototype.power4 = function() { return this.square().square(); } 72 function zero () { return 0; } 73 function one () { return 1; } 74 function two () { return 2; } 99 function testException(receiver, keys, exceptions) {
|
| strict-mode-opt.js | 35 function strictToBeInlined(n) { 41 function nonstrictCallStrict(n) { 45 (function testInlineStrictInNonStrict() { 61 function nonstrictToBeInlined(n) { 66 function strictCallNonStrict(n) { 71 (function testInlineNonStrictInStrict() { 83 // Optimize strict function. 85 function strictAssignToUndefined(n) { 91 (function testOptimizeStrictAssignToUndefined() {
|
| /external/v8/test/mjsunit/compiler/ |
| 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/ |
| 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-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
|
| /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/webkit/Source/WebCore/inspector/front-end/ |
| TextPrompt.js | 29 WebInspector.TextPrompt = function(element, completions, stopCharacters, omitHistory) 61 removeFromElement: function() 67 _onKeyDown: function(event) 69 function defaultAction() 129 acceptAutoComplete: function() 150 clearAutoComplete: function(includeTimeout) 185 autoCompleteSoon: function() 191 complete: function(auto, reverse) 212 _completionsReady: function(selection, auto, originalWordPrefixRange, reverse, completions) 309 isCaretInsidePrompt: function() [all...] |
| /external/v8/tools/ |
| codemap.js | 34 function CodeMap() { 81 CodeMap.prototype.addCode = function(start, codeEntry) { 94 CodeMap.prototype.moveCode = function(from, to) { 107 CodeMap.prototype.deleteCode = function(start) { 118 CodeMap.prototype.addLibrary = function( 131 CodeMap.prototype.addStaticCode = function( 140 CodeMap.prototype.markPages_ = function(start, end) { 151 CodeMap.prototype.deleteAllCoveredNodes_ = function(tree, start, end) { 168 CodeMap.prototype.isAddressBelongsTo_ = function(addr, node) { 176 CodeMap.prototype.findInTree_ = function(tree, addr) [all...] |
| /external/v8/benchmarks/spinning-balls/ |
| v.js | 30 * This function provides requestAnimationFrame in a cross browser way. 34 window.requestAnimationFrame = ( function() { 39 function(callback, element) { 68 function Point(x, y, z, payload) { 80 Point.prototype.color = function () { 85 Point.prototype.decay = function () { 91 function PointsList() { 97 PointsList.prototype.add = function (point) { 105 PointsList.prototype.remove = function (point) { 118 function GeneratePayloadTree(depth, tag) [all...] |
| /external/chromium/chrome/browser/resources/ntp/ |
| apps.js | 9 function getAppsCallback(data) { 41 data.apps.sort(function(a,b) { 60 data.apps.forEach(function(app) { 92 data.apps.slice(0, MAX_MINIVIEW_ITEMS).forEach(function(app) { 126 function markNewApps(data) { 128 data.forEach(function(app) { 133 !oldData.some(function(id) { return id == app.id; })) { 141 function appsPrefChangeCallback(data) { 143 data.apps.forEach(function(app) { 152 function launchAppAfterEnable(appId) [all...] |
| /external/v8/src/ |
| accessors.cc | 91 // The helper function will 'flatten' Number objects. 401 // Get the function from where eval was called and find the source position 428 // Find the name of the function calling eval. 452 JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it); local 454 while (!function->should_have_prototype()) { 456 function = FindInPrototypeChain<JSFunction>(object->GetPrototype(), 462 if (!function->has_prototype()) { 464 { MaybeObject* maybe_prototype = heap->AllocateFunctionPrototype(function); 468 { MaybeObject* maybe_result = function->SetPrototype(prototype); 472 return function->prototype() 481 JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it); local 513 JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it); local [all...] |
| /external/llvm/examples/OCaml-Kaleidoscope/Chapter4/ |
| codegen.ml | 15 let rec codegen_expr = function 39 | None -> raise (Error "unknown function referenced") 49 let codegen_proto = function 51 (* Make the function type: double(double,double) etc. *) 63 raise (Error "redefinition of function"); 67 raise (Error "redefinition of function with different # args"); 79 let codegen_func the_fpm = function 80 | Ast.Function (proto, body) -> 91 (* Finish off the function. *) 97 (* Optimize the function. * [all...] |
| /external/v8/test/mjsunit/bugs/ |
| bug-941049.js | 31 function g(f) { 41 function h(f) { 46 // Test function with a materialized arguments array. 47 function f0() { 56 // Test function without a materialized arguments array. 57 function f1(x) { 65 function test(f) { 83 function w() { 87 function q(x, y) {
|
| /external/v8/test/mjsunit/harmony/ |
| proxies-hash.js | 33 function TestWithProxies(test, construct, handler) { 35 test(construct, handler, function(h) { 36 return Proxy.createFunction(h, function() {}) 43 function TestSet(construct, fix) { 47 function TestSet2(construct, fix, create) { 48 var handler = {fix: function() { return {} }} 80 function TestMap(construct, fix) { 84 function TestMap2(construct, fix, create) { 85 var handler = {fix: function() { return {} }}
|