| 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 <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 : AstGraphBuilder(local_zone, info, jsgraph, loop_assignment), | 295 : AstGraphBuilder(local_zone, info, jsgraph, loop_assignment), |
| 296 source_positions_(source_positions) {} | 296 source_positions_(source_positions) {} |
| 297 | 297 |
| 298 bool CreateGraph() { | 298 bool CreateGraph() { |
| 299 SourcePositionTable::Scope pos(source_positions_, | 299 SourcePositionTable::Scope pos(source_positions_, |
| 300 SourcePosition::Unknown()); | 300 SourcePosition::Unknown()); |
| 301 return AstGraphBuilder::CreateGraph(); | 301 return AstGraphBuilder::CreateGraph(); |
| 302 } | 302 } |
| 303 | 303 |
| 304 #define DEF_VISIT(type) \ | 304 #define DEF_VISIT(type) \ |
| 305 virtual void Visit##type(type* node) OVERRIDE { \ | 305 void Visit##type(type* node) OVERRIDE { \ |
| 306 SourcePositionTable::Scope pos(source_positions_, \ | 306 SourcePositionTable::Scope pos(source_positions_, \ |
| 307 SourcePosition(node->position())); \ | 307 SourcePosition(node->position())); \ |
| 308 AstGraphBuilder::Visit##type(node); \ | 308 AstGraphBuilder::Visit##type(node); \ |
| 309 } | 309 } |
| 310 AST_NODE_LIST(DEF_VISIT) | 310 AST_NODE_LIST(DEF_VISIT) |
| 311 #undef DEF_VISIT | 311 #undef DEF_VISIT |
| 312 | 312 |
| 313 Node* GetFunctionContext() { return AstGraphBuilder::GetFunctionContext(); } | 313 Node* GetFunctionContext() { return AstGraphBuilder::GetFunctionContext(); } |
| 314 | 314 |
| 315 private: | 315 private: |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 | 1077 |
| 1078 void Pipeline::TearDown() { | 1078 void Pipeline::TearDown() { |
| 1079 InstructionOperand::TearDownCaches(); | 1079 InstructionOperand::TearDownCaches(); |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 } // namespace compiler | 1082 } // namespace compiler |
| 1083 } // namespace internal | 1083 } // namespace internal |
| 1084 } // namespace v8 | 1084 } // namespace v8 |
| OLD | NEW |