| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 if (!info()->is_optimizing_from_bytecode()) { | 615 if (!info()->is_optimizing_from_bytecode()) { |
| 616 if (FLAG_inline_accessors) { | 616 if (FLAG_inline_accessors) { |
| 617 info()->MarkAsAccessorInliningEnabled(); | 617 info()->MarkAsAccessorInliningEnabled(); |
| 618 } | 618 } |
| 619 if (info()->is_deoptimization_enabled() && FLAG_turbo_type_feedback) { | 619 if (info()->is_deoptimization_enabled() && FLAG_turbo_type_feedback) { |
| 620 info()->MarkAsTypeFeedbackEnabled(); | 620 info()->MarkAsTypeFeedbackEnabled(); |
| 621 } | 621 } |
| 622 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; | 622 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; |
| 623 } | 623 } |
| 624 | 624 |
| 625 // TODO(mstarzinger): Hack to ensure that certain call descriptors are | |
| 626 // initialized on the main thread, since it is needed off-thread by the | |
| 627 // effect control linearizer. | |
| 628 CodeFactory::CopyFastSmiOrObjectElements(info()->isolate()); | |
| 629 CodeFactory::GrowFastDoubleElements(info()->isolate()); | |
| 630 CodeFactory::GrowFastSmiOrObjectElements(info()->isolate()); | |
| 631 CodeFactory::ToNumber(info()->isolate()); | |
| 632 | |
| 633 linkage_ = new (&zone_) Linkage(Linkage::ComputeIncoming(&zone_, info())); | 625 linkage_ = new (&zone_) Linkage(Linkage::ComputeIncoming(&zone_, info())); |
| 634 | 626 |
| 635 if (!pipeline_.CreateGraph()) { | 627 if (!pipeline_.CreateGraph()) { |
| 636 if (isolate()->has_pending_exception()) return FAILED; // Stack overflowed. | 628 if (isolate()->has_pending_exception()) return FAILED; // Stack overflowed. |
| 637 return AbortOptimization(kGraphBuildingFailed); | 629 return AbortOptimization(kGraphBuildingFailed); |
| 638 } | 630 } |
| 639 | 631 |
| 640 return SUCCEEDED; | 632 return SUCCEEDED; |
| 641 } | 633 } |
| 642 | 634 |
| (...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1950 data->DeleteRegisterAllocationZone(); | 1942 data->DeleteRegisterAllocationZone(); |
| 1951 } | 1943 } |
| 1952 | 1944 |
| 1953 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1945 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 1954 | 1946 |
| 1955 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1947 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 1956 | 1948 |
| 1957 } // namespace compiler | 1949 } // namespace compiler |
| 1958 } // namespace internal | 1950 } // namespace internal |
| 1959 } // namespace v8 | 1951 } // namespace v8 |
| OLD | NEW |