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

Side by Side Diff: src/ic/mips64/handler-compiler-mips64.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/ic/mips/handler-compiler-mips.cc ('k') | src/ic/x64/handler-compiler-x64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 __ ld(scratch, 35 __ ld(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(a1, holder, accessor_index, ACCESSOR_GETTER); 42 __ LoadAccessor(a1, holder, accessor_index, ACCESSOR_GETTER);
43 __ InvokeFunction(a1, expected, actual, CALL_FUNCTION, 43 __ InvokeFunction(a1, expected, actual, CALL_FUNCTION, NullCallWrapper());
44 CheckDebugStepCallWrapper());
45 } else { 44 } else {
46 // If we generate a global code snippet for deoptimization only, remember 45 // If we generate a global code snippet for deoptimization only, remember
47 // the place to continue after deoptimization. 46 // the place to continue after deoptimization.
48 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); 47 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset());
49 } 48 }
50 49
51 // Restore context register. 50 // Restore context register.
52 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 51 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
53 } 52 }
54 __ Ret(); 53 __ Ret();
(...skipping 20 matching lines...) Expand all
75 if (map->IsJSGlobalObjectMap()) { 74 if (map->IsJSGlobalObjectMap()) {
76 // Swap in the global receiver. 75 // Swap in the global receiver.
77 __ ld(scratch, 76 __ ld(scratch,
78 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 77 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
79 receiver = scratch; 78 receiver = scratch;
80 } 79 }
81 __ Push(receiver, value()); 80 __ Push(receiver, value());
82 ParameterCount actual(1); 81 ParameterCount actual(1);
83 ParameterCount expected(expected_arguments); 82 ParameterCount expected(expected_arguments);
84 __ LoadAccessor(a1, holder, accessor_index, ACCESSOR_SETTER); 83 __ LoadAccessor(a1, holder, accessor_index, ACCESSOR_SETTER);
85 __ InvokeFunction(a1, expected, actual, CALL_FUNCTION, 84 __ InvokeFunction(a1, expected, actual, CALL_FUNCTION, NullCallWrapper());
86 CheckDebugStepCallWrapper());
87 } else { 85 } else {
88 // If we generate a global code snippet for deoptimization only, remember 86 // If we generate a global code snippet for deoptimization only, remember
89 // the place to continue after deoptimization. 87 // the place to continue after deoptimization.
90 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset()); 88 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset());
91 } 89 }
92 90
93 // We have to return the passed value, not the return value of the setter. 91 // We have to return the passed value, not the return value of the setter.
94 __ pop(v0); 92 __ pop(v0);
95 93
96 // Restore context register. 94 // Restore context register.
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // Return the generated code. 782 // Return the generated code.
785 return GetCode(kind(), Code::NORMAL, name); 783 return GetCode(kind(), Code::NORMAL, name);
786 } 784 }
787 785
788 786
789 #undef __ 787 #undef __
790 } // namespace internal 788 } // namespace internal
791 } // namespace v8 789 } // namespace v8
792 790
793 #endif // V8_TARGET_ARCH_MIPS64 791 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698