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

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

Issue 1474943005: Revert of [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 CheckDebugStepCallWrapper()); 582 NullCallWrapper());
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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 1664
1665 // ----------- S t a t e ------------- 1665 // ----------- S t a t e -------------
1666 // -- x0 : the number of arguments (not including the receiver) 1666 // -- x0 : the number of arguments (not including the receiver)
1667 // -- x1 : the function to call (checked to be a JSFunction) 1667 // -- x1 : the function to call (checked to be a JSFunction)
1668 // -- x2 : the shared function info. 1668 // -- x2 : the shared function info.
1669 // -- cp : the function context. 1669 // -- cp : the function context.
1670 // ----------------------------------- 1670 // -----------------------------------
1671 1671
1672 __ Ldrsw( 1672 __ Ldrsw(
1673 x2, FieldMemOperand(x2, SharedFunctionInfo::kFormalParameterCountOffset)); 1673 x2, FieldMemOperand(x2, SharedFunctionInfo::kFormalParameterCountOffset));
1674 __ Ldr(x4, FieldMemOperand(x1, JSFunction::kCodeEntryOffset));
1674 ParameterCount actual(x0); 1675 ParameterCount actual(x0);
1675 ParameterCount expected(x2); 1676 ParameterCount expected(x2);
1676 __ InvokeFunctionCode(x1, no_reg, expected, actual, JUMP_FUNCTION, 1677 __ InvokeCode(x4, no_reg, expected, actual, JUMP_FUNCTION, NullCallWrapper());
1677 CheckDebugStepCallWrapper());
1678 1678
1679 // The function is a "classConstructor", need to raise an exception. 1679 // The function is a "classConstructor", need to raise an exception.
1680 __ bind(&class_constructor); 1680 __ bind(&class_constructor);
1681 { 1681 {
1682 FrameScope frame(masm, StackFrame::INTERNAL); 1682 FrameScope frame(masm, StackFrame::INTERNAL);
1683 __ Push(x1); 1683 __ Push(x1);
1684 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1); 1684 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1);
1685 } 1685 }
1686 } 1686 }
1687 1687
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2052 } 2052 }
2053 } 2053 }
2054 2054
2055 2055
2056 #undef __ 2056 #undef __
2057 2057
2058 } // namespace internal 2058 } // namespace internal
2059 } // namespace v8 2059 } // namespace v8
2060 2060
2061 #endif // V8_TARGET_ARCH_ARM 2061 #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