| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #if V8_TARGET_ARCH_IA32 | 30 #if V8_TARGET_ARCH_IA32 |
| 31 | 31 |
| 32 #include "codegen.h" | 32 #include "codegen.h" |
| 33 #include "debug.h" | 33 #include "debug.h" |
| 34 | 34 |
| 35 | 35 |
| 36 namespace v8 { | 36 namespace v8 { |
| 37 namespace internal { | 37 namespace internal { |
| 38 | 38 |
| 39 #ifdef ENABLE_DEBUGGER_SUPPORT | |
| 40 | |
| 41 bool BreakLocationIterator::IsDebugBreakAtReturn() { | 39 bool BreakLocationIterator::IsDebugBreakAtReturn() { |
| 42 return Debug::IsDebugBreakAtReturn(rinfo()); | 40 return Debug::IsDebugBreakAtReturn(rinfo()); |
| 43 } | 41 } |
| 44 | 42 |
| 45 | 43 |
| 46 // Patch the JS frame exit code with a debug break call. See | 44 // Patch the JS frame exit code with a debug break call. See |
| 47 // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-ia32.cc | 45 // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-ia32.cc |
| 48 // for the precise return instructions sequence. | 46 // for the precise return instructions sequence. |
| 49 void BreakLocationIterator::SetDebugBreakAtReturn() { | 47 void BreakLocationIterator::SetDebugBreakAtReturn() { |
| 50 ASSERT(Assembler::kJSReturnSequenceLength >= | 48 ASSERT(Assembler::kJSReturnSequenceLength >= |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 __ lea(edx, FieldOperand(edx, Code::kHeaderSize)); | 360 __ lea(edx, FieldOperand(edx, Code::kHeaderSize)); |
| 363 | 361 |
| 364 // Re-run JSFunction, edi is function, esi is context. | 362 // Re-run JSFunction, edi is function, esi is context. |
| 365 __ jmp(edx); | 363 __ jmp(edx); |
| 366 } | 364 } |
| 367 | 365 |
| 368 const bool Debug::kFrameDropperSupported = true; | 366 const bool Debug::kFrameDropperSupported = true; |
| 369 | 367 |
| 370 #undef __ | 368 #undef __ |
| 371 | 369 |
| 372 #endif // ENABLE_DEBUGGER_SUPPORT | |
| 373 | |
| 374 } } // namespace v8::internal | 370 } } // namespace v8::internal |
| 375 | 371 |
| 376 #endif // V8_TARGET_ARCH_IA32 | 372 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |