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

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

Issue 223823002: Revert r20474 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/full-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // jumping to the target address intended by the caller and that was 233 // jumping to the target address intended by the caller and that was
234 // overwritten by the address of DebugBreakXXX. 234 // overwritten by the address of DebugBreakXXX.
235 ExternalReference after_break_target(Debug_Address::AfterBreakTarget(), 235 ExternalReference after_break_target(Debug_Address::AfterBreakTarget(),
236 masm->isolate()); 236 masm->isolate());
237 __ Mov(scratch, after_break_target); 237 __ Mov(scratch, after_break_target);
238 __ Ldr(scratch, MemOperand(scratch)); 238 __ Ldr(scratch, MemOperand(scratch));
239 __ Br(scratch); 239 __ Br(scratch);
240 } 240 }
241 241
242 242
243 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) {
244 // Register state for CallICStub
245 // ----------- S t a t e -------------
246 // -- x1 : function
247 // -- x2 : feedback array
248 // -- x3 : slot in feedback array
249 // -----------------------------------
250 Generate_DebugBreakCallHelper(masm, x1.Bit() | x2.Bit() | x3.Bit(), 0, x10);
251 }
252
253
254 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 243 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
255 // Calling convention for IC load (from ic-arm.cc). 244 // Calling convention for IC load (from ic-arm.cc).
256 // ----------- S t a t e ------------- 245 // ----------- S t a t e -------------
257 // -- x2 : name 246 // -- x2 : name
258 // -- lr : return address 247 // -- lr : return address
259 // -- x0 : receiver 248 // -- x0 : receiver
260 // -- [sp] : receiver 249 // -- [sp] : receiver
261 // ----------------------------------- 250 // -----------------------------------
262 // Registers x0 and x2 contain objects that need to be pushed on the 251 // Registers x0 and x2 contain objects that need to be pushed on the
263 // expression stack of the fake JS frame. 252 // expression stack of the fake JS frame.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 289
301 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { 290 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) {
302 // Register state for CompareNil IC 291 // Register state for CompareNil IC
303 // ----------- S t a t e ------------- 292 // ----------- S t a t e -------------
304 // -- r0 : value 293 // -- r0 : value
305 // ----------------------------------- 294 // -----------------------------------
306 Generate_DebugBreakCallHelper(masm, x0.Bit(), 0, x10); 295 Generate_DebugBreakCallHelper(masm, x0.Bit(), 0, x10);
307 } 296 }
308 297
309 298
299 void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
300 // Calling convention for IC call (from ic-arm.cc)
301 // ----------- S t a t e -------------
302 // -- x2 : name
303 // -----------------------------------
304 Generate_DebugBreakCallHelper(masm, x2.Bit(), 0, x10);
305 }
306
307
310 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { 308 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
311 // In places other than IC call sites it is expected that r0 is TOS which 309 // In places other than IC call sites it is expected that r0 is TOS which
312 // is an object - this is not generally the case so this should be used with 310 // is an object - this is not generally the case so this should be used with
313 // care. 311 // care.
314 Generate_DebugBreakCallHelper(masm, x0.Bit(), 0, x10); 312 Generate_DebugBreakCallHelper(masm, x0.Bit(), 0, x10);
315 } 313 }
316 314
317 315
318 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { 316 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) {
319 // Register state for CallFunctionStub (from code-stubs-arm64.cc). 317 // Register state for CallFunctionStub (from code-stubs-arm64.cc).
320 // ----------- S t a t e ------------- 318 // ----------- S t a t e -------------
321 // -- x1 : function 319 // -- x1 : function
322 // ----------------------------------- 320 // -----------------------------------
323 Generate_DebugBreakCallHelper(masm, x1.Bit(), 0, x10); 321 Generate_DebugBreakCallHelper(masm, x1.Bit(), 0, x10);
324 } 322 }
325 323
326 324
325 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) {
326 // Register state for CallFunctionStub (from code-stubs-arm64.cc).
327 // ----------- S t a t e -------------
328 // -- x1 : function
329 // -- x2 : feedback array
330 // -- x3 : slot in feedback array
331 // -----------------------------------
332 Generate_DebugBreakCallHelper(masm, x1.Bit() | x2.Bit() | x3.Bit(), 0, x10);
333 }
334
335
327 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { 336 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) {
328 // Calling convention for CallConstructStub (from code-stubs-arm64.cc). 337 // Calling convention for CallConstructStub (from code-stubs-arm64.cc).
329 // ----------- S t a t e ------------- 338 // ----------- S t a t e -------------
330 // -- x0 : number of arguments (not smi) 339 // -- x0 : number of arguments (not smi)
331 // -- x1 : constructor function 340 // -- x1 : constructor function
332 // ----------------------------------- 341 // -----------------------------------
333 Generate_DebugBreakCallHelper(masm, x1.Bit(), x0.Bit(), x10); 342 Generate_DebugBreakCallHelper(masm, x1.Bit(), x0.Bit(), x10);
334 } 343 }
335 344
336 345
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnARM64); 384 masm->Abort(kLiveEditFrameDroppingIsNotSupportedOnARM64);
376 } 385 }
377 386
378 const bool Debug::kFrameDropperSupported = false; 387 const bool Debug::kFrameDropperSupported = false;
379 388
380 #endif // ENABLE_DEBUGGER_SUPPORT 389 #endif // ENABLE_DEBUGGER_SUPPORT
381 390
382 } } // namespace v8::internal 391 } } // namespace v8::internal
383 392
384 #endif // V8_TARGET_ARCH_ARM64 393 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698