Home | History | Annotate | Download | only in cctest

Lines Matching refs:Function

102   v8::Local<v8::Function> fun =
103 v8::Local<v8::Function>::Cast(obj->Get(v8_str(property_name)));
114 // Test lazy deoptimization of a simple function.
119 "function h() { %DeoptimizeFunction(f); }"
120 "function g() { count++; h(); }"
121 "function f() { g(); };"
130 // Test lazy deoptimization of a simple function. Call the function after the
136 "function g() { count++; %DeoptimizeFunction(f); f(false); }"
137 "function f(x) { if (x) { g(); } else { return } };"
154 // Test lazy deoptimization of a simple function with some arguments.
159 "function h(x) { %DeoptimizeFunction(f); }"
160 "function g(x, y) { count++; h(x); }"
161 "function f(x, y, z) { g(1,x); y+z; };"
170 // Test lazy deoptimization of a simple function with some arguments. Call the
171 // function after the deoptimization while it is still activated further down
177 "function g(x, y) { count++; %DeoptimizeFunction(f); f(false, 1, y); }"
178 "function f(x, y, z) { if (x) { g(x, y); } else { return y + z; } };"
195 // Test lazy deoptimization of a simple function. Have a nested function call
202 "function h(x, y, z) { return x + y + z; }"
203 "function g(z) { count++; %DeoptimizeFunction(f); return z;}"
204 "function f(x,y,z) { return h(x, y, g(z)); };"
223 // Test lazy deoptimization of a simple function called recursively. Call
224 // the function recursively a number of times before deoptimizing it.
229 "function g() { count++; %DeoptimizeFunction(f); }"
230 "function f(x) { calls++; if (x > 0) { f(x - 1); } else { g(); } };"
238 v8::Local<v8::Function> fun =
239 v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f")));
255 "function g() { count++;"
260 "function f4(x) { g(); };"
261 "function f3(x, y, z) { f4(); return x + y + z; };"
262 "function f2(x, y) { return x + f3(y + 1, y + 1, y + 1) + y; };"
263 "function f1(x) { return f2(x + 1, x + 1) + x; };"
284 "function g() { count++;"
286 "function f() { g(); };"
300 "function g() { count++;"
302 "function f(x, y) { this.x = x; g(); this.y = y; };"
325 "function g() { count++;"
330 "function f4(x) { this.result = x; g(); };"
331 "function f3(x, y, z) { this.result = new f4(x + y + z).result; };"
332 "function f2(x, y) {"
334 "function f1(x) { this.result = new f2(x + 1, x + 1).result + x; };"
351 const char* f_source = "function f(x, y) { return x + y; };";
355 // Compile function f and collect to type feedback to insert binary op stub
361 "function X() { };"
362 "X.prototype.toString = function () {"
397 "function X() { };"
398 "X.prototype.valueOf = function () {"
408 "function f(x, y) { return x %s y; };",
413 // Compile function f and collect to type feedback to insert binary op stub
514 const char* f_source = "function f(x, y) { return x < y; };";
518 // Compile function f and collect to type feedback to insert compare ic
524 "function X() { };"
525 "X.prototype.toString = function () {"
560 const char* f1_source = "function f1(x) { return x.y; };";
561 const char* g1_source = "function g1(x) { x.y = 1; };";
562 const char* f2_source = "function f2(x, y) { return x[y]; };";
563 const char* g2_source = "function g2(x, y) { x[y] = 1; };";
573 "function X() { };"
574 "X.prototype.__defineGetter__('y', function () {"
578 "X.prototype.__defineSetter__('y', function () {"
581 "X.prototype.__defineGetter__('z', function () {"
585 "X.prototype.__defineSetter__('z', function () {"
642 const char* f1_source = "function f1(x) { return x.y; };";
643 const char* g1_source = "function g1(x) { x.y = 1; };";
644 const char* f2_source = "function f2(x, y) { return x[y]; };";
645 const char* g2_source = "function g2(x, y) { x[y] = 1; };";
655 "function X() { };"
656 "X.prototype.__defineGetter__('y', function () {"
660 "X.prototype.__defineSetter__('y', function () {"
663 "X.prototype.__defineGetter__('z', function () {"
666 "X.prototype.__defineSetter__('z', function () {"