OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 243 |
244 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { | 244 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { |
245 // Register state just before return from JS function (from codegen-x64.cc). | 245 // Register state just before return from JS function (from codegen-x64.cc). |
246 // ----------- S t a t e ------------- | 246 // ----------- S t a t e ------------- |
247 // -- rax: return value | 247 // -- rax: return value |
248 // ----------------------------------- | 248 // ----------------------------------- |
249 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true); | 249 Generate_DebugBreakCallHelper(masm, rax.bit(), 0, true); |
250 } | 250 } |
251 | 251 |
252 | 252 |
253 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { | 253 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { |
254 // Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc). | 254 // Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc). |
255 // ----------- S t a t e ------------- | 255 // ----------- S t a t e ------------- |
256 // No registers used on entry. | 256 // -- rdi : function |
257 // ----------------------------------- | 257 // ----------------------------------- |
258 Generate_DebugBreakCallHelper(masm, 0, 0, false); | 258 Generate_DebugBreakCallHelper(masm, rdi.bit(), 0, false); |
259 } | 259 } |
260 | 260 |
261 | 261 |
262 void Debug::GenerateSlot(MacroAssembler* masm) { | 262 void Debug::GenerateSlot(MacroAssembler* masm) { |
263 // Generate enough nop's to make space for a call instruction. | 263 // Generate enough nop's to make space for a call instruction. |
264 Label check_codesize; | 264 Label check_codesize; |
265 __ bind(&check_codesize); | 265 __ bind(&check_codesize); |
266 __ RecordDebugBreakSlot(); | 266 __ RecordDebugBreakSlot(); |
267 for (int i = 0; i < Assembler::kDebugBreakSlotLength; i++) { | 267 for (int i = 0; i < Assembler::kDebugBreakSlotLength; i++) { |
268 __ nop(); | 268 __ nop(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 | 311 |
312 const bool Debug::kFrameDropperSupported = true; | 312 const bool Debug::kFrameDropperSupported = true; |
313 | 313 |
314 #undef __ | 314 #undef __ |
315 | 315 |
316 #endif // ENABLE_DEBUGGER_SUPPORT | 316 #endif // ENABLE_DEBUGGER_SUPPORT |
317 | 317 |
318 } } // namespace v8::internal | 318 } } // namespace v8::internal |
319 | 319 |
320 #endif // V8_TARGET_ARCH_X64 | 320 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |