Home | History | Annotate | Download | only in src

Lines Matching full:frame

555   return Heap::ToBoolean(it.frame()->IsConstructor());
3554 // Compute the frame holding the arguments.
3557 JavaScriptFrame* frame = it.frame();
3560 const uint32_t n = frame->GetProvidedParametersCount();
3563 // index return the the argument from the frame.
3566 return frame->GetParameter(index);
3580 return frame->GetParameter(index);
3588 if (key->Equals(Heap::callee_symbol())) return frame->function();
5404 JavaScriptFrame* frame = it.frame();
5405 if (frame->IsConstructor()) PrintF("new ");
5407 Object* fun = frame->function();
5417 PrintObject(frame->receiver());
5418 const int length = frame->GetProvidedParametersCount();
5421 PrintObject(frame->GetParameter(i));
5458 JavaScriptFrame* frame = it.frame();
5460 frame->fp(), frame->sp(), frame->caller_sp());
5617 JavaScriptFrame* frame = locator.FindJavaScriptFrame(0);
5618 ASSERT(Context::cast(frame->context()) == *context);
6243 // Helper functions for wrapping and unwrapping stack frame ids.
6531 // If there is no JavaScript stack frame count is 0.
6549 // Return an array with frame details
6551 // args[1]: number: frame index
6554 // 0: Frame id
6561 // 7: Debugger frame
6573 // Find the relevant frame with the requested index.
6588 // selected frame.
6590 while (save != NULL && !save->below(it.frame())) {
6595 // Get the frame id.
6596 Handle<Object> frame_id(WrapFrameId(it.frame()->id()));
6599 int position = it.frame()->code()->SourcePosition(it.frame()->pc());
6601 // Check for constructor frame.
6602 bool constructor = it.frame()->IsConstructor();
6605 Handle<Code> code(it.frame()->code());
6609 Handle<Context> context(Context::cast(it.frame()->context()));
6624 locals->set(i * 2 + 1, it.frame()->GetExpression(i));
6639 // Now advance to the arguments adapter frame (if any). If contains all
6642 // Now advance to the arguments adapter frame (if any). It contains all
6643 // the provided parameters whereas the function frame always have the number
6651 if (argument_count < it.frame()->GetProvidedParametersCount()) {
6652 argument_count = it.frame()->GetProvidedParametersCount();
6660 // Add the frame id.
6663 // Add the function (same as in function frame).
6664 details->set(kFrameDetailsFunctionIndex, it.frame()->function());
6683 // Add information on whether this frame is invoked in the debugger context.
6700 if (i < it.frame()->GetProvidedParametersCount()) {
6701 details->set(details_index++, it.frame()->GetParameter(i));
6707 // Add locals name and value from the temporary copy from the function frame.
6712 // Add the receiver (same as in function frame).
6714 // THE FRAME ITERATOR TO WRAP THE RECEIVER.
6715 Handle<Object> receiver(it.frame()->receiver());
6720 // by creating correct wrapper object based on the calling frame's
6724 Context::cast(Context::cast(it.frame()->context())->global_context()));
6759 // frame.
6760 static Handle<JSObject> MaterializeLocalScope(JavaScriptFrame* frame) {
6761 Handle<JSFunction> function(JSFunction::cast(frame->function()));
6773 Handle<Object>(frame->GetParameter(i)), NONE);
6780 Handle<Object>(frame->GetExpression(i)), NONE);
6784 Handle<Context> frame_context(Context::cast(frame->context()));
6857 // Iterate over the actual scopes visible from a stack frame. All scopes are
6874 explicit ScopeIterator(JavaScriptFrame* frame)
6875 : frame_(frame),
6876 function_(JSFunction::cast(frame->function())),
6877 context_(Context::cast(frame->context())),
7074 // Get the frame where the debugging is performed.
7077 JavaScriptFrame* frame = it.frame();
7081 for (ScopeIterator it(frame); !it.Done(); it.Next()) {
7095 // args[1]: number: frame index
7111 // Get the frame where the debugging is performed.
7114 JavaScriptFrame* frame = frame_it.frame();
7118 ScopeIterator it(frame);
7143 // Print the scopes for the top frame.
7145 JavaScriptFrame* frame = locator.FindJavaScriptFrame(0);
7146 for (ScopeIterator it(frame); !it.Done(); it.Next()) {
7182 // Get the stack walk text for this frame.
7537 static Handle<Object> GetArgumentsObject(JavaScriptFrame* frame,
7549 return Handle<Object>(frame->GetExpression(index));
7561 const int length = frame->GetProvidedParametersCount();
7568 array->set(i, frame->GetParameter(i), mode);
7575 // Evaluate a piece of JavaScript in the context of a stack frame for
7578 // stack frame. A function which calls eval with the code to evaluate is then
7580 // replaces the context of the function on the stack frame a new (empty)
7583 // stack frame presenting the same view of the values of parameters and
7585 // where the function on the stack frame is currently stopped.
7589 // Check the execution state and decode arguments frame and source to be
7601 // Get the frame where the debugging is performed.
7604 JavaScriptFrame* frame = it.frame();
7605 Handle<JSFunction> function(JSFunction::cast(frame->function()));
7610 // selected frame.
7612 while (save != NULL && !save->below(frame)) {
7619 // Create the (empty) function replacing the function on the stack frame for
7635 Handle<JSObject> local_scope = MaterializeLocalScope(frame);
7643 Handle<Context> frame_context(Context::cast(frame->context()));
7669 Handle<Object> receiver(frame->receiver());
7675 Handle<Object> arguments = GetArgumentsObject(frame, function, code, &sinfo,
7700 // Check the execution state and decode arguments frame and source to be
8090 // Determines whether the given stack frame should be displayed in
8101 JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame);
8102 Object* raw_fun = frame->function();
8114 return *seen_caller && !frame->receiver()->IsJSBuiltinsObject();
8139 StackFrame* raw_frame = iter.frame();
8142 JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame);
8143 Object* recv = frame->receiver();
8144 Object* fun = frame->function();
8145 Address pc = frame->pc();
8146 Address start = frame->code()->address();