| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 __ EnterInternalFrame(); | 75 __ EnterInternalFrame(); |
| 76 | 76 |
| 77 // Store the registers containing object pointers on the expression stack to | 77 // Store the registers containing object pointers on the expression stack to |
| 78 // make sure that these are correctly updated during GC. | 78 // make sure that these are correctly updated during GC. |
| 79 // Use sp as base to push. | 79 // Use sp as base to push. |
| 80 __ CopyRegistersFromMemoryToStack(sp, pointer_regs); | 80 __ CopyRegistersFromMemoryToStack(sp, pointer_regs); |
| 81 | 81 |
| 82 #ifdef DEBUG | 82 #ifdef DEBUG |
| 83 __ RecordComment("// Calling from debug break to runtime - come in - over"); | 83 __ RecordComment("// Calling from debug break to runtime - come in - over"); |
| 84 #endif | 84 #endif |
| 85 __ mov(r0, Operand(0)); // no arguments | 85 __ mov(r0, Operand(0, RelocInfo::NONE)); // no arguments |
| 86 __ mov(r1, Operand(ExternalReference::debug_break())); | 86 __ mov(r1, Operand(ExternalReference::debug_break())); |
| 87 | 87 |
| 88 CEntryDebugBreakStub ceb; | 88 CEntryDebugBreakStub ceb; |
| 89 __ CallStub(&ceb); | 89 __ CallStub(&ceb); |
| 90 | 90 |
| 91 // Restore the register values containing object pointers from the expression | 91 // Restore the register values containing object pointers from the expression |
| 92 // stack in the reverse order as they where pushed. | 92 // stack in the reverse order as they where pushed. |
| 93 // Use sp as base to pop. | 93 // Use sp as base to pop. |
| 94 __ CopyRegistersFromStackToMemory(sp, r3, pointer_regs); | 94 __ CopyRegistersFromStackToMemory(sp, r3, pointer_regs); |
| 95 | 95 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { | 188 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { |
| 189 // Generate nothing as CodeStub CallFunction is not used on ARM. | 189 // Generate nothing as CodeStub CallFunction is not used on ARM. |
| 190 } | 190 } |
| 191 | 191 |
| 192 | 192 |
| 193 #undef __ | 193 #undef __ |
| 194 | 194 |
| 195 #endif // ENABLE_DEBUGGER_SUPPORT | 195 #endif // ENABLE_DEBUGGER_SUPPORT |
| 196 | 196 |
| 197 } } // namespace v8::internal | 197 } } // namespace v8::internal |
| OLD | NEW |