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

Side by Side Diff: src/ia32/debug-ia32.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/ia32/builtins-ia32.cc ('k') | src/ia32/full-codegen-ia32.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 18 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698