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

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

Issue 424973004: Extend CPU profiler with mapping ticks to source lines (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed v8_linux_nosnap_dbg failure 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 if (position_recorded) { 860 if (position_recorded) {
861 DebugCodegen::GenerateSlot(masm_); 861 DebugCodegen::GenerateSlot(masm_);
862 } 862 }
863 } 863 }
864 } 864 }
865 865
866 866
867 void FullCodeGenerator::SetSourcePosition(int pos) { 867 void FullCodeGenerator::SetSourcePosition(int pos) {
868 if (pos != RelocInfo::kNoPosition) { 868 if (pos != RelocInfo::kNoPosition) {
869 masm_->positions_recorder()->RecordPosition(pos); 869 masm_->positions_recorder()->RecordPosition(pos);
870 masm_->positions_recorder()->WriteRecordedPositions();
870 } 871 }
871 } 872 }
872 873
873 874
874 // Lookup table for code generators for special runtime calls which are 875 // Lookup table for code generators for special runtime calls which are
875 // generated inline. 876 // generated inline.
876 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ 877 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \
877 &FullCodeGenerator::Emit##Name, 878 &FullCodeGenerator::Emit##Name,
878 879
879 const FullCodeGenerator::InlineFunctionGenerator 880 const FullCodeGenerator::InlineFunctionGenerator
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 } 1712 }
1712 return true; 1713 return true;
1713 } 1714 }
1714 #endif // DEBUG 1715 #endif // DEBUG
1715 1716
1716 1717
1717 #undef __ 1718 #undef __
1718 1719
1719 1720
1720 } } // namespace v8::internal 1721 } } // 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