Lines Matching refs:function
31 // We specify max-opt-count because we opt/deopt the same function many
35 // a function in a gc in the stack guard at the beginning of the (optimized)
36 // function due to leftover map clearing work that results in deoptimizing
43 assertTrue = function(val) {
49 assertFalse = function(val) {
55 assertEquals = function(expected, val) {
61 empty_func = function(name) { }
69 optimize = function(name) {
72 clearFunctionTypeFeedback = function(name) {
75 deoptimizeFunction = function(name) {
80 function base_getter_test(create_func) {
84 foo = function(a) { var x = a[0]; return x + 3; }
87 ap.__defineGetter__(0, function() { calls++; return 0; });
155 bar = function(a) { return a[3] + 600; }
164 ap2.__defineGetter__(3, function() { calls++; return 0; });
171 create_func_smi = function() { return [,,,,,,5]; }
172 create_func_double = function() { return [,,,,,,5.5]; }
173 create_func_fast = function() { return [,,,,,,true]; }
185 // cause the function to deoptimize.
188 fun = function(a) { return a[0] + 5.5; }
218 ap.__defineGetter__(0, function() { calls++; return 0; });