Searched defs:fun (Results 1 - 25 of 112) sorted by last modified time

12345

/external/v8/src/
H A Dapi.cc1576 i::Handle<i::JSFunction> fun; local
1580 fun = isolate->factory()->NewFunctionFromSharedFunctionInfo(
1583 fun = i::Handle<i::JSFunction>(i::JSFunction::cast(*obj), isolate);
1589 i::Execution::Call(fun, receiver, 0, NULL, &has_pending_exception);
1822 i::Handle<i::JSFunction> fun = local
1825 i::Execution::Call(fun, recv, argc, argv, has_pending_exception);
3517 i::Handle<i::JSFunction> fun = i::Handle<i::JSFunction>(); local
3519 fun = i::Handle<i::JSFunction>::cast(obj);
3525 fun = i::Handle<i::JSFunction>::cast(delegate);
3530 i::Execution::Call(fun, recv_ob
3548 i::Handle<i::JSFunction> fun = i::Handle<i::JSFunction>::cast(obj); local
3561 i::Handle<i::JSFunction> fun = i::Handle<i::JSFunction>::cast(delegate); local
3606 i::Handle<i::JSFunction> fun = Utils::OpenHandle(this); local
5701 Call(v8::Handle<v8::Function> fun, v8::Handle<v8::Value> data) argument
5735 i::Handle<i::JSFunction> fun = i::Handle<i::JSFunction>::cast(fun_obj); local
[all...]
H A Dapinatives.js75 var fun = %CreateApiFunction(data);
76 if (name) %FunctionSetName(fun, name);
77 cache[serialNumber] = fun;
82 fun.prototype = typeof prototype === 'undefined' ?
85 %FunctionSetReadOnlyPrototype(fun);
87 %SetProperty(fun.prototype, "constructor", fun, DONT_ENUM);
93 fun.prototype.__proto__ = parent_fun.prototype;
95 ConfigureTemplateInstance(fun, data);
79 fun.prototype = typeof prototype === 'undefined' ? class
H A Dassembler.cc734 ApiFunction* fun,
737 : address_(Redirect(isolate, fun->address(), type)) {}
733 ExternalReference( ApiFunction* fun, Type type = ExternalReference::BUILTIN_CALL, Isolate* isolate = NULL) argument
H A Dast.h501 FunctionLiteral* fun() const { return fun_; } function in class:v8::internal::FunctionDeclaration
512 FunctionLiteral* fun,
515 fun_(fun) {
518 ASSERT(fun != NULL);
2653 FunctionLiteral* fun,
2656 new(zone_) FunctionDeclaration(proxy, mode, fun, scope);
2969 ThisFunction* fun = new(zone_) ThisFunction(isolate_); local
2970 VISIT_AND_RETURN(ThisFunction, fun)
510 FunctionDeclaration(VariableProxy* proxy, VariableMode mode, FunctionLiteral* fun, Scope* scope) argument
2651 NewFunctionDeclaration(VariableProxy* proxy, VariableMode mode, FunctionLiteral* fun, Scope* scope) argument
H A Dbootstrapper.cc1361 Handle<JSFunction> fun = local
1371 Execution::Call(fun, receiver, 0, NULL, &has_pending_exception);
2177 Handle<JSFunction> fun = local
2181 to, key, fun, details.attributes()));
H A Dd8-debug.cc92 Local<Function> fun = Function::Cast(*exec_state->Get(fun_name)); local
94 Object::Cast(*fun->Call(exec_state, 0, NULL));
128 Handle<Function> fun; local
137 fun = Handle<Function>::Cast(cmd_processor->Get(fun_name));
139 Handle<Value> response_val = fun->Call(cmd_processor, kArgc, args);
H A Dd8.cc586 Handle<Value> fun = global->Get(String::New("GetCompletions")); local
589 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
598 Handle<Value> fun = global->Get(String::New("DebugMessageDetails")); local
601 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
609 Handle<Value> fun = global->Get(String::New("DebugCommandToJSONRequest")); local
612 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
H A Ddebug.cc1463 Object* fun = frame->GetExpression( local
1465 if (fun->IsJSFunction()) {
1466 Handle<JSFunction> js_function(JSFunction::cast(fun));
2250 Handle<Object> fun(Isolate::Current()->global()->GetPropertyNoExceptionThrown(
2252 ASSERT(fun->IsJSFunction());
2254 Execution::TryCall(Handle<JSFunction>::cast(fun),
2754 Handle<JSFunction> fun(Handle<JSFunction>::cast(event_listener_));
2762 Execution::TryCall(fun,
2860 v8::Local<v8::Function> fun = local
2867 cmd_processor = v8::Object::Cast(*fun
2903 v8::Local<v8::Function> fun; local
3118 Call(Handle<JSFunction> fun, Handle<Object> data, bool* pending_exception) argument
3370 Handle<Object> fun = GetProperty(event_data_, "toJSONProtocol"); local
[all...]
H A Dexecution.cc232 Object* fun = *object; local
233 while (fun->IsJSFunctionProxy()) {
234 fun = JSFunctionProxy::cast(fun)->call_trap();
236 if (fun->IsJSFunction()) return Handle<Object>(fun);
240 if (fun->IsHeapObject() &&
241 HeapObject::cast(fun)->map()->has_instance_call_handler()) {
256 Object* fun = *object; local
257 while (fun
289 Object* fun = *object; local
317 Object* fun = *object; local
765 GetStackTraceLine(Handle<Object> recv, Handle<JSFunction> fun, Handle<Object> pos, Handle<Object> is_global) argument
837 Object* fun = it.frame()->function(); local
[all...]
H A Dfactory.cc680 Handle<JSFunction> fun = Handle<JSFunction>::cast(fun_obj);
687 Handle<Object> result = Execution::TryCall(fun,
704 Handle<JSFunction> fun = Handle<JSFunction>( local
712 Handle<Object> result = Execution::TryCall(fun,
1132 Handle<JSFunction> fun = NewFunctionHelper(name, prototype); local
1133 fun->set_context(isolate()->context()->global_context());
1134 return fun;
1157 Handle<JSFunction> fun = local
1159 fun->set_context(isolate()->context()->global_context());
1160 return fun;
[all...]
H A Dframes.cc754 JSFunction* fun = JSFunction::cast(maybe_fun); local
755 fun->PrintName();
761 SharedFunctionInfo* shared = fun->shared();
H A Dfull-codegen.cc602 Compiler::BuildFunctionInfo(fun_decl->fun(), script());
627 EmitDeclaration(decl->proxy(), decl->mode(), decl->fun());
674 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { argument
675 CodeGenerator::RecordPositions(masm_, fun->start_position());
679 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { argument
680 CodeGenerator::RecordPositions(masm_, fun->end_position() - 1);
H A Dheap.cc3665 MaybeObject* Heap::AllocateInitialMap(JSFunction* fun) { argument
3666 ASSERT(!fun->has_initial_map());
3670 int instance_size = fun->shared()->CalculateInstanceSize();
3671 int in_object_properties = fun->shared()->CalculateInObjectProperties();
3679 if (fun->has_instance_prototype()) {
3680 prototype = fun->instance_prototype();
3682 { MaybeObject* maybe_prototype = AllocateFunctionPrototype(fun);
3698 if (fun->shared()->CanGenerateInlineConstructor(prototype)) {
3699 int count = fun->shared()->this_property_assignments_count();
3702 fun
[all...]
H A Disolate.cc572 Handle<JSFunction> fun = frames[i].function(); local
573 Handle<Script> script(Script::cast(fun->shared()->script()));
631 Handle<Object> fun_name(fun->shared()->name(), this);
633 fun_name = Handle<Object>(fun->shared()->inferred_name(), this);
971 Handle<JSFunction> fun(JSFunction::cast(frame->function()));
981 Execution::GetStackTraceLine(recv, fun, pos_obj, is_top_level);
995 JSFunction* fun = JSFunction::cast(frame->function()); local
996 Object* script = fun->shared()->script();
H A Dliveedit.cc797 void FunctionStarted(FunctionLiteral* fun) { argument
800 info.SetInitialProperties(fun->name(), fun->start_position(),
801 fun->end_position(), fun->parameter_count(),
1711 FunctionLiteral* fun)
1714 isolate_->active_function_info_listener()->FunctionStarted(fun);
1749 FunctionLiteral* fun) {
1710 LiveEditFunctionTracker(Isolate* isolate, FunctionLiteral* fun) argument
H A Dmessages.cc146 Handle<JSFunction> fun = local
155 Execution::TryCall(fun,
H A Dparser.cc1907 Handle<JSFunction> fun = Utils::OpenHandle(*fun_template->GetFunction()); local
1908 const int literals = fun->NumberOfLiterals();
1909 Handle<Code> code = Handle<Code>(fun->shared()->code());
1910 Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub());
1913 Handle<ScopeInfo>(fun->shared()->scope_info()));
1917 shared->set_function_data(fun->shared()->function_data());
1918 int parameters = fun->shared()->formal_parameter_count();
1944 FunctionLiteral* fun = ParseFunctionLiteral(name, local
1955 factory()->NewFunctionDeclaration(proxy, mode, fun, top_scope_);
H A Druntime.cc2011 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
2012 Handle<Object> script = Handle<Object>(fun->shared()->script(), isolate);
2033 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
2034 int pos = fun->shared()->start_position();
2056 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
2058 fun->SetInstanceClassName(name);
2067 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
2069 fun->shared()->set_length(length);
2078 CONVERT_ARG_CHECKED(JSFunction, fun, 0);
2079 ASSERT(fun
2173 Handle<JSFunction> fun = Handle<JSFunction>::cast(code); local
[all...]
H A Dstring-stream.cc462 JSFunction* fun = JSFunction::cast(f); local
463 Object* perhaps_context = fun->unchecked_context();
467 Context* context = fun->context();
489 JSFunction* fun = JSFunction::cast(f); local
491 PrintPrototype(fun, receiver);
492 *code = fun->code();
530 void StringStream::PrintPrototype(JSFunction* fun, Object* receiver) { argument
531 Object* name = fun->shared()->name();
536 Object* key = JSObject::cast(p)->SlowReverseLookup(fun);
557 PrintName(fun
[all...]
H A Dstub-cache.cc944 v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); local
945 ASSERT(fun != NULL);
953 result = fun(v8::Utils::ToLocal(args.at<String>(4)), info);
965 v8::AccessorSetter fun = FUNCTION_CAST<v8::AccessorSetter>(setter_address); local
966 ASSERT(fun != NULL);
977 fun(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), info);
/external/v8/src/ia32/
H A Dlithium-codegen-ia32.cc477 void LCodeGen::CallRuntime(const Runtime::Function* fun, argument
485 __ CallRuntime(fun, argc);
H A Dmacro-assembler-ia32.cc2051 void MacroAssembler::InvokeFunction(Register fun, argument
2059 ASSERT(fun.is(edi));
/external/v8/test/cctest/
H A Dtest-accessors.cc59 Local<Function> fun = fun_templ->GetFunction(); local
60 env->Global()->Set(v8_str("Fun"), fun);
H A Dtest-api.cc168 v8::Handle<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(); local
169 v8::Handle<v8::Signature> sig = v8::Signature::New(fun);
170 fun->PrototypeTemplate()->Set(
175 env->Global()->Set(v8_str("Fun"), fun->GetFunction());
182 sub_fun->Inherit(fun);
198 sub_fun->Inherit(fun);
216 v8::Handle<v8::FunctionTemplate> fun = local
219 env->Global()->Set(v8_str("Fun1"), fun->GetFunction());
792 Local<Function> fun = fun_templ->GetFunction(); local
793 env->Global()->Set(v8_str("obj"), fun);
802 Local<Function> fun = fun_templ->GetFunction(); local
813 Local<Function> fun = fun_templ->GetFunction(); local
1208 Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(); local
2533 const char* fun = "f()"; local
3141 Local<Value> fun = global->Get(v8_str("JSThrowCountDown")); local
3240 Local<Function> fun = local
6145 Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(TroubleCallback); local
6184 Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(TroubleCallback); local
8263 v8::Handle<v8::Value> fun = local
9482 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9509 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9539 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9575 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9611 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9650 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9686 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9710 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9737 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
9769 v8::Handle<v8::Function> fun = fun_templ->GetFunction(); local
10599 Local<Function> fun = fun_templ->GetFunction(); local
10621 Local<Function> fun = fun_templ->GetFunction(); local
10658 Local<Function> fun = fun_templ->GetFunction(); local
10672 Local<Function> fun = fun_templ->GetFunction(); local
14056 Local<Function> fun = fun_templ->GetFunction(); local
14081 Local<Function> fun = fun_templ->GetFunction(); local
[all...]
H A Dtest-compiler.cc137 Handle<JSFunction> fun = Compile(buffer.start()); local
138 if (fun.is_null()) return -1;
142 Execution::Call(fun, global, 0, NULL, &has_pending_exception);
156 Handle<JSFunction> fun = Compile("result = x + y;"); local
157 if (fun.is_null()) return -1;
163 Execution::Call(fun, global, 0, NULL, &has_pending_exception);
177 Handle<JSFunction> fun = Compile("if (x < 0) result = -x; else result = x;"); local
178 if (fun.is_null()) return -1;
183 Execution::Call(fun, global, 0, NULL, &has_pending_exception);
197 Handle<JSFunction> fun local
221 Handle<JSFunction> fun = Compile(source); local
254 Handle<JSFunction> fun = Compile(source); local
269 Handle<JSFunction> fun = Compile(source); local
358 v8::Local<v8::Function> fun = local
[all...]

Completed in 401 milliseconds

12345