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 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 CEntryDebugBreakStub ceb; | 97 CEntryStub ceb(1); |
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // ----------------------------------- | 199 // ----------------------------------- |
200 Generate_DebugBreakCallHelper(masm, 0, false); | 200 Generate_DebugBreakCallHelper(masm, 0, false); |
201 } | 201 } |
202 | 202 |
203 | 203 |
204 #undef __ | 204 #undef __ |
205 | 205 |
206 #endif // ENABLE_DEBUGGER_SUPPORT | 206 #endif // ENABLE_DEBUGGER_SUPPORT |
207 | 207 |
208 } } // namespace v8::internal | 208 } } // namespace v8::internal |
OLD | NEW |