Home | History | Annotate | Download | only in cctest

Lines Matching refs:Function

58 const char* PrintExtension::kSource = "native function print();";
242 "function foo() { var x = 87; return x; }\n"
244 "function bar() { var x; x = 99; return x; }\n"
246 "function baz() { var x = 1, y, z = 2; y = 3; return x + y + z; }\n"
248 "function Cons0() { this.x = 42; this.y = 87; }\n"
251 "function Cons2(x, y) { this.sum = x + y; }\n"
281 // Tests calling a builtin function from C/C++ code, and the builtin function
291 const char* source = "function foo(a) { gc(), print(a); }";
335 const char function_f[] = "function f() {}";
348 v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast(
358 v8::Local<v8::Function> fun =
359 v8::Local<v8::Function>::Cast(obj->Get(v8_str(property_name)));
369 if (f->code()->kind() == Code::FUNCTION) {
396 CompileRun("function f() { a = 12345678 }; f();");
398 CompileRun("function f(x) { a = 12345678 + x}; f(1);");
400 CompileRun("function f(x) { var arguments = 1; x += 12345678}; f(1);");
402 CompileRun("function f(x) { var arguments = 1; x = 12345678}; f(1);");