| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Store the registers containing object pointers on the expression stack to | 61 // Store the registers containing object pointers on the expression stack to |
| 62 // make sure that these are correctly updated during GC. | 62 // make sure that these are correctly updated during GC. |
| 63 __ PushRegistersFromMemory(pointer_regs); | 63 __ PushRegistersFromMemory(pointer_regs); |
| 64 | 64 |
| 65 #ifdef DEBUG | 65 #ifdef DEBUG |
| 66 __ RecordComment("// Calling from debug break to runtime - come in - over"); | 66 __ RecordComment("// Calling from debug break to runtime - come in - over"); |
| 67 #endif | 67 #endif |
| 68 __ xor_(rax, rax); // No arguments (argc == 0). | 68 __ xor_(rax, rax); // No arguments (argc == 0). |
| 69 __ movq(rbx, ExternalReference::debug_break()); | 69 __ movq(rbx, ExternalReference::debug_break()); |
| 70 | 70 |
| 71 CEntryDebugBreakStub ceb; | 71 CEntryStub ceb(1); |
| 72 __ CallStub(&ceb); | 72 __ CallStub(&ceb); |
| 73 | 73 |
| 74 // Restore the register values containing object pointers from the expression | 74 // Restore the register values containing object pointers from the expression |
| 75 // stack in the reverse order as they where pushed. | 75 // stack in the reverse order as they where pushed. |
| 76 __ PopRegistersToMemory(pointer_regs); | 76 __ PopRegistersToMemory(pointer_regs); |
| 77 | 77 |
| 78 // Get rid of the internal frame. | 78 // Get rid of the internal frame. |
| 79 __ LeaveInternalFrame(); | 79 __ LeaveInternalFrame(); |
| 80 | 80 |
| 81 // If this call did not replace a call but patched other code then there will | 81 // If this call did not replace a call but patched other code then there will |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 void BreakLocationIterator::SetDebugBreakAtReturn() { | 193 void BreakLocationIterator::SetDebugBreakAtReturn() { |
| 194 ASSERT(Assembler::kJSReturnSequenceLength >= | 194 ASSERT(Assembler::kJSReturnSequenceLength >= |
| 195 Assembler::kCallInstructionLength); | 195 Assembler::kCallInstructionLength); |
| 196 rinfo()->PatchCodeWithCall(Debug::debug_break_return()->entry(), | 196 rinfo()->PatchCodeWithCall(Debug::debug_break_return()->entry(), |
| 197 Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength); | 197 Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength); |
| 198 } | 198 } |
| 199 | 199 |
| 200 #endif // ENABLE_DEBUGGER_SUPPORT | 200 #endif // ENABLE_DEBUGGER_SUPPORT |
| 201 | 201 |
| 202 } } // namespace v8::internal | 202 } } // namespace v8::internal |
| OLD | NEW |