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 <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 } | 611 } |
612 if (info()->is_deoptimization_enabled() && FLAG_turbo_type_feedback) { | 612 if (info()->is_deoptimization_enabled() && FLAG_turbo_type_feedback) { |
613 info()->MarkAsTypeFeedbackEnabled(); | 613 info()->MarkAsTypeFeedbackEnabled(); |
614 } | 614 } |
615 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; | 615 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; |
616 } | 616 } |
617 | 617 |
618 // TODO(mstarzinger): Hack to ensure that certain call descriptors are | 618 // TODO(mstarzinger): Hack to ensure that certain call descriptors are |
619 // initialized on the main thread, since it is needed off-thread by the | 619 // initialized on the main thread, since it is needed off-thread by the |
620 // effect control linearizer. | 620 // effect control linearizer. |
621 CodeFactory::CopyFixedArray(info()->isolate()); | 621 CodeFactory::CopyFastSmiOrObjectElements(info()->isolate()); |
| 622 CodeFactory::GrowFastDoubleElements(info()->isolate()); |
| 623 CodeFactory::GrowFastSmiOrObjectElements(info()->isolate()); |
622 CodeFactory::ToNumber(info()->isolate()); | 624 CodeFactory::ToNumber(info()->isolate()); |
623 | 625 |
624 linkage_ = new (&zone_) Linkage(Linkage::ComputeIncoming(&zone_, info())); | 626 linkage_ = new (&zone_) Linkage(Linkage::ComputeIncoming(&zone_, info())); |
625 | 627 |
626 if (!pipeline_.CreateGraph()) { | 628 if (!pipeline_.CreateGraph()) { |
627 if (isolate()->has_pending_exception()) return FAILED; // Stack overflowed. | 629 if (isolate()->has_pending_exception()) return FAILED; // Stack overflowed. |
628 return AbortOptimization(kGraphBuildingFailed); | 630 return AbortOptimization(kGraphBuildingFailed); |
629 } | 631 } |
630 | 632 |
631 return SUCCEEDED; | 633 return SUCCEEDED; |
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1895 data->DeleteRegisterAllocationZone(); | 1897 data->DeleteRegisterAllocationZone(); |
1896 } | 1898 } |
1897 | 1899 |
1898 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1900 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1899 | 1901 |
1900 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1902 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1901 | 1903 |
1902 } // namespace compiler | 1904 } // namespace compiler |
1903 } // namespace internal | 1905 } // namespace internal |
1904 } // namespace v8 | 1906 } // namespace v8 |
OLD | NEW |