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

Side by Side Diff: src/compiler/source-position.h

Issue 637313002: [turbofan] Output file for C1 visualizer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix 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/compiler/schedule.h ('k') | src/compiler/source-position.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_SOURCE_POSITION_H_ 5 #ifndef V8_COMPILER_SOURCE_POSITION_H_
6 #define V8_COMPILER_SOURCE_POSITION_H_ 6 #define V8_COMPILER_SOURCE_POSITION_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/node-aux-data.h" 9 #include "src/compiler/node-aux-data.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 }; 72 };
73 73
74 explicit SourcePositionTable(Graph* graph); 74 explicit SourcePositionTable(Graph* graph);
75 ~SourcePositionTable() { 75 ~SourcePositionTable() {
76 if (decorator_ != NULL) RemoveDecorator(); 76 if (decorator_ != NULL) RemoveDecorator();
77 } 77 }
78 78
79 void AddDecorator(); 79 void AddDecorator();
80 void RemoveDecorator(); 80 void RemoveDecorator();
81 81
82 SourcePosition GetSourcePosition(Node* node); 82 SourcePosition GetSourcePosition(Node* node) const;
83 83
84 private: 84 private:
85 class Decorator; 85 class Decorator;
86 86
87 Graph* graph_; 87 Graph* graph_;
88 Decorator* decorator_; 88 Decorator* decorator_;
89 SourcePosition current_position_; 89 SourcePosition current_position_;
90 NodeAuxData<SourcePosition> table_; 90 NodeAuxData<SourcePosition> table_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(SourcePositionTable); 92 DISALLOW_COPY_AND_ASSIGN(SourcePositionTable);
93 }; 93 };
94 94
95 } // namespace compiler 95 } // namespace compiler
96 } // namespace internal 96 } // namespace internal
97 } // namespace v8 97 } // namespace v8
98 98
99 #endif 99 #endif
OLDNEW
« no previous file with comments | « src/compiler/schedule.h ('k') | src/compiler/source-position.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698