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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 if (!FLAG_always_opt) { | 531 if (!FLAG_always_opt) { |
532 info()->MarkAsBailoutOnUninitialized(); | 532 info()->MarkAsBailoutOnUninitialized(); |
533 } | 533 } |
534 if (FLAG_native_context_specialization) { | 534 if (FLAG_native_context_specialization) { |
535 info()->MarkAsNativeContextSpecializing(); | 535 info()->MarkAsNativeContextSpecializing(); |
536 } | 536 } |
537 } | 537 } |
538 if (!info()->shared_info()->asm_function() || FLAG_turbo_asm_deoptimization) { | 538 if (!info()->shared_info()->asm_function() || FLAG_turbo_asm_deoptimization) { |
539 info()->MarkAsDeoptimizationEnabled(); | 539 info()->MarkAsDeoptimizationEnabled(); |
540 } | 540 } |
541 if (!info()->shared_info()->HasBytecodeArray()) { | 541 if (!info()->is_optimizing_from_bytecode()) { |
542 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; | 542 if (!Compiler::EnsureDeoptimizationSupport(info())) return FAILED; |
543 } | 543 } |
544 | 544 |
545 if (!pipeline_.CreateGraph()) { | 545 if (!pipeline_.CreateGraph()) { |
546 if (isolate()->has_pending_exception()) return FAILED; // Stack overflowed. | 546 if (isolate()->has_pending_exception()) return FAILED; // Stack overflowed. |
547 return AbortOptimization(kGraphBuildingFailed); | 547 return AbortOptimization(kGraphBuildingFailed); |
548 } | 548 } |
549 | 549 |
550 return SUCCEEDED; | 550 return SUCCEEDED; |
551 } | 551 } |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 data->DeleteRegisterAllocationZone(); | 1698 data->DeleteRegisterAllocationZone(); |
1699 } | 1699 } |
1700 | 1700 |
1701 CompilationInfo* Pipeline::info() const { return data_->info(); } | 1701 CompilationInfo* Pipeline::info() const { return data_->info(); } |
1702 | 1702 |
1703 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1703 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
1704 | 1704 |
1705 } // namespace compiler | 1705 } // namespace compiler |
1706 } // namespace internal | 1706 } // namespace internal |
1707 } // namespace v8 | 1707 } // namespace v8 |
OLD | NEW |