| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 | 53 |
| 54 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { | 54 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { |
| 55 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); | 55 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); |
| 56 // Currently debug break is not supported in frame exit code on ARM. | 56 // Currently debug break is not supported in frame exit code on ARM. |
| 57 return false; | 57 return false; |
| 58 } | 58 } |
| 59 | 59 |
| 60 | 60 |
| 61 #define __ masm-> | 61 #define __ DEFINE_MASM(masm) |
| 62 | 62 |
| 63 | 63 |
| 64 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, | 64 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, |
| 65 RegList pointer_regs) { | 65 RegList pointer_regs) { |
| 66 // Save the content of all general purpose registers in memory. This copy in | 66 // Save the content of all general purpose registers in memory. This copy in |
| 67 // memory is later pushed onto the JS expression stack for the fake JS frame | 67 // memory is later pushed onto the JS expression stack for the fake JS frame |
| 68 // generated and also to the C frame generated on top of that. In the JS | 68 // generated and also to the C frame generated on top of that. In the JS |
| 69 // frame ONLY the registers containing pointers will be pushed on the | 69 // frame ONLY the registers containing pointers will be pushed on the |
| 70 // expression stack. This causes the GC to update these pointers so that | 70 // expression stack. This causes the GC to update these pointers so that |
| 71 // they will have the correct value when returning from the debugger. | 71 // they will have the correct value when returning from the debugger. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { | 187 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { |
| 188 // Generate nothing as CodeStub CallFunction is not used on ARM. | 188 // Generate nothing as CodeStub CallFunction is not used on ARM. |
| 189 } | 189 } |
| 190 | 190 |
| 191 | 191 |
| 192 #undef __ | 192 #undef __ |
| 193 | 193 |
| 194 | 194 |
| 195 } } // namespace v8::internal | 195 } } // namespace v8::internal |
| OLD | NEW |