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 <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 data->info()->is_native_context_specializing() | 902 data->info()->is_native_context_specializing() |
903 ? handle(data->info()->closure()->literals(), data->isolate()) | 903 ? handle(data->info()->closure()->literals(), data->isolate()) |
904 : MaybeHandle<LiteralsArray>(); | 904 : MaybeHandle<LiteralsArray>(); |
905 JSCreateLowering create_lowering( | 905 JSCreateLowering create_lowering( |
906 &graph_reducer, data->info()->dependencies(), data->jsgraph(), | 906 &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
907 literals_array, temp_zone); | 907 literals_array, temp_zone); |
908 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; | 908 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
909 if (data->info()->is_deoptimization_enabled()) { | 909 if (data->info()->is_deoptimization_enabled()) { |
910 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; | 910 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; |
911 } | 911 } |
912 if (data->info()->is_optimizing_from_bytecode()) { | |
913 typed_lowering_flags |= JSTypedLowering::kDisableIntegerBinaryOpReduction; | |
914 } | |
915 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), | 912 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
916 typed_lowering_flags, data->jsgraph(), | 913 typed_lowering_flags, data->jsgraph(), |
917 temp_zone); | 914 temp_zone); |
918 SimplifiedOperatorReducer simple_reducer(&graph_reducer, data->jsgraph()); | 915 SimplifiedOperatorReducer simple_reducer(&graph_reducer, data->jsgraph()); |
919 CheckpointElimination checkpoint_elimination(&graph_reducer); | 916 CheckpointElimination checkpoint_elimination(&graph_reducer); |
920 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 917 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
921 data->common(), data->machine()); | 918 data->common(), data->machine()); |
922 AddReducer(data, &graph_reducer, &dead_code_elimination); | 919 AddReducer(data, &graph_reducer, &dead_code_elimination); |
923 AddReducer(data, &graph_reducer, &builtin_reducer); | 920 AddReducer(data, &graph_reducer, &builtin_reducer); |
924 if (data->info()->is_deoptimization_enabled()) { | 921 if (data->info()->is_deoptimization_enabled()) { |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1896 data->DeleteRegisterAllocationZone(); | 1893 data->DeleteRegisterAllocationZone(); |
1897 } | 1894 } |
1898 | 1895 |
1899 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1896 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1900 | 1897 |
1901 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1898 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1902 | 1899 |
1903 } // namespace compiler | 1900 } // namespace compiler |
1904 } // namespace internal | 1901 } // namespace internal |
1905 } // namespace v8 | 1902 } // namespace v8 |
OLD | NEW |