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

Side by Side Diff: src/arm64/builtins-arm64.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/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 // x1: constructor function 572 // x1: constructor function
573 // x3: new target 573 // x3: new target
574 if (is_api_function) { 574 if (is_api_function) {
575 __ Ldr(cp, FieldMemOperand(constructor, JSFunction::kContextOffset)); 575 __ Ldr(cp, FieldMemOperand(constructor, JSFunction::kContextOffset));
576 Handle<Code> code = 576 Handle<Code> code =
577 masm->isolate()->builtins()->HandleApiCallConstruct(); 577 masm->isolate()->builtins()->HandleApiCallConstruct();
578 __ Call(code, RelocInfo::CODE_TARGET); 578 __ Call(code, RelocInfo::CODE_TARGET);
579 } else { 579 } else {
580 ParameterCount actual(argc); 580 ParameterCount actual(argc);
581 __ InvokeFunction(constructor, new_target, actual, CALL_FUNCTION, 581 __ InvokeFunction(constructor, new_target, actual, CALL_FUNCTION,
582 NullCallWrapper()); 582 CheckDebugStepCallWrapper());
583 } 583 }
584 584
585 // Store offset of return address for deoptimizer. 585 // Store offset of return address for deoptimizer.
586 if (create_implicit_receiver && !is_api_function) { 586 if (create_implicit_receiver && !is_api_function) {
587 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); 587 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset());
588 } 588 }
589 589
590 // Restore the context from the frame. 590 // Restore the context from the frame.
591 // x0: result 591 // x0: result
592 // jssp[0]: receiver 592 // jssp[0]: receiver
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 1667
1668 // ----------- S t a t e ------------- 1668 // ----------- S t a t e -------------
1669 // -- x0 : the number of arguments (not including the receiver) 1669 // -- x0 : the number of arguments (not including the receiver)
1670 // -- x1 : the function to call (checked to be a JSFunction) 1670 // -- x1 : the function to call (checked to be a JSFunction)
1671 // -- x2 : the shared function info. 1671 // -- x2 : the shared function info.
1672 // -- cp : the function context. 1672 // -- cp : the function context.
1673 // ----------------------------------- 1673 // -----------------------------------
1674 1674
1675 __ Ldrsw( 1675 __ Ldrsw(
1676 x2, FieldMemOperand(x2, SharedFunctionInfo::kFormalParameterCountOffset)); 1676 x2, FieldMemOperand(x2, SharedFunctionInfo::kFormalParameterCountOffset));
1677 __ Ldr(x4, FieldMemOperand(x1, JSFunction::kCodeEntryOffset));
1678 ParameterCount actual(x0); 1677 ParameterCount actual(x0);
1679 ParameterCount expected(x2); 1678 ParameterCount expected(x2);
1680 __ InvokeCode(x4, no_reg, expected, actual, JUMP_FUNCTION, NullCallWrapper()); 1679 __ InvokeFunctionCode(x1, no_reg, expected, actual, JUMP_FUNCTION,
1680 CheckDebugStepCallWrapper());
1681 1681
1682 // The function is a "classConstructor", need to raise an exception. 1682 // The function is a "classConstructor", need to raise an exception.
1683 __ bind(&class_constructor); 1683 __ bind(&class_constructor);
1684 { 1684 {
1685 FrameScope frame(masm, StackFrame::INTERNAL); 1685 FrameScope frame(masm, StackFrame::INTERNAL);
1686 __ Push(x1); 1686 __ Push(x1);
1687 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1); 1687 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1);
1688 } 1688 }
1689 } 1689 }
1690 1690
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 } 2055 }
2056 } 2056 }
2057 2057
2058 2058
2059 #undef __ 2059 #undef __
2060 2060
2061 } // namespace internal 2061 } // namespace internal
2062 } // namespace v8 2062 } // namespace v8
2063 2063
2064 #endif // V8_TARGET_ARCH_ARM 2064 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698