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

Side by Side Diff: src/full-codegen.cc

Issue 616963005: Extend CPU profiler with mapping ticks to source lines (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed x64.debug linker error Created 6 years, 2 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/cpu-profiler.cc ('k') | src/profile-generator.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 if (position_recorded) { 859 if (position_recorded) {
860 DebugCodegen::GenerateSlot(masm_); 860 DebugCodegen::GenerateSlot(masm_);
861 } 861 }
862 } 862 }
863 } 863 }
864 864
865 865
866 void FullCodeGenerator::SetSourcePosition(int pos) { 866 void FullCodeGenerator::SetSourcePosition(int pos) {
867 if (pos != RelocInfo::kNoPosition) { 867 if (pos != RelocInfo::kNoPosition) {
868 masm_->positions_recorder()->RecordPosition(pos); 868 masm_->positions_recorder()->RecordPosition(pos);
869 masm_->positions_recorder()->WriteRecordedPositions();
869 } 870 }
870 } 871 }
871 872
872 873
873 // Lookup table for code generators for special runtime calls which are 874 // Lookup table for code generators for special runtime calls which are
874 // generated inline. 875 // generated inline.
875 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ 876 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \
876 &FullCodeGenerator::Emit##Name, 877 &FullCodeGenerator::Emit##Name,
877 878
878 const FullCodeGenerator::InlineFunctionGenerator 879 const FullCodeGenerator::InlineFunctionGenerator
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 } 1711 }
1711 return true; 1712 return true;
1712 } 1713 }
1713 #endif // DEBUG 1714 #endif // DEBUG
1714 1715
1715 1716
1716 #undef __ 1717 #undef __
1717 1718
1718 1719
1719 } } // namespace v8::internal 1720 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698