Home | History | Annotate | Download | only in runtime

Lines Matching defs:function

40 // Adds a JavaScript function as a debug event listener.
41 // args[0]: debug event listener function to set or null or undefined for
42 // clearing the event listener function
156 Handle<JSBoundFunction> function = Handle<JSBoundFunction>::cast(object);
162 result->set(1, function->bound_target_function());
167 result->set(3, function->bound_this());
173 factory->CopyFixedArray(handle(function->bound_arguments(), isolate));
204 Handle<String> function =
206 result->set(2, *function);
207 result->set(3, generator->function());
276 // 3: Getter function if defined
277 // 4: Setter function if defined
452 if (frames[i].function()->shared()->IsSubjectToDebugging()) n++;
478 // 2: Function
505 // Inlined frame index in optimized frame, starting from outer function.
529 Handle<JSFunction> function(JSFunction::cast(frame_inspector.GetFunction()));
530 RUNTIME_ASSERT(function->shared()->IsSubjectToDebugging());
531 Handle<SharedFunctionInfo> shared(function->shared());
614 // the provided parameters whereas the function frame always have the number
623 // parameters for the function and fill more if more parameters are provided.
637 // Add the function (same as in function frame).
694 // Add locals name and value from the temporary copy from the function frame.
704 // Add the receiver (same as in function frame).
706 DCHECK(!function->shared()->IsBuiltin());
708 // If the receiver is not a JSObject and the function is not a builtin or
712 // on the function's native context.
715 receiver = handle(function->global_proxy());
717 Context* context = function->context();
757 // Returns the list of step-in positions (text offset) in a function of the
877 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0);
881 if (function->IsJSFunction()) {
882 for (ScopeIterator it(isolate, Handle<JSFunction>::cast(function));
931 // args[0]: number or JsFunction: break id or function
1104 // Set a break point in a function.
1105 // args[0]: function
1106 // args[1]: number: break source position (within the function source)
1112 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
1114 RUNTIME_ASSERT(source_position >= function->shared()->start_position() &&
1115 source_position <= function->shared()->end_position());
1120 function, break_point_object_arg, &source_position));
1188 // function will default to affecting caught exceptions.
1346 // args[1]: constructor function for instances to exclude (Mirror)
1361 // Get the constructor function for context extension and arguments array.
1402 function.
1486 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0);
1488 if (function->IsJSBoundFunction()) {
1489 return Handle<JSBoundFunction>::cast(function)->name();
1492 JSFunction::GetDebugName(Handle<JSFunction>::cast(function));
1504 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
1507 Handle<Code> code(function->code(), isolate);
1509 if (code->kind() != Code::FUNCTION &&
1535 // Calls specified function with or without entering the debugger.
1541 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
1552 Execution::Call(isolate, function, handle(function->global_proxy()), 0,
1599 // heap traversal to find the function generated for the source position
1628 // Set one shot breakpoints for the callback function that is passed to a
1629 // built-in function such as Array.forEach to enable stepping into the callback,
1641 Handle<JSGeneratorObject>::cast(object)->function(), isolate);
1653 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 1);
1654 isolate->PushPromise(promise, function);