| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Restore the JS frame exit code. | 61 // Restore the JS frame exit code. |
| 62 void BreakLocationIterator::ClearDebugBreakAtReturn() { | 62 void BreakLocationIterator::ClearDebugBreakAtReturn() { |
| 63 rinfo()->PatchCode(original_rinfo()->pc(), | 63 rinfo()->PatchCode(original_rinfo()->pc(), |
| 64 CodeGenerator::kJSReturnSequenceLength); | 64 CodeGenerator::kJSReturnSequenceLength); |
| 65 } | 65 } |
| 66 | 66 |
| 67 | 67 |
| 68 // A debug break in the exit code is identified by a call. | 68 // A debug break in the exit code is identified by a call. |
| 69 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { | 69 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { |
| 70 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); | 70 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); |
| 71 return rinfo->IsCallInstruction(); | 71 return rinfo->IsPatchedReturnSequence(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 | 74 |
| 75 #define __ ACCESS_MASM(masm) | 75 #define __ ACCESS_MASM(masm) |
| 76 | 76 |
| 77 | 77 |
| 78 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, | 78 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, |
| 79 RegList pointer_regs) { | 79 RegList pointer_regs) { |
| 80 // Save the content of all general purpose registers in memory. This copy in | 80 // Save the content of all general purpose registers in memory. This copy in |
| 81 // memory is later pushed onto the JS expression stack for the fake JS frame | 81 // memory is later pushed onto the JS expression stack for the fake JS frame |
| (...skipping 122 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 |