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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 info()->MarkAsFunctionContextSpecializing(); | 568 info()->MarkAsFunctionContextSpecializing(); |
569 } else { | 569 } else { |
570 if (!FLAG_always_opt) { | 570 if (!FLAG_always_opt) { |
571 info()->MarkAsBailoutOnUninitialized(); | 571 info()->MarkAsBailoutOnUninitialized(); |
572 } | 572 } |
573 if (FLAG_turbo_loop_peeling) { | 573 if (FLAG_turbo_loop_peeling) { |
574 info()->MarkAsLoopPeelingEnabled(); | 574 info()->MarkAsLoopPeelingEnabled(); |
575 } | 575 } |
576 } | 576 } |
577 if (info()->is_optimizing_from_bytecode() || | 577 if (info()->is_optimizing_from_bytecode() || |
578 !info()->shared_info()->asm_function() || FLAG_turbo_asm_deoptimization) { | 578 !info()->shared_info()->asm_function()) { |
579 info()->MarkAsDeoptimizationEnabled(); | 579 info()->MarkAsDeoptimizationEnabled(); |
580 if (FLAG_inline_accessors) { | 580 if (FLAG_inline_accessors) { |
581 info()->MarkAsAccessorInliningEnabled(); | 581 info()->MarkAsAccessorInliningEnabled(); |
582 } | 582 } |
583 } | 583 } |
584 if (!info()->is_optimizing_from_bytecode()) { | 584 if (!info()->is_optimizing_from_bytecode()) { |
585 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; | 585 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; |
586 } else if (FLAG_turbo_inlining) { | 586 } else if (FLAG_turbo_inlining) { |
587 info()->MarkAsInliningEnabled(); | 587 info()->MarkAsInliningEnabled(); |
588 } | 588 } |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 data->DeleteRegisterAllocationZone(); | 1974 data->DeleteRegisterAllocationZone(); |
1975 } | 1975 } |
1976 | 1976 |
1977 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1977 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1978 | 1978 |
1979 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1979 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1980 | 1980 |
1981 } // namespace compiler | 1981 } // namespace compiler |
1982 } // namespace internal | 1982 } // namespace internal |
1983 } // namespace v8 | 1983 } // namespace v8 |
OLD | NEW |