Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: src/mips/builtins-mips.cc

Issue 1463803002: [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/js/promise.js ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 // a0: number of arguments 569 // a0: number of arguments
570 // a1: constructor function 570 // a1: constructor function
571 // a3: new target 571 // a3: new target
572 if (is_api_function) { 572 if (is_api_function) {
573 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); 573 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
574 Handle<Code> code = 574 Handle<Code> code =
575 masm->isolate()->builtins()->HandleApiCallConstruct(); 575 masm->isolate()->builtins()->HandleApiCallConstruct();
576 __ Call(code, RelocInfo::CODE_TARGET); 576 __ Call(code, RelocInfo::CODE_TARGET);
577 } else { 577 } else {
578 ParameterCount actual(a0); 578 ParameterCount actual(a0);
579 __ InvokeFunction(a1, a3, actual, CALL_FUNCTION, NullCallWrapper()); 579 __ InvokeFunction(a1, a3, actual, CALL_FUNCTION,
580 CheckDebugStepCallWrapper());
580 } 581 }
581 582
582 // Store offset of return address for deoptimizer. 583 // Store offset of return address for deoptimizer.
583 if (create_implicit_receiver && !is_api_function) { 584 if (create_implicit_receiver && !is_api_function) {
584 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); 585 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset());
585 } 586 }
586 587
587 // Restore context from the frame. 588 // Restore context from the frame.
588 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 589 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
589 590
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 // ----------- S t a t e ------------- 1694 // ----------- S t a t e -------------
1694 // -- a0 : the number of arguments (not including the receiver) 1695 // -- a0 : the number of arguments (not including the receiver)
1695 // -- a1 : the function to call (checked to be a JSFunction) 1696 // -- a1 : the function to call (checked to be a JSFunction)
1696 // -- a2 : the shared function info. 1697 // -- a2 : the shared function info.
1697 // -- cp : the function context. 1698 // -- cp : the function context.
1698 // ----------------------------------- 1699 // -----------------------------------
1699 1700
1700 __ lw(a2, 1701 __ lw(a2,
1701 FieldMemOperand(a2, SharedFunctionInfo::kFormalParameterCountOffset)); 1702 FieldMemOperand(a2, SharedFunctionInfo::kFormalParameterCountOffset));
1702 __ sra(a2, a2, kSmiTagSize); // Un-tag. 1703 __ sra(a2, a2, kSmiTagSize); // Un-tag.
1703 __ lw(t0, FieldMemOperand(a1, JSFunction::kCodeEntryOffset));
1704 ParameterCount actual(a0); 1704 ParameterCount actual(a0);
1705 ParameterCount expected(a2); 1705 ParameterCount expected(a2);
1706 __ InvokeCode(t0, no_reg, expected, actual, JUMP_FUNCTION, NullCallWrapper()); 1706 __ InvokeFunctionCode(a1, no_reg, expected, actual, JUMP_FUNCTION,
1707 CheckDebugStepCallWrapper());
1707 1708
1708 // The function is a "classConstructor", need to raise an exception. 1709 // The function is a "classConstructor", need to raise an exception.
1709 __ bind(&class_constructor); 1710 __ bind(&class_constructor);
1710 { 1711 {
1711 FrameScope frame(masm, StackFrame::INTERNAL); 1712 FrameScope frame(masm, StackFrame::INTERNAL);
1712 __ Push(a1); 1713 __ Push(a1);
1713 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1); 1714 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1);
1714 } 1715 }
1715 } 1716 }
1716 1717
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 } 2002 }
2002 } 2003 }
2003 2004
2004 2005
2005 #undef __ 2006 #undef __
2006 2007
2007 } // namespace internal 2008 } // namespace internal
2008 } // namespace v8 2009 } // namespace v8
2009 2010
2010 #endif // V8_TARGET_ARCH_MIPS 2011 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/js/promise.js ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698