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

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

Issue 1994503002: [turbofan] Turn common Guard operator into simplified TypeGuard. (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 | « src/compiler/opcodes.h ('k') | src/compiler/simplified-operator.h » ('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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 857
858 858
859 struct TypedLoweringPhase { 859 struct TypedLoweringPhase {
860 static const char* phase_name() { return "typed lowering"; } 860 static const char* phase_name() { return "typed lowering"; }
861 861
862 void Run(PipelineData* data, Zone* temp_zone) { 862 void Run(PipelineData* data, Zone* temp_zone) {
863 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 863 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
864 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 864 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
865 data->common()); 865 data->common());
866 LoadElimination load_elimination(&graph_reducer, data->graph(), 866 LoadElimination load_elimination(&graph_reducer, data->graph(),
867 data->common()); 867 data->jsgraph()->simplified());
868 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); 868 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph());
869 MaybeHandle<LiteralsArray> literals_array = 869 MaybeHandle<LiteralsArray> literals_array =
870 data->info()->is_native_context_specializing() 870 data->info()->is_native_context_specializing()
871 ? handle(data->info()->closure()->literals(), data->isolate()) 871 ? handle(data->info()->closure()->literals(), data->isolate())
872 : MaybeHandle<LiteralsArray>(); 872 : MaybeHandle<LiteralsArray>();
873 JSCreateLowering create_lowering( 873 JSCreateLowering create_lowering(
874 &graph_reducer, data->info()->dependencies(), data->jsgraph(), 874 &graph_reducer, data->info()->dependencies(), data->jsgraph(),
875 literals_array, temp_zone); 875 literals_array, temp_zone);
876 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; 876 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags;
877 if (data->info()->is_deoptimization_enabled()) { 877 if (data->info()->is_deoptimization_enabled()) {
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 data->DeleteRegisterAllocationZone(); 1792 data->DeleteRegisterAllocationZone();
1793 } 1793 }
1794 1794
1795 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1795 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1796 1796
1797 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1797 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1798 1798
1799 } // namespace compiler 1799 } // namespace compiler
1800 } // namespace internal 1800 } // namespace internal
1801 } // namespace v8 1801 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698