Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: src/x64/debug-x64.cc

Issue 256653004: Always include debugger support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Makefile Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698