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

Side by Side Diff: src/ic/ppc/handler-compiler-ppc.cc

Issue 1482153005: PPC: [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@patch08
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 | « no previous file | src/ppc/builtins-ppc.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ic/call-optimization.h" 7 #include "src/ic/call-optimization.h"
8 #include "src/ic/handler-compiler.h" 8 #include "src/ic/handler-compiler.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 22 matching lines...) Expand all
33 if (map->IsJSGlobalObjectMap()) { 33 if (map->IsJSGlobalObjectMap()) {
34 // Swap in the global receiver. 34 // Swap in the global receiver.
35 __ LoadP(scratch, 35 __ LoadP(scratch,
36 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 36 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
37 receiver = scratch; 37 receiver = scratch;
38 } 38 }
39 __ push(receiver); 39 __ push(receiver);
40 ParameterCount actual(0); 40 ParameterCount actual(0);
41 ParameterCount expected(expected_arguments); 41 ParameterCount expected(expected_arguments);
42 __ LoadAccessor(r4, holder, accessor_index, ACCESSOR_GETTER); 42 __ LoadAccessor(r4, holder, accessor_index, ACCESSOR_GETTER);
43 __ InvokeFunction(r4, expected, actual, CALL_FUNCTION, NullCallWrapper()); 43 __ InvokeFunction(r4, expected, actual, CALL_FUNCTION,
44 CheckDebugStepCallWrapper());
44 } else { 45 } else {
45 // If we generate a global code snippet for deoptimization only, remember 46 // If we generate a global code snippet for deoptimization only, remember
46 // the place to continue after deoptimization. 47 // the place to continue after deoptimization.
47 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); 48 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset());
48 } 49 }
49 50
50 // Restore context register. 51 // Restore context register.
51 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 52 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
52 } 53 }
53 __ Ret(); 54 __ Ret();
(...skipping 20 matching lines...) Expand all
74 if (map->IsJSGlobalObjectMap()) { 75 if (map->IsJSGlobalObjectMap()) {
75 // Swap in the global receiver. 76 // Swap in the global receiver.
76 __ LoadP(scratch, 77 __ LoadP(scratch,
77 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 78 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
78 receiver = scratch; 79 receiver = scratch;
79 } 80 }
80 __ Push(receiver, value()); 81 __ Push(receiver, value());
81 ParameterCount actual(1); 82 ParameterCount actual(1);
82 ParameterCount expected(expected_arguments); 83 ParameterCount expected(expected_arguments);
83 __ LoadAccessor(r4, holder, accessor_index, ACCESSOR_SETTER); 84 __ LoadAccessor(r4, holder, accessor_index, ACCESSOR_SETTER);
84 __ InvokeFunction(r4, expected, actual, CALL_FUNCTION, NullCallWrapper()); 85 __ InvokeFunction(r4, expected, actual, CALL_FUNCTION,
86 CheckDebugStepCallWrapper());
85 } else { 87 } else {
86 // If we generate a global code snippet for deoptimization only, remember 88 // If we generate a global code snippet for deoptimization only, remember
87 // the place to continue after deoptimization. 89 // the place to continue after deoptimization.
88 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset()); 90 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset());
89 } 91 }
90 92
91 // We have to return the passed value, not the return value of the setter. 93 // We have to return the passed value, not the return value of the setter.
92 __ pop(r3); 94 __ pop(r3);
93 95
94 // Restore context register. 96 // Restore context register.
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // Return the generated code. 790 // Return the generated code.
789 return GetCode(kind(), Code::NORMAL, name); 791 return GetCode(kind(), Code::NORMAL, name);
790 } 792 }
791 793
792 794
793 #undef __ 795 #undef __
794 } // namespace internal 796 } // namespace internal
795 } // namespace v8 797 } // namespace v8
796 798
797 #endif // V8_TARGET_ARCH_ARM 799 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698