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

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: Addressed comments Created 6 years, 4 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
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/codegen.h" 7 #include "src/codegen.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/full-codegen.h" 10 #include "src/full-codegen.h"
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 if (position_recorded) { 841 if (position_recorded) {
842 DebugCodegen::GenerateSlot(masm_); 842 DebugCodegen::GenerateSlot(masm_);
843 } 843 }
844 } 844 }
845 } 845 }
846 846
847 847
848 void FullCodeGenerator::SetSourcePosition(int pos) { 848 void FullCodeGenerator::SetSourcePosition(int pos) {
849 if (pos != RelocInfo::kNoPosition) { 849 if (pos != RelocInfo::kNoPosition) {
850 masm_->positions_recorder()->RecordPosition(pos); 850 masm_->positions_recorder()->RecordPosition(pos);
851 masm_->positions_recorder()->WriteRecordedPositions();
851 } 852 }
852 } 853 }
853 854
854 855
855 // Lookup table for code generators for special runtime calls which are 856 // Lookup table for code generators for special runtime calls which are
856 // generated inline. 857 // generated inline.
857 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ 858 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \
858 &FullCodeGenerator::Emit##Name, 859 &FullCodeGenerator::Emit##Name,
859 860
860 const FullCodeGenerator::InlineFunctionGenerator 861 const FullCodeGenerator::InlineFunctionGenerator
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 } 1683 }
1683 return true; 1684 return true;
1684 } 1685 }
1685 #endif // DEBUG 1686 #endif // DEBUG
1686 1687
1687 1688
1688 #undef __ 1689 #undef __
1689 1690
1690 1691
1691 } } // namespace v8::internal 1692 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698