OLD | NEW |
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 Loading... |
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 __ jmp(Operand(kScratchRegister, 0)); | 176 __ Jump(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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 const bool Debug::kFrameDropperSupported = true; | 347 const bool Debug::kFrameDropperSupported = true; |
348 | 348 |
349 #undef __ | 349 #undef __ |
350 | 350 |
351 #endif // ENABLE_DEBUGGER_SUPPORT | 351 #endif // ENABLE_DEBUGGER_SUPPORT |
352 | 352 |
353 } } // namespace v8::internal | 353 } } // namespace v8::internal |
354 | 354 |
355 #endif // V8_TARGET_ARCH_X64 | 355 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |