OLD | NEW |
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 #include "src/compiler/source-position.h" | 5 #include "src/compiler/source-position.h" |
6 #include "src/compiler/graph.h" | 6 #include "src/compiler/graph.h" |
7 #include "src/compiler/node-aux-data-inl.h" | 7 #include "src/compiler/node-aux-data.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
11 namespace compiler { | 11 namespace compiler { |
12 | 12 |
13 class SourcePositionTable::Decorator FINAL : public GraphDecorator { | 13 class SourcePositionTable::Decorator FINAL : public GraphDecorator { |
14 public: | 14 public: |
15 explicit Decorator(SourcePositionTable* source_positions) | 15 explicit Decorator(SourcePositionTable* source_positions) |
16 : source_positions_(source_positions) {} | 16 : source_positions_(source_positions) {} |
17 | 17 |
(...skipping 28 matching lines...) Expand all Loading... |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 SourcePosition SourcePositionTable::GetSourcePosition(Node* node) const { | 49 SourcePosition SourcePositionTable::GetSourcePosition(Node* node) const { |
50 return table_.Get(node); | 50 return table_.Get(node); |
51 } | 51 } |
52 | 52 |
53 } // namespace compiler | 53 } // namespace compiler |
54 } // namespace internal | 54 } // namespace internal |
55 } // namespace v8 | 55 } // namespace v8 |
OLD | NEW |