Home | History | Annotate | Download | only in src

Lines Matching refs:function

91 // The helper function will 'flatten' Number objects.
401 // Get the function from where eval was called and find the source position
428 // Find the name of the function calling eval.
452 JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it);
454 while (!function->should_have_prototype()) {
456 function = FindInPrototypeChain<JSFunction>(object->GetPrototype(),
462 if (!function->has_prototype()) {
464 { MaybeObject* maybe_prototype = heap->AllocateFunctionPrototype(function);
468 { MaybeObject* maybe_result = function->SetPrototype(prototype);
472 return function->prototype();
481 JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it);
483 if (!function->should_have_prototype()) {
491 { MaybeObject* maybe_prototype = function->SetPrototype(value);
494 ASSERT(function->prototype() == value);
495 return function;
513 JSFunction* function = FindInPrototypeChain<JSFunction>(object, &found_it);
516 if (!function->shared()->is_compiled()) {
517 // If the function isn't compiled yet, the length is not computed
520 Handle<JSFunction> handle(function);
526 return Smi::FromInt(function->shared()->length());
595 Handle<JSFunction> function(holder, isolate);
597 if (function->shared()->native()) return isolate->heap()->null_value();
598 // Find the top invocation of the function by traversing frames.
604 // Skip all frames that aren't invocations of the given function.
605 if (functions[i] != *function) continue;
608 // The function in question was inlined. Inlined functions have the
610 function's
612 return ConstructArgumentsObjectForInlinedFunction(frame, function, i);
617 Handle<ScopeInfo> scope_info(function->shared()->scope_info());
628 // passed to the function.
636 function, length);
650 // No frame corresponding to the given function found. Return null.
698 // Iterate through functions until the first occurence of 'function'.
699 // Returns true if 'function' is found, and false if the iterator ends
701 bool Find(JSFunction* function) {
705 if (next_function == function) return true;
734 Handle<JSFunction> function(holder, isolate);
738 // Find the function from the frames.
739 if (!it.Find(*function)) {
740 // No frame corresponding to the given function found. Return null.
744 // Find previously called non-toplevel function.
751 // If caller is a built-in function and caller's caller is also built-in,
759 // allows us to make bound functions use the strict function map