| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { | 171 void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) { |
| 172 // Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc). | 172 // Register state for stub CallFunction (from CallFunctionStub in ic-x64.cc). |
| 173 // ----------- S t a t e ------------- | 173 // ----------- S t a t e ------------- |
| 174 // No registers used on entry. | 174 // No registers used on entry. |
| 175 // ----------------------------------- | 175 // ----------------------------------- |
| 176 Generate_DebugBreakCallHelper(masm, 0, false); | 176 Generate_DebugBreakCallHelper(masm, 0, false); |
| 177 } | 177 } |
| 178 | 178 |
| 179 | 179 |
| 180 void Debug::GeneratePlainReturnLiveEdit(MacroAssembler* masm) { |
| 181 masm->Abort("LiveEdit frame dropping is not supported on x64"); |
| 182 } |
| 183 |
| 184 void Debug::GenerateFrameDropperLiveEdit(MacroAssembler* masm) { |
| 185 masm->Abort("LiveEdit frame dropping is not supported on x64"); |
| 186 } |
| 187 |
| 180 #undef __ | 188 #undef __ |
| 181 | 189 |
| 182 | 190 |
| 191 void Debug::SetUpFrameDropperFrame(StackFrame* bottom_js_frame, |
| 192 Handle<Code> code) { |
| 193 UNREACHABLE(); |
| 194 } |
| 195 const int Debug::kFrameDropperFrameSize = -1; |
| 196 |
| 197 |
| 183 void BreakLocationIterator::ClearDebugBreakAtReturn() { | 198 void BreakLocationIterator::ClearDebugBreakAtReturn() { |
| 184 rinfo()->PatchCode(original_rinfo()->pc(), | 199 rinfo()->PatchCode(original_rinfo()->pc(), |
| 185 Assembler::kJSReturnSequenceLength); | 200 Assembler::kJSReturnSequenceLength); |
| 186 } | 201 } |
| 187 | 202 |
| 188 | 203 |
| 189 bool BreakLocationIterator::IsDebugBreakAtReturn() { | 204 bool BreakLocationIterator::IsDebugBreakAtReturn() { |
| 190 return Debug::IsDebugBreakAtReturn(rinfo()); | 205 return Debug::IsDebugBreakAtReturn(rinfo()); |
| 191 } | 206 } |
| 192 | 207 |
| 193 | 208 |
| 194 void BreakLocationIterator::SetDebugBreakAtReturn() { | 209 void BreakLocationIterator::SetDebugBreakAtReturn() { |
| 195 ASSERT(Assembler::kJSReturnSequenceLength >= | 210 ASSERT(Assembler::kJSReturnSequenceLength >= |
| 196 Assembler::kCallInstructionLength); | 211 Assembler::kCallInstructionLength); |
| 197 rinfo()->PatchCodeWithCall(Debug::debug_break_return()->entry(), | 212 rinfo()->PatchCodeWithCall(Debug::debug_break_return()->entry(), |
| 198 Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength); | 213 Assembler::kJSReturnSequenceLength - Assembler::kCallInstructionLength); |
| 199 } | 214 } |
| 200 | 215 |
| 201 #endif // ENABLE_DEBUGGER_SUPPORT | 216 #endif // ENABLE_DEBUGGER_SUPPORT |
| 202 | 217 |
| 203 } } // namespace v8::internal | 218 } } // namespace v8::internal |
| OLD | NEW |