OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // make sure that these are correctly updated during GC. | 91 // make sure that these are correctly updated during GC. |
92 // Use sp as base to push. | 92 // Use sp as base to push. |
93 __ CopyRegistersFromMemoryToStack(sp, pointer_regs); | 93 __ CopyRegistersFromMemoryToStack(sp, pointer_regs); |
94 | 94 |
95 #ifdef DEBUG | 95 #ifdef DEBUG |
96 __ RecordComment("// Calling from debug break to runtime - come in - over"); | 96 __ RecordComment("// Calling from debug break to runtime - come in - over"); |
97 #endif | 97 #endif |
98 __ mov(r0, Operand(0)); // no arguments | 98 __ mov(r0, Operand(0)); // no arguments |
99 __ mov(r1, Operand(ExternalReference::debug_break())); | 99 __ mov(r1, Operand(ExternalReference::debug_break())); |
100 | 100 |
101 CEntryStub ceb(1); | 101 CEntryStub ceb(1, ExitFrame::MODE_DEBUG); |
102 __ CallStub(&ceb); | 102 __ CallStub(&ceb); |
103 | 103 |
104 // Restore the register values containing object pointers from the expression | 104 // Restore the register values containing object pointers from the expression |
105 // stack in the reverse order as they where pushed. | 105 // stack in the reverse order as they where pushed. |
106 // Use sp as base to pop. | 106 // Use sp as base to pop. |
107 __ CopyRegistersFromStackToMemory(sp, r3, pointer_regs); | 107 __ CopyRegistersFromStackToMemory(sp, r3, pointer_regs); |
108 | 108 |
109 __ LeaveInternalFrame(); | 109 __ LeaveInternalFrame(); |
110 | 110 |
111 // Finally restore all registers. | 111 // Finally restore all registers. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // ----------------------------------- | 204 // ----------------------------------- |
205 Generate_DebugBreakCallHelper(masm, 0); | 205 Generate_DebugBreakCallHelper(masm, 0); |
206 } | 206 } |
207 | 207 |
208 | 208 |
209 #undef __ | 209 #undef __ |
210 | 210 |
211 #endif // ENABLE_DEBUGGER_SUPPORT | 211 #endif // ENABLE_DEBUGGER_SUPPORT |
212 | 212 |
213 } } // namespace v8::internal | 213 } } // namespace v8::internal |
OLD | NEW |