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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void BreakLocationIterator::ClearDebugBreakAtReturn() { | 56 void BreakLocationIterator::ClearDebugBreakAtReturn() { |
57 rinfo()->PatchCode(original_rinfo()->pc(), | 57 rinfo()->PatchCode(original_rinfo()->pc(), |
58 Debug::kIa32JSReturnSequenceLength); | 58 Debug::kIa32JSReturnSequenceLength); |
59 } | 59 } |
60 | 60 |
61 | 61 |
62 // A debug break in the frame exit code is identified by the JS frame exit code | 62 // A debug break in the frame exit code is identified by the JS frame exit code |
63 // having been patched with a call instruction. | 63 // having been patched with a call instruction. |
64 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { | 64 bool Debug::IsDebugBreakAtReturn(RelocInfo* rinfo) { |
65 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); | 65 ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); |
66 return rinfo->IsCallInstruction(); | 66 return rinfo->IsPatchedReturnSequence(); |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 #define __ ACCESS_MASM(masm) | 70 #define __ ACCESS_MASM(masm) |
71 | 71 |
72 | 72 |
73 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, | 73 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, |
74 RegList pointer_regs, | 74 RegList pointer_regs, |
75 bool convert_call_to_jmp) { | 75 bool convert_call_to_jmp) { |
76 // Save the content of all general purpose registers in memory. This copy in | 76 // Save the content of all general purpose registers in memory. This copy in |
(...skipping 122 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 |