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

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

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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/x64/code-stubs-x64.cc ('k') | src/x64/disasm-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 if (convert_call_to_jmp) { 166 if (convert_call_to_jmp) {
167 __ addq(rsp, Immediate(kPCOnStackSize)); 167 __ addq(rsp, Immediate(kPCOnStackSize));
168 } 168 }
169 169
170 // Now that the break point has been handled, resume normal execution by 170 // Now that the break point has been handled, resume normal execution by
171 // jumping to the target address intended by the caller and that was 171 // jumping to the target address intended by the caller and that was
172 // overwritten by the address of DebugBreakXXX. 172 // overwritten by the address of DebugBreakXXX.
173 ExternalReference after_break_target = 173 ExternalReference after_break_target =
174 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); 174 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
175 __ Move(kScratchRegister, after_break_target); 175 __ Move(kScratchRegister, after_break_target);
176 __ Jump(Operand(kScratchRegister, 0)); 176 __ jmp(Operand(kScratchRegister, 0));
177 } 177 }
178 178
179 179
180 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 180 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
181 // Register state for IC load call (from ic-x64.cc). 181 // Register state for IC load call (from ic-x64.cc).
182 // ----------- S t a t e ------------- 182 // ----------- S t a t e -------------
183 // -- rax : receiver 183 // -- rax : receiver
184 // -- rcx : name 184 // -- rcx : name
185 // ----------------------------------- 185 // -----------------------------------
186 Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false); 186 Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // -- rdi : function 254 // -- rdi : function
255 // ----------------------------------- 255 // -----------------------------------
256 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false); 256 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false);
257 } 257 }
258 258
259 259
260 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) { 260 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) {
261 // Register state for CallFunctionStub (from code-stubs-x64.cc). 261 // Register state for CallFunctionStub (from code-stubs-x64.cc).
262 // ----------- S t a t e ------------- 262 // ----------- S t a t e -------------
263 // -- rdi : function 263 // -- rdi : function
264 // -- rbx: feedback array 264 // -- rbx: cache cell for call target
265 // -- rdx: slot in feedback array
266 // ----------------------------------- 265 // -----------------------------------
267 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdx.bit() | rdi.bit(), 266 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdi.bit(), 0, false);
268 0, false);
269 } 267 }
270 268
271 269
272 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { 270 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) {
273 // Register state for CallConstructStub (from code-stubs-x64.cc). 271 // Register state for CallConstructStub (from code-stubs-x64.cc).
274 // rax is the actual number of arguments not encoded as a smi, see comment 272 // rax is the actual number of arguments not encoded as a smi, see comment
275 // above IC call. 273 // above IC call.
276 // ----------- S t a t e ------------- 274 // ----------- S t a t e -------------
277 // -- rax: number of arguments 275 // -- rax: number of arguments
278 // ----------------------------------- 276 // -----------------------------------
279 // The number of arguments in rax is not smi encoded. 277 // The number of arguments in rax is not smi encoded.
280 Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false); 278 Generate_DebugBreakCallHelper(masm, rdi.bit(), rax.bit(), false);
281 } 279 }
282 280
283 281
284 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) { 282 void Debug::GenerateCallConstructStubRecordDebugBreak(MacroAssembler* masm) {
285 // Register state for CallConstructStub (from code-stubs-x64.cc). 283 // Register state for CallConstructStub (from code-stubs-x64.cc).
286 // rax is the actual number of arguments not encoded as a smi, see comment 284 // rax is the actual number of arguments not encoded as a smi, see comment
287 // above IC call. 285 // above IC call.
288 // ----------- S t a t e ------------- 286 // ----------- S t a t e -------------
289 // -- rax: number of arguments 287 // -- rax: number of arguments
290 // -- rbx: feedback array 288 // -- rbx: cache cell for call target
291 // -- rdx: feedback slot (smi)
292 // ----------------------------------- 289 // -----------------------------------
293 // The number of arguments in rax is not smi encoded. 290 // The number of arguments in rax is not smi encoded.
294 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdx.bit() | rdi.bit(), 291 Generate_DebugBreakCallHelper(masm, rbx.bit() | rdi.bit(), rax.bit(), false);
295 rax.bit(), false);
296 } 292 }
297 293
298 294
299 void Debug::GenerateSlot(MacroAssembler* masm) { 295 void Debug::GenerateSlot(MacroAssembler* masm) {
300 // Generate enough nop's to make space for a call instruction. 296 // Generate enough nop's to make space for a call instruction.
301 Label check_codesize; 297 Label check_codesize;
302 __ bind(&check_codesize); 298 __ bind(&check_codesize);
303 __ RecordDebugBreakSlot(); 299 __ RecordDebugBreakSlot();
304 __ Nop(Assembler::kDebugBreakSlotLength); 300 __ Nop(Assembler::kDebugBreakSlotLength);
305 ASSERT_EQ(Assembler::kDebugBreakSlotLength, 301 ASSERT_EQ(Assembler::kDebugBreakSlotLength,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 342
347 const bool Debug::kFrameDropperSupported = true; 343 const bool Debug::kFrameDropperSupported = true;
348 344
349 #undef __ 345 #undef __
350 346
351 #endif // ENABLE_DEBUGGER_SUPPORT 347 #endif // ENABLE_DEBUGGER_SUPPORT
352 348
353 } } // namespace v8::internal 349 } } // namespace v8::internal
354 350
355 #endif // V8_TARGET_ARCH_X64 351 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698