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

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

Issue 2856103002: [turbofan] Introduce dedicated CallFrequency class. (Closed)
Patch Set: Address offline feedback from jarin@. Created 3 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 | « src/compiler/js-operator.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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 if (data->info()->is_optimizing_from_bytecode()) { 758 if (data->info()->is_optimizing_from_bytecode()) {
759 // Bytecode graph builder assumes deoptimziation is enabled. 759 // Bytecode graph builder assumes deoptimziation is enabled.
760 DCHECK(data->info()->is_deoptimization_enabled()); 760 DCHECK(data->info()->is_deoptimization_enabled());
761 JSTypeHintLowering::Flags flags = JSTypeHintLowering::kNoFlags; 761 JSTypeHintLowering::Flags flags = JSTypeHintLowering::kNoFlags;
762 if (data->info()->is_bailout_on_uninitialized()) { 762 if (data->info()->is_bailout_on_uninitialized()) {
763 flags |= JSTypeHintLowering::kBailoutOnUninitialized; 763 flags |= JSTypeHintLowering::kBailoutOnUninitialized;
764 } 764 }
765 BytecodeGraphBuilder graph_builder( 765 BytecodeGraphBuilder graph_builder(
766 temp_zone, data->info()->shared_info(), 766 temp_zone, data->info()->shared_info(),
767 handle(data->info()->closure()->feedback_vector()), 767 handle(data->info()->closure()->feedback_vector()),
768 data->info()->osr_ast_id(), data->jsgraph(), 1.0f, 768 data->info()->osr_ast_id(), data->jsgraph(), CallFrequency(1.0f),
769 data->source_positions(), SourcePosition::kNotInlined, flags); 769 data->source_positions(), SourcePosition::kNotInlined, flags);
770 succeeded = graph_builder.CreateGraph(); 770 succeeded = graph_builder.CreateGraph();
771 } else { 771 } else {
772 AstGraphBuilderWithPositions graph_builder( 772 AstGraphBuilderWithPositions graph_builder(
773 temp_zone, data->info(), data->jsgraph(), 1.0f, 773 temp_zone, data->info(), data->jsgraph(), CallFrequency(1.0f),
774 data->loop_assignment(), data->source_positions()); 774 data->loop_assignment(), data->source_positions());
775 succeeded = graph_builder.CreateGraph(); 775 succeeded = graph_builder.CreateGraph();
776 } 776 }
777 777
778 if (!succeeded) { 778 if (!succeeded) {
779 data->set_compilation_failed(); 779 data->set_compilation_failed();
780 } 780 }
781 } 781 }
782 }; 782 };
783 783
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 data->DeleteRegisterAllocationZone(); 2027 data->DeleteRegisterAllocationZone();
2028 } 2028 }
2029 2029
2030 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 2030 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
2031 2031
2032 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 2032 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
2033 2033
2034 } // namespace compiler 2034 } // namespace compiler
2035 } // namespace internal 2035 } // namespace internal
2036 } // namespace v8 2036 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698