| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 js_type_feedback), | 342 js_type_feedback), |
| 343 source_positions_(source_positions), | 343 source_positions_(source_positions), |
| 344 start_position_(info->shared_info()->start_position()) {} | 344 start_position_(info->shared_info()->start_position()) {} |
| 345 | 345 |
| 346 bool CreateGraph(bool constant_context, bool stack_check) { | 346 bool CreateGraph(bool constant_context, bool stack_check) { |
| 347 SourcePositionTable::Scope pos_scope(source_positions_, start_position_); | 347 SourcePositionTable::Scope pos_scope(source_positions_, start_position_); |
| 348 return AstGraphBuilder::CreateGraph(constant_context, stack_check); | 348 return AstGraphBuilder::CreateGraph(constant_context, stack_check); |
| 349 } | 349 } |
| 350 | 350 |
| 351 #define DEF_VISIT(type) \ | 351 #define DEF_VISIT(type) \ |
| 352 void Visit##type(type* node) OVERRIDE { \ | 352 void Visit##type(type* node) override { \ |
| 353 SourcePositionTable::Scope pos(source_positions_, \ | 353 SourcePositionTable::Scope pos(source_positions_, \ |
| 354 SourcePosition(node->position())); \ | 354 SourcePosition(node->position())); \ |
| 355 AstGraphBuilder::Visit##type(node); \ | 355 AstGraphBuilder::Visit##type(node); \ |
| 356 } | 356 } |
| 357 AST_NODE_LIST(DEF_VISIT) | 357 AST_NODE_LIST(DEF_VISIT) |
| 358 #undef DEF_VISIT | 358 #undef DEF_VISIT |
| 359 | 359 |
| 360 private: | 360 private: |
| 361 SourcePositionTable* source_positions_; | 361 SourcePositionTable* source_positions_; |
| 362 SourcePosition start_position_; | 362 SourcePosition start_position_; |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 | 1262 |
| 1263 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { | 1263 if (FLAG_trace_turbo && !data->MayHaveUnverifiableGraph()) { |
| 1264 TurboCfgFile tcf(data->isolate()); | 1264 TurboCfgFile tcf(data->isolate()); |
| 1265 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); | 1265 tcf << AsC1VAllocator("CodeGen", data->register_allocator()); |
| 1266 } | 1266 } |
| 1267 } | 1267 } |
| 1268 | 1268 |
| 1269 } // namespace compiler | 1269 } // namespace compiler |
| 1270 } // namespace internal | 1270 } // namespace internal |
| 1271 } // namespace v8 | 1271 } // namespace v8 |
| OLD | NEW |