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/adapters.h" | 10 #include "src/base/adapters.h" |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1054 OFStream os(stdout); | 1054 OFStream os(stdout); |
1055 os << "---------------------------------------------------\n" | 1055 os << "---------------------------------------------------\n" |
1056 << "Begin compiling method " << info()->GetDebugName().get() | 1056 << "Begin compiling method " << info()->GetDebugName().get() |
1057 << " using Turbofan" << std::endl; | 1057 << " using Turbofan" << std::endl; |
1058 TurboCfgFile tcf(isolate()); | 1058 TurboCfgFile tcf(isolate()); |
1059 tcf << AsC1VCompilation(info()); | 1059 tcf << AsC1VCompilation(info()); |
1060 } | 1060 } |
1061 | 1061 |
1062 data.source_positions()->AddDecorator(); | 1062 data.source_positions()->AddDecorator(); |
1063 | 1063 |
1064 if (FLAG_loop_assignment_analysis) { | 1064 if (FLAG_loop_assignment_analysis && |
1065 !data.info()->shared_info()->HasBytecodeArray()) { | |
mythria
2015/11/04 12:19:14
If this phase is required, I think we have to add
rmcilroy
2015/11/04 14:27:37
Could you dig into this a bit more and figure out
| |
1065 Run<LoopAssignmentAnalysisPhase>(); | 1066 Run<LoopAssignmentAnalysisPhase>(); |
1066 } | 1067 } |
1067 | 1068 |
1068 Run<GraphBuilderPhase>(); | 1069 Run<GraphBuilderPhase>(); |
1069 if (data.compilation_failed()) return Handle<Code>::null(); | 1070 if (data.compilation_failed()) return Handle<Code>::null(); |
1070 RunPrintAndVerify("Initial untyped", true); | 1071 RunPrintAndVerify("Initial untyped", true); |
1071 | 1072 |
1072 // Perform OSR deconstruction. | 1073 // Perform OSR deconstruction. |
1073 if (info()->is_osr()) { | 1074 if (info()->is_osr()) { |
1074 Run<OsrDeconstructionPhase>(); | 1075 Run<OsrDeconstructionPhase>(); |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1419 tcf << AsC1VRegisterAllocationData("CodeGen", | 1420 tcf << AsC1VRegisterAllocationData("CodeGen", |
1420 data->register_allocation_data()); | 1421 data->register_allocation_data()); |
1421 } | 1422 } |
1422 | 1423 |
1423 data->DeleteRegisterAllocationZone(); | 1424 data->DeleteRegisterAllocationZone(); |
1424 } | 1425 } |
1425 | 1426 |
1426 } // namespace compiler | 1427 } // namespace compiler |
1427 } // namespace internal | 1428 } // namespace internal |
1428 } // namespace v8 | 1429 } // namespace v8 |
OLD | NEW |