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

Side by Side Diff: src/ic/arm64/handler-compiler-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/ic/arm/handler-compiler-arm.cc ('k') | src/ic/ia32/handler-compiler-ia32.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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 if (map->IsJSGlobalObjectMap()) { 248 if (map->IsJSGlobalObjectMap()) {
249 // Swap in the global receiver. 249 // Swap in the global receiver.
250 __ Ldr(scratch, 250 __ Ldr(scratch,
251 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 251 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
252 receiver = scratch; 252 receiver = scratch;
253 } 253 }
254 __ Push(receiver, value()); 254 __ Push(receiver, value());
255 ParameterCount actual(1); 255 ParameterCount actual(1);
256 ParameterCount expected(expected_arguments); 256 ParameterCount expected(expected_arguments);
257 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_SETTER); 257 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_SETTER);
258 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION, NullCallWrapper()); 258 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION,
259 CheckDebugStepCallWrapper());
259 } else { 260 } else {
260 // If we generate a global code snippet for deoptimization only, remember 261 // If we generate a global code snippet for deoptimization only, remember
261 // the place to continue after deoptimization. 262 // the place to continue after deoptimization.
262 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset()); 263 masm->isolate()->heap()->SetSetterStubDeoptPCOffset(masm->pc_offset());
263 } 264 }
264 265
265 // We have to return the passed value, not the return value of the setter. 266 // We have to return the passed value, not the return value of the setter.
266 __ Pop(x0); 267 __ Pop(x0);
267 268
268 // Restore context register. 269 // Restore context register.
(...skipping 16 matching lines...) Expand all
285 if (map->IsJSGlobalObjectMap()) { 286 if (map->IsJSGlobalObjectMap()) {
286 // Swap in the global receiver. 287 // Swap in the global receiver.
287 __ Ldr(scratch, 288 __ Ldr(scratch,
288 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset)); 289 FieldMemOperand(receiver, JSGlobalObject::kGlobalProxyOffset));
289 receiver = scratch; 290 receiver = scratch;
290 } 291 }
291 __ Push(receiver); 292 __ Push(receiver);
292 ParameterCount actual(0); 293 ParameterCount actual(0);
293 ParameterCount expected(expected_arguments); 294 ParameterCount expected(expected_arguments);
294 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_GETTER); 295 __ LoadAccessor(x1, holder, accessor_index, ACCESSOR_GETTER);
295 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION, NullCallWrapper()); 296 __ InvokeFunction(x1, expected, actual, CALL_FUNCTION,
297 CheckDebugStepCallWrapper());
296 } else { 298 } else {
297 // If we generate a global code snippet for deoptimization only, remember 299 // If we generate a global code snippet for deoptimization only, remember
298 // the place to continue after deoptimization. 300 // the place to continue after deoptimization.
299 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset()); 301 masm->isolate()->heap()->SetGetterStubDeoptPCOffset(masm->pc_offset());
300 } 302 }
301 303
302 // Restore context register. 304 // Restore context register.
303 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 305 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
304 } 306 }
305 __ Ret(); 307 __ Ret();
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // Return the generated code. 804 // Return the generated code.
803 return GetCode(kind(), Code::FAST, name); 805 return GetCode(kind(), Code::FAST, name);
804 } 806 }
805 807
806 808
807 #undef __ 809 #undef __
808 } // namespace internal 810 } // namespace internal
809 } // namespace v8 811 } // namespace v8
810 812
811 #endif // V8_TARGET_ARCH_IA32 813 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm/handler-compiler-arm.cc ('k') | src/ic/ia32/handler-compiler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698