OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Store the registers containing object pointers on the expression stack to | 87 // Store the registers containing object pointers on the expression stack to |
88 // make sure that these are correctly updated during GC. | 88 // make sure that these are correctly updated during GC. |
89 __ PushRegistersFromMemory(pointer_regs); | 89 __ PushRegistersFromMemory(pointer_regs); |
90 | 90 |
91 #ifdef DEBUG | 91 #ifdef DEBUG |
92 __ RecordComment("// Calling from debug break to runtime - come in - over"); | 92 __ RecordComment("// Calling from debug break to runtime - come in - over"); |
93 #endif | 93 #endif |
94 __ Set(eax, Immediate(0)); // no arguments | 94 __ Set(eax, Immediate(0)); // no arguments |
95 __ mov(ebx, Immediate(ExternalReference::debug_break())); | 95 __ mov(ebx, Immediate(ExternalReference::debug_break())); |
96 | 96 |
97 CEntryStub ceb(1); | 97 CEntryStub ceb(1, ExitFrame::MODE_DEBUG); |
98 __ CallStub(&ceb); | 98 __ CallStub(&ceb); |
99 | 99 |
100 // Restore the register values containing object pointers from the expression | 100 // Restore the register values containing object pointers from the expression |
101 // stack in the reverse order as they where pushed. | 101 // stack in the reverse order as they where pushed. |
102 __ PopRegistersToMemory(pointer_regs); | 102 __ PopRegistersToMemory(pointer_regs); |
103 | 103 |
104 // Get rid of the internal frame. | 104 // Get rid of the internal frame. |
105 __ LeaveInternalFrame(); | 105 __ LeaveInternalFrame(); |
106 | 106 |
107 // If this call did not replace a call but patched other code then there will | 107 // If this call did not replace a call but patched other code then there will |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // ----------------------------------- | 200 // ----------------------------------- |
201 Generate_DebugBreakCallHelper(masm, 0, false); | 201 Generate_DebugBreakCallHelper(masm, 0, false); |
202 } | 202 } |
203 | 203 |
204 | 204 |
205 #undef __ | 205 #undef __ |
206 | 206 |
207 #endif // ENABLE_DEBUGGER_SUPPORT | 207 #endif // ENABLE_DEBUGGER_SUPPORT |
208 | 208 |
209 } } // namespace v8::internal | 209 } } // namespace v8::internal |
OLD | NEW |