Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: src/compiler/pipeline.cc

Issue 1934563002: [compiler] Fix TurboFan to respect kOptimizeFromBytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698