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

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

Issue 2858933004: [turbofan] Lower monomorphic loads during graph building.
Patch Set: Prune headers Created 3 years, 6 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 | « src/compiler/js-type-hint-lowering.cc ('k') | no next file » | 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 <memory> 8 #include <memory>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 // Bytecode graph builder assumes deoptimization is enabled. 785 // Bytecode graph builder assumes deoptimization is enabled.
786 DCHECK(data->info()->is_deoptimization_enabled()); 786 DCHECK(data->info()->is_deoptimization_enabled());
787 JSTypeHintLowering::Flags flags = JSTypeHintLowering::kNoFlags; 787 JSTypeHintLowering::Flags flags = JSTypeHintLowering::kNoFlags;
788 if (data->info()->is_bailout_on_uninitialized()) { 788 if (data->info()->is_bailout_on_uninitialized()) {
789 flags |= JSTypeHintLowering::kBailoutOnUninitialized; 789 flags |= JSTypeHintLowering::kBailoutOnUninitialized;
790 } 790 }
791 BytecodeGraphBuilder graph_builder( 791 BytecodeGraphBuilder graph_builder(
792 temp_zone, data->info()->shared_info(), 792 temp_zone, data->info()->shared_info(),
793 handle(data->info()->closure()->feedback_vector()), 793 handle(data->info()->closure()->feedback_vector()),
794 data->info()->osr_ast_id(), data->jsgraph(), CallFrequency(1.0f), 794 data->info()->osr_ast_id(), data->jsgraph(), CallFrequency(1.0f),
795 data->source_positions(), SourcePosition::kNotInlined, flags); 795 data->source_positions(), data->native_context(),
796 data->info()->dependencies(), SourcePosition::kNotInlined, flags);
796 graph_builder.CreateGraph(); 797 graph_builder.CreateGraph();
797 } else { 798 } else {
798 // AST-based graph builder assumes deoptimization is disabled. 799 // AST-based graph builder assumes deoptimization is disabled.
799 DCHECK(!data->info()->is_deoptimization_enabled()); 800 DCHECK(!data->info()->is_deoptimization_enabled());
800 AstGraphBuilderWithPositions graph_builder( 801 AstGraphBuilderWithPositions graph_builder(
801 temp_zone, data->info(), data->jsgraph(), CallFrequency(1.0f), 802 temp_zone, data->info(), data->jsgraph(), CallFrequency(1.0f),
802 data->loop_assignment(), data->source_positions()); 803 data->loop_assignment(), data->source_positions());
803 if (!graph_builder.CreateGraph()) { 804 if (!graph_builder.CreateGraph()) {
804 data->set_compilation_failed(); 805 data->set_compilation_failed();
805 } 806 }
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
2085 data->DeleteRegisterAllocationZone(); 2086 data->DeleteRegisterAllocationZone();
2086 } 2087 }
2087 2088
2088 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 2089 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
2089 2090
2090 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 2091 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
2091 2092
2092 } // namespace compiler 2093 } // namespace compiler
2093 } // namespace internal 2094 } // namespace internal
2094 } // namespace v8 2095 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-type-hint-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698