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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 if (FLAG_trace_turbo) { | 1046 if (FLAG_trace_turbo) { |
1047 Run<PrintGraphPhase>(phase); | 1047 Run<PrintGraphPhase>(phase); |
1048 } | 1048 } |
1049 if (FLAG_turbo_verify) { | 1049 if (FLAG_turbo_verify) { |
1050 Run<VerifyGraphPhase>(untyped); | 1050 Run<VerifyGraphPhase>(untyped); |
1051 } | 1051 } |
1052 } | 1052 } |
1053 | 1053 |
1054 | 1054 |
1055 Handle<Code> Pipeline::GenerateCode() { | 1055 Handle<Code> Pipeline::GenerateCode() { |
1056 // TODO(mstarzinger): This is just a temporary hack to make TurboFan work, | |
1057 // the correct solution is to restore the context register after invoking | |
1058 // builtins from full-codegen. | |
1059 if (Context::IsJSBuiltin(isolate()->native_context(), info()->closure())) { | |
1060 return Handle<Code>::null(); | |
1061 } | |
1062 | |
1063 ZonePool zone_pool; | 1056 ZonePool zone_pool; |
1064 base::SmartPointer<PipelineStatistics> pipeline_statistics; | 1057 base::SmartPointer<PipelineStatistics> pipeline_statistics; |
1065 | 1058 |
1066 if (FLAG_turbo_stats) { | 1059 if (FLAG_turbo_stats) { |
1067 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); | 1060 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); |
1068 pipeline_statistics->BeginPhaseKind("initializing"); | 1061 pipeline_statistics->BeginPhaseKind("initializing"); |
1069 } | 1062 } |
1070 | 1063 |
1071 if (FLAG_trace_turbo) { | 1064 if (FLAG_trace_turbo) { |
1072 FILE* json_file = OpenVisualizerLogFile(info(), nullptr, "json", "w+"); | 1065 FILE* json_file = OpenVisualizerLogFile(info(), nullptr, "json", "w+"); |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 tcf << AsC1VRegisterAllocationData("CodeGen", | 1471 tcf << AsC1VRegisterAllocationData("CodeGen", |
1479 data->register_allocation_data()); | 1472 data->register_allocation_data()); |
1480 } | 1473 } |
1481 | 1474 |
1482 data->DeleteRegisterAllocationZone(); | 1475 data->DeleteRegisterAllocationZone(); |
1483 } | 1476 } |
1484 | 1477 |
1485 } // namespace compiler | 1478 } // namespace compiler |
1486 } // namespace internal | 1479 } // namespace internal |
1487 } // namespace v8 | 1480 } // namespace v8 |
OLD | NEW |