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

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

Issue 1474993004: X87: [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 | « no previous file | src/x87/builtins-x87.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 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_X87 5 #if V8_TARGET_ARCH_X87
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 18 matching lines...) Expand all
29 // Swap in the global receiver. 29 // Swap in the global receiver.
30 __ mov(scratch, 30 __ mov(scratch,
31 FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 31 FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
32 receiver = scratch; 32 receiver = scratch;
33 } 33 }
34 __ push(receiver); 34 __ push(receiver);
35 ParameterCount actual(0); 35 ParameterCount actual(0);
36 ParameterCount expected(expected_arguments); 36 ParameterCount expected(expected_arguments);
37 __ LoadAccessor(edi, holder, accessor_index, ACCESSOR_GETTER); 37 __ LoadAccessor(edi, holder, accessor_index, ACCESSOR_GETTER);
38 __ InvokeFunction(edi, expected, actual, CALL_FUNCTION, 38 __ InvokeFunction(edi, expected, actual, CALL_FUNCTION,
39 NullCallWrapper()); 39 CheckDebugStepCallWrapper());
40 } else { 40 } else {
41 // If we generate a global code snippet for deoptimization only, remember 41 // If we generate a global code snippet for deoptimization only, remember
42 // the place to continue after deoptimization. 42 // the place to continue after deoptimization.
43 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); 43 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset());
44 } 44 }
45 45
46 // Restore context register. 46 // Restore context register.
47 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 47 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
48 } 48 }
49 __ ret(0); 49 __ ret(0);
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 __ mov(scratch, 260 __ mov(scratch,
261 FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 261 FieldOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
262 receiver = scratch; 262 receiver = scratch;
263 } 263 }
264 __ push(receiver); 264 __ push(receiver);
265 __ push(value()); 265 __ push(value());
266 ParameterCount actual(1); 266 ParameterCount actual(1);
267 ParameterCount expected(expected_arguments); 267 ParameterCount expected(expected_arguments);
268 __ LoadAccessor(edi, holder, accessor_index, ACCESSOR_SETTER); 268 __ LoadAccessor(edi, holder, accessor_index, ACCESSOR_SETTER);
269 __ InvokeFunction(edi, expected, actual, CALL_FUNCTION, 269 __ InvokeFunction(edi, expected, actual, CALL_FUNCTION,
270 NullCallWrapper()); 270 CheckDebugStepCallWrapper());
271 } else { 271 } else {
272 // If we generate a global code snippet for deoptimization only, remember 272 // If we generate a global code snippet for deoptimization only, remember
273 // the place to continue after deoptimization. 273 // the place to continue after deoptimization.
274 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset()); 274 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset());
275 } 275 }
276 276
277 // We have to return the passed value, not the return value of the setter. 277 // We have to return the passed value, not the return value of the setter.
278 __ pop(eax); 278 __ pop(eax);
279 279
280 // Restore context register. 280 // Restore context register.
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 // Return the generated code. 816 // Return the generated code.
817 return GetCode(kind(), Code::NORMAL, name); 817 return GetCode(kind(), Code::NORMAL, name);
818 } 818 }
819 819
820 820
821 #undef __ 821 #undef __
822 } // namespace internal 822 } // namespace internal
823 } // namespace v8 823 } // namespace v8
824 824
825 #endif // V8_TARGET_ARCH_X87 825 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698