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

Side by Side Diff: src/debug.cc

Issue 9845019: Port count-based profiler to x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 8 years, 9 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/arm/full-codegen-arm.cc ('k') | src/full-codegen.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 new_code->instruction_start() - 1840 new_code->instruction_start() -
1841 debug_break_slot_bytes; 1841 debug_break_slot_bytes;
1842 if (new_delta > delta) { 1842 if (new_delta > delta) {
1843 break; 1843 break;
1844 } 1844 }
1845 1845
1846 // Passed a debug break slot in the full code with debug 1846 // Passed a debug break slot in the full code with debug
1847 // break slots. 1847 // break slots.
1848 debug_break_slot_count++; 1848 debug_break_slot_count++;
1849 } 1849 }
1850 if (frame_code->has_self_optimization_header() &&
1851 !new_code->has_self_optimization_header()) {
1852 delta -= FullCodeGenerator::self_optimization_header_size();
1853 } else {
1854 ASSERT(frame_code->has_self_optimization_header() ==
1855 new_code->has_self_optimization_header());
1856 }
1857 int debug_break_slot_bytes = 1850 int debug_break_slot_bytes =
1858 debug_break_slot_count * Assembler::kDebugBreakSlotLength; 1851 debug_break_slot_count * Assembler::kDebugBreakSlotLength;
1859 if (FLAG_trace_deopt) { 1852 if (FLAG_trace_deopt) {
1860 PrintF("Replacing code %08" V8PRIxPTR " - %08" V8PRIxPTR " (%d) " 1853 PrintF("Replacing code %08" V8PRIxPTR " - %08" V8PRIxPTR " (%d) "
1861 "with %08" V8PRIxPTR " - %08" V8PRIxPTR " (%d) " 1854 "with %08" V8PRIxPTR " - %08" V8PRIxPTR " (%d) "
1862 "for debugging, " 1855 "for debugging, "
1863 "changing pc from %08" V8PRIxPTR " to %08" V8PRIxPTR "\n", 1856 "changing pc from %08" V8PRIxPTR " to %08" V8PRIxPTR "\n",
1864 reinterpret_cast<intptr_t>( 1857 reinterpret_cast<intptr_t>(
1865 frame_code->instruction_start()), 1858 frame_code->instruction_start()),
1866 reinterpret_cast<intptr_t>( 1859 reinterpret_cast<intptr_t>(
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
3579 { 3572 {
3580 Locker locker; 3573 Locker locker;
3581 Isolate::Current()->debugger()->CallMessageDispatchHandler(); 3574 Isolate::Current()->debugger()->CallMessageDispatchHandler();
3582 } 3575 }
3583 } 3576 }
3584 } 3577 }
3585 3578
3586 #endif // ENABLE_DEBUGGER_SUPPORT 3579 #endif // ENABLE_DEBUGGER_SUPPORT
3587 3580
3588 } } // namespace v8::internal 3581 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698