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 19 matching lines...) Expand all Loading... |
30 #if V8_TARGET_ARCH_X64 | 30 #if V8_TARGET_ARCH_X64 |
31 | 31 |
32 #include "assembler.h" | 32 #include "assembler.h" |
33 #include "codegen.h" | 33 #include "codegen.h" |
34 #include "debug.h" | 34 #include "debug.h" |
35 | 35 |
36 | 36 |
37 namespace v8 { | 37 namespace v8 { |
38 namespace internal { | 38 namespace internal { |
39 | 39 |
40 #ifdef ENABLE_DEBUGGER_SUPPORT | |
41 | |
42 bool BreakLocationIterator::IsDebugBreakAtReturn() { | 40 bool BreakLocationIterator::IsDebugBreakAtReturn() { |
43 return Debug::IsDebugBreakAtReturn(rinfo()); | 41 return Debug::IsDebugBreakAtReturn(rinfo()); |
44 } | 42 } |
45 | 43 |
46 | 44 |
47 // Patch the JS frame exit code with a debug break call. See | 45 // Patch the JS frame exit code with a debug break call. See |
48 // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-x64.cc | 46 // CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-x64.cc |
49 // for the precise return instructions sequence. | 47 // for the precise return instructions sequence. |
50 void BreakLocationIterator::SetDebugBreakAtReturn() { | 48 void BreakLocationIterator::SetDebugBreakAtReturn() { |
51 ASSERT(Assembler::kJSReturnSequenceLength >= Assembler::kCallSequenceLength); | 49 ASSERT(Assembler::kJSReturnSequenceLength >= Assembler::kCallSequenceLength); |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 __ leap(rdx, FieldOperand(rdx, Code::kHeaderSize)); | 339 __ leap(rdx, FieldOperand(rdx, Code::kHeaderSize)); |
342 | 340 |
343 // Re-run JSFunction, rdi is function, rsi is context. | 341 // Re-run JSFunction, rdi is function, rsi is context. |
344 __ jmp(rdx); | 342 __ jmp(rdx); |
345 } | 343 } |
346 | 344 |
347 const bool Debug::kFrameDropperSupported = true; | 345 const bool Debug::kFrameDropperSupported = true; |
348 | 346 |
349 #undef __ | 347 #undef __ |
350 | 348 |
351 #endif // ENABLE_DEBUGGER_SUPPORT | |
352 | |
353 } } // namespace v8::internal | 349 } } // namespace v8::internal |
354 | 350 |
355 #endif // V8_TARGET_ARCH_X64 | 351 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |