HomeSort by relevance Sort by last modified time
    Searched refs:function (Results 626 - 650 of 4292) sorted by null

<<21222324252627282930>>

  /external/v8/test/mjsunit/
keyed-array-call.js 28 var a = [function(a) { return a+10; },
29 function(a) { return a+20; }];
30 a.__proto__.test = function(a) { return a+30; }
31 function f(i) {
43 var a2 = [function(a) { return a+10; },,
44 function(a) { return a+20; }];
45 a2.__proto__.test = function(a) { return a+30; }
46 function f2(i) {
55 // Deopt the stub. This will throw given that undefined is not a function.
56 assertThrows(function() { f2(1) })
    [all...]
arguments-apply.js 28 function ReturnArguments() {
32 function ReturnReceiver() {
37 function Global() {
49 function Local() {
62 function ShadowArguments() {
72 function NonObjectReceiver(receiver) {
83 function FunctionReceiver() {
90 function ShadowApply() {
91 function f() { return 42; }
92 f.apply = function() { return 87;
    [all...]
debug-liveedit-double-call.js 34 function TestCase(test_scenario, expected_output) {
38 var script_text_generator = (function() {
42 get: function() {
43 return "(function() {\n " +
44 " function A() {\n " +
50 " function B(p1, p2) {\n " +
54 " function C() {\n " +
56 " // Function call with argument adaptor is intentional.\n " +
59 " function D() {\n " +
61 " // Function call with argument adaptor is intentional.\n "
    [all...]
global-load-from-eval-in-with.js 32 function test(obj, source) {
43 test({ x: 42 }, "function f() { assertEquals(42, x) }; f();");
44 test({ y: 42 }, "function f() { assertEquals(27, x) }; f();");
48 test({ x: 42 }, "function f() { function g() { assertEquals(42, x) }; g() }; f();");
49 test({ y: 42 }, "function f() { function g() { assertEquals(27, x) }; g() }; f();");
52 test({ x: 42 }, "function f() { eval('1'); assertEquals(42, x) }; f();");
53 test({ y: 42 }, "function f() { eval('1'); assertEquals(27, x) }; f();");
57 test({ x: 42 }, "function f() { function g() { eval('1'); assertEquals(42, x) }; g() }; f();")
    [all...]
indexed-accessors.js 32 o.__defineGetter__('0', function() { return o.x; });
36 o.__defineSetter__('0', function(y) { o.x = y; });
44 function Pair(x, y) {
48 Pair.prototype.__defineGetter__('0', function() { return this.x; });
49 Pair.prototype.__defineGetter__('1', function() { return this.y; });
50 Pair.prototype.__defineSetter__('0', function(x) { this.x = x; });
51 Pair.prototype.__defineSetter__('1', function(y) { this.y = y; });
70 function testArray() {
78 actual.__defineGetter__('0', function() { return expected[0]; });
87 q.__defineGetter__('0', function() { return 42; })
    [all...]
mjsunit.js 28 function MjsUnitAssertionError(message) {
41 MjsUnitAssertionError.prototype.toString = function () {
76 // for tests that doesn't have their own assertXXX function.
89 // Assert that the passed function or eval code throws an exception.
96 // Assert that the passed function or eval code does not throw an exception.
106 // Assert that the function code is (not) optimized. If "no sync" is passed
114 (function () { // Scope for utility functions.
116 function classOf(object) {
124 function PrettyPrint(value) {
133 case "function"
    [all...]
debug-setbreakpoint.js 32 // Simple function which stores the last debug event.
43 function safeEval(code) {
52 function testArguments(dcp, arguments, success, is_script) {
69 function listener(event, exec_state, event_data, data) {
84 testArguments(dcp, '{"type":"function"}', false);
88 testArguments(dcp, '{"type":"function","target":1}', false);
89 testArguments(dcp, '{"type":"function","target":"f","line":-1}', false);
90 testArguments(dcp, '{"type":"function","target":"f","column":-1}', false);
91 testArguments(dcp, '{"type":"function","target":"f","ignoreCount":-1}', false);
97 testArguments(dcp, '{"type":"function","target":"f"}', true, false)
    [all...]
  /external/v8/test/mjsunit/regress/
regress-91120.js 28 // We intend that the function declaration for g inside catch is hoisted to
29 // function f's scope. Invoke it before try/catch, in the try block, in the
34 function f() {
35 var x = 'function';
36 assertEquals('function', g());
38 assertEquals('function', g());
41 function g() { return x; }
42 assertEquals('function', g());
44 assertEquals('function', g());
48 assertEquals('function', f()())
    [all...]
  /external/v8/test/webkit/fast/js/
Promise-init.js 31 var promise = new Promise(function(newResolve, newReject) {
40 shouldBeTrue('resolve instanceof Function');
41 shouldBeTrue('reject instanceof Function');
43 shouldThrow('new Promise()', '"TypeError: Promise resolver undefined is not a function"');
44 shouldThrow('new Promise(37)', '"TypeError: Promise resolver 37 is not a function"');
47 promise = new Promise(function() { throw Error('foo'); });
48 testPassed('promise = new Promise(function() { throw Error("foo"); }) did not throw exception.');
50 testFailed('new Promise(function() { throw Error(\'foo\'); }) should not throw an exception.');
53 promise.then(undefined, function(localResult) {
58 new Promise(function(resolve)
    [all...]
Promise-resolve-chain.js 31 var promise1 = new Promise(function(r) { resolve1 = r; });
32 var promise2 = new Promise(function(r) { resolve2 = r; });
33 var promise3 = new Promise(function(r) { resolve3 = r; });
34 var promise4 = new Promise(function(_, r) { reject4 = r; });
35 var promise5 = new Promise(function(r) { resolve5 = r; });
36 var promise6 = new Promise(function(r) { resolve6 = r; });
43 promise3.then(function(localResult) {
46 }, function() {
50 promise6.then(function() {
53 }, function(localResult)
    [all...]
parser-syntax-check.js 28 function runTest(_a, errorType)
52 function valid(_a)
56 runTest("function f() { " + _a + " }", false);
59 function invalid(_a, _type)
64 runTest("function f() { " + _a + " }", true);
73 // accepts: 'function f() { return 6 + }' (only inside a function declaration)
133 debug ("Function calls (and new with arguments)");
155 debug ("function declaration and expression");
157 valid ("function f() {}")
    [all...]
  /external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/jsdoc-template/
publish.js 2 function publish(symbolSet) {
13 Link.prototype._makeSrcLink = function(srcFilePath) {
35 function hasNoParent($) {return ($.memberOf == "")}
36 function isaFile($) {return ($.is("FILE"))}
37 function isaClass($) {return ($.is("CONSTRUCTOR") || $.isNamespace)}
129 function summarize(desc) {
135 function makeSortby(attribute) {
136 return function(a, b) {
148 function include(path) {
154 function makeSrcFile(path, srcDir, name)
    [all...]
  /external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/src/gl-matrix/
mat2d.js 48 mat2d.create = function() {
65 mat2d.clone = function(a) {
83 mat2d.copy = function(out, a) {
99 mat2d.identity = function(out) {
116 mat2d.invert = function(out, a) {
141 mat2d.determinant = function (a) {
153 mat2d.multiply = function (out, a, b) {
167 * @function
179 mat2d.rotate = function (out, a, rad) {
200 mat2d.scale = function(out, a, v)
    [all...]
  /external/v8/test/mjsunit/es6/
generators-debug-scopes.js 9 function RunTest(name, formals_and_body, args, handler, continuation) {
13 function listener(event, exec_state, event_data, data) {
24 function run(thunk) {
36 var fun = Function.apply(null, formals_and_body);
37 var gen = (function*(){}).constructor.apply(null, formals_and_body);
41 run(function () { return fun.apply(null, args) });
42 run(function () { return gen.apply(null, args).next().value });
49 function assertScopeMirrorEquals(scope1, scope2) {
56 function CheckFastAllScopes(scopes, exec_state) {
68 function CheckScopeChain(scopes, exec_state)
    [all...]
mirror-promises.js 8 function MirrorRefCache(json_refs) {
16 MirrorRefCache.prototype.lookup = function(handle) {
20 function testPromiseMirror(promise, status, value) {
49 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type);
56 var resolved = new Promise(function(resolve, reject) { resolve() });
57 var rejected = new Promise(function(resolve, reject) { reject() });
58 var pending = new Promise(function(resolve, reject) {});
64 var resolvedv = new Promise(function(resolve, reject) { resolve('resolve') });
65 var rejectedv = new Promise(function(resolve, reject) { reject('reject') });
66 var thrownv = new Promise(function(resolve, reject) { throw 'throw' })
    [all...]
  /external/libvncserver/webclients/novnc/include/
ui.js 22 load: function() {
65 //$D('VNC_screen').onmousemove = function () {
78 setTimeout(function() { window.scrollTo(0, 1); }, 100);
99 Util.addEvent(window, 'beforeunload', function () {
116 getSetting: function(name) {
131 updateSetting: function(name, value) {
163 saveSetting: function(name) {
178 initSetting: function(name, defVal) {
192 forceSetting: function(name, val) {
199 toggleClipboardPanel: function() {
    [all...]
  /external/v8/src/
mirror-debugger.js 14 function ToggleMirrorCache(value) {
24 function ObjectIsPromise(value) {
42 function MakeMirror(value, opt_transient) {
108 function LookupMirror(handle) {
119 function GetUndefinedMirror() {
127 * The Function.prototype.inherits from lang.js rewritten as a standalone
128 * function (not on Function.prototype). NOTE: If this file is to be loaded
129 * during bootstrapping this function needs to be revritten using some native
133 * @param {function} ctor Constructor function which needs to inherit th
    [all...]
debug-debugger.js 61 function ScriptTypeFlag(type) {
73 getValue: function() { return this.value; },
74 setValue: function(value) {
80 getValue: function() { return Debug.isBreakOnException(); },
81 setValue: function(value) {
90 getValue: function() { return Debug.isBreakOnUncaughtException(); },
91 setValue: function(value) {
103 function MakeBreakPoint(source_position, opt_script_break_point) {
111 // NOTE: This object does not have a reference to the function having break
112 // point as this would cause function not to be garbage collected when it i
    [all...]
  /external/skia/experimental/SkV8Example/js/
gears.js 11 function makeGear(pathLike, r) {
25 function gearPath(r) {
36 function gearDisplayListStroke(r, color) {
51 function gearDisplayListFill(r, color) {
66 function strokeGear(ctx, gear) {
77 function fillGear(ctx) {
88 function draw3DGear(ctx, angle, gear) {
111 function draw3DGearAt(ctx, angle, gear) {
118 var onDraw = function() {
138 function draw(ctx)
    [all...]
  /external/v8/test/mjsunit/compiler/
compare.js 28 function MaxLT(x, y) {
33 function MaxLE(x, y) {
38 function MaxGE(x, y) {
43 function MaxGT(x, y) {
50 function TestPrimitive(max, x, y) {
77 function TestNonPrimitive(order, f) {
79 var x = { valueOf: function() { result += "x"; } };
80 var y = { valueOf: function() { result += "y"; } };
91 function CmpX(x) { if (x == x) return 42; }
94 function CmpXY(x) { var y = x; if (x == y) return 42;
    [all...]
inline-literals.js 32 function a2(b, c) {
36 function a1(a, b, c) {
40 function TestArrayLiteral(a, b, c) {
52 function o2(b, c) {
56 function o1(a, b, c) {
60 function TestObjectLiteral(a, b, c) {
72 function r2(s, x, y) {
76 function r1(s, x, y) {
80 function TestRegExpLiteral(s, x, y, expected) {
91 function f2(b, c)
    [all...]
simple-bailouts.js 28 function Test() {
41 Test.prototype.test0 = function () {
45 Test.prototype.test1 = function() {
49 Test.prototype.test2 = function() {
53 Test.prototype.test3 = function() {
57 Test.prototype.test4 = function() {
61 Test.prototype.test5 = function() {
65 Test.prototype.test6 = function() {
69 Test.prototype.test7 = function() {
75 Test.prototype.test8 = function () {
    [all...]
inline-accessors.js 35 function TestInlinedGetter(context, obj, expected) {
55 function value_context_for_getter(obj) {
59 function test_context_for_getter(obj) {
67 function effect_context_for_getter(obj) {
72 function TryGetter(context, getter, obj, expected, expectException) {
85 function TestGetterInAllContexts(getter, obj, expected, expectException) {
95 function getter1() {
102 function ConstrG1() { }
111 function getter2() {
118 function ConstrG2() {
    [all...]
  /external/v8/test/mjsunit/harmony/
debug-blockscopes.js 47 function listener(event, exec_state, event_data, data) {
64 function BeginTest(name) {
74 function EndTest() {
83 function CheckScopeChain(scopes, exec_state) {
125 // that there is a function.
126 function CheckScopeContent(content, number, exec_state) {
135 if (typeof(content[p]) === 'function') {
192 function local_block_1() {
198 listener_delegate = function(exec_state) {
210 function local_2(a)
    [all...]
dataview-accessors.js 44 function getElementSize(func) {
63 function checkGet(func, index, expected, littleEndian) {
64 function doGet() {
76 function checkSet(func, index, value, littleEndian) {
77 function doSet() {
92 function test(isTestingGet, func, index, value, littleEndian) {
99 function createDataView(
110 function runIntegerTestCases(isTestingGet, array, start, length) {
194 function testFloat(isTestingGet, func, array, start, expected) {
220 function runFloatTestCases(isTestingGet, start)
    [all...]

Completed in 927 milliseconds

<<21222324252627282930>>