Lines Matching defs:function

316                                            Handle<JSFunction> function) {
317 if (!function->has_prototype()) {
324 Handle<JSObject> proto = isolate->factory()->NewFunctionPrototype(function);
325 JSFunction::SetPrototype(function, proto);
327 return Handle<Object>(function->prototype(), isolate);
335 Handle<JSFunction> function =
337 DCHECK(function->has_prototype_property());
338 Handle<Object> result = GetFunctionPrototype(isolate, function);
370 Handle<JSFunction> function =
372 int length = function->length();
390 Handle<JSFunction> function =
392 Handle<Object> result = JSFunction::GetName(isolate, function);
421 // Materialize the function.
423 Handle<JSFunction> function = Handle<JSFunction>::cast(iter->GetValue());
431 factory->NewArgumentsObject(function, argument_count);
451 int FindFunctionInFrame(JavaScriptFrame* frame, Handle<JSFunction> function) {
455 if (*frames[i - 1].AsJavaScript().function() == *function) {
468 // The function in question was inlined. Inlined functions have the
470 // we can construct a fresh one by interpreting the function's
476 // function.
478 Handle<JSFunction> function(frame->function(), isolate);
480 isolate->factory()->NewArgumentsObject(function, length);
490 DCHECK(IsResumableFunction(function->shared().kind()));
521 Handle<JSFunction> function =
524 if (!function->shared().native()) {
525 // Find the top invocation of the function by traversing frames.
528 int function_index = FindFunctionInFrame(frame, function);
548 JSFunction function) {
549 return current_context.HasSameSecurityTokenAs(function.context());
559 // Iterate through functions until the first occurrence of 'function'.
561 bool Find(Handle<JSFunction> function) {
564 } while (!function_.is_identical_to(function));
577 // Iterate through function until the first native or user-provided function
589 // In case of inlined frames the function could have been materialized from
591 // subsequent call will see the same function, since we are about to hand out
605 // First value is the function.
630 frames_[inlined_frame_index_].AsJavaScript().function();
652 Handle<JSFunction> function) {
654 if (function->shared().native()) {
657 // Find the function from the frames. Return null in case no frame
658 // corresponding to the given function was found.
659 if (!it.Find(function)) {
662 // Find previously called non-toplevel function.
666 // Find the first user-land JavaScript function (or the entry point into
672 // Materialize the function that the iterator is currently sitting on. Note
673 // that this might trigger deoptimization in case the function was actually
674 // materialized. Identity of the function must be preserved because we are
678 // Censor if the caller is not a sloppy mode function.
696 Handle<JSFunction> function =
700 maybe_caller = FindCaller(isolate, function);
725 Handle<JSBoundFunction> function =
729 if (!JSBoundFunction::GetLength(isolate, function).To(&length)) {
751 Handle<JSBoundFunction> function =
754 if (!JSBoundFunction::GetName(isolate, function).ToHandle(&result)) {
775 Handle<JSWrappedFunction> function =
779 if (!JSWrappedFunction::GetLength(isolate, function).To(&length)) {
802 Handle<JSWrappedFunction> function =
805 if (!JSWrappedFunction::GetName(isolate, function).ToHandle(&result)) {