| 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/code-generator.h" | 9 #include "src/compiler/code-generator.h" |
| 10 #include "src/compiler/graph-replay.h" | 10 #include "src/compiler/graph-replay.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 if (VerifyGraphs()) Verifier::Run(graph); | 80 if (VerifyGraphs()) Verifier::Run(graph); |
| 81 } | 81 } |
| 82 | 82 |
| 83 | 83 |
| 84 class AstGraphBuilderWithPositions : public AstGraphBuilder { | 84 class AstGraphBuilderWithPositions : public AstGraphBuilder { |
| 85 public: | 85 public: |
| 86 explicit AstGraphBuilderWithPositions(CompilationInfo* info, JSGraph* jsgraph, | 86 explicit AstGraphBuilderWithPositions(CompilationInfo* info, JSGraph* jsgraph, |
| 87 SourcePositionTable* source_positions) | 87 SourcePositionTable* source_positions) |
| 88 : AstGraphBuilder(info, jsgraph), source_positions_(source_positions) {} | 88 : AstGraphBuilder(info, jsgraph), source_positions_(source_positions) {} |
| 89 | 89 |
| 90 bool CreateGraph() V8_OVERRIDE { | 90 bool CreateGraph() { |
| 91 SourcePositionTable::Scope pos(source_positions_, | 91 SourcePositionTable::Scope pos(source_positions_, |
| 92 SourcePosition::Unknown()); | 92 SourcePosition::Unknown()); |
| 93 return AstGraphBuilder::CreateGraph(); | 93 return AstGraphBuilder::CreateGraph(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 #define DEF_VISIT(type) \ | 96 #define DEF_VISIT(type) \ |
| 97 virtual void Visit##type(type* node) V8_OVERRIDE { \ | 97 virtual void Visit##type(type* node) V8_OVERRIDE { \ |
| 98 SourcePositionTable::Scope pos(source_positions_, \ | 98 SourcePositionTable::Scope pos(source_positions_, \ |
| 99 SourcePosition(node->position())); \ | 99 SourcePosition(node->position())); \ |
| 100 AstGraphBuilder::Visit##type(node); \ | 100 AstGraphBuilder::Visit##type(node); \ |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 } | 304 } |
| 305 | 305 |
| 306 | 306 |
| 307 void Pipeline::TearDown() { | 307 void Pipeline::TearDown() { |
| 308 InstructionOperand::TearDownCaches(); | 308 InstructionOperand::TearDownCaches(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace compiler | 311 } // namespace compiler |
| 312 } // namespace internal | 312 } // namespace internal |
| 313 } // namespace v8 | 313 } // namespace v8 |
| OLD | NEW |