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/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
6 | 6 |
7 #include "src/base/platform/elapsed-timer.h" | 7 #include "src/base/platform/elapsed-timer.h" |
8 #include "src/compiler/ast-graph-builder.h" | 8 #include "src/compiler/ast-graph-builder.h" |
9 #include "src/compiler/change-lowering.h" | 9 #include "src/compiler/change-lowering.h" |
10 #include "src/compiler/code-generator.h" | 10 #include "src/compiler/code-generator.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 SourcePositionTable* source_positions) | 122 SourcePositionTable* source_positions) |
123 : AstGraphBuilder(info, jsgraph), source_positions_(source_positions) {} | 123 : AstGraphBuilder(info, jsgraph), source_positions_(source_positions) {} |
124 | 124 |
125 bool CreateGraph() { | 125 bool CreateGraph() { |
126 SourcePositionTable::Scope pos(source_positions_, | 126 SourcePositionTable::Scope pos(source_positions_, |
127 SourcePosition::Unknown()); | 127 SourcePosition::Unknown()); |
128 return AstGraphBuilder::CreateGraph(); | 128 return AstGraphBuilder::CreateGraph(); |
129 } | 129 } |
130 | 130 |
131 #define DEF_VISIT(type) \ | 131 #define DEF_VISIT(type) \ |
132 virtual void Visit##type(type* node) V8_OVERRIDE { \ | 132 virtual void Visit##type(type* node) OVERRIDE { \ |
133 SourcePositionTable::Scope pos(source_positions_, \ | 133 SourcePositionTable::Scope pos(source_positions_, \ |
134 SourcePosition(node->position())); \ | 134 SourcePosition(node->position())); \ |
135 AstGraphBuilder::Visit##type(node); \ | 135 AstGraphBuilder::Visit##type(node); \ |
136 } | 136 } |
137 AST_NODE_LIST(DEF_VISIT) | 137 AST_NODE_LIST(DEF_VISIT) |
138 #undef DEF_VISIT | 138 #undef DEF_VISIT |
139 | 139 |
140 private: | 140 private: |
141 SourcePositionTable* source_positions_; | 141 SourcePositionTable* source_positions_; |
142 }; | 142 }; |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 } | 397 } |
398 | 398 |
399 | 399 |
400 void Pipeline::TearDown() { | 400 void Pipeline::TearDown() { |
401 InstructionOperand::TearDownCaches(); | 401 InstructionOperand::TearDownCaches(); |
402 } | 402 } |
403 | 403 |
404 } // namespace compiler | 404 } // namespace compiler |
405 } // namespace internal | 405 } // namespace internal |
406 } // namespace v8 | 406 } // namespace v8 |
OLD | NEW |