| 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 <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/adapters.h" | 10 #include "src/base/adapters.h" |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 JSCreateLowering create_lowering( | 880 JSCreateLowering create_lowering( |
| 881 &graph_reducer, data->info()->dependencies(), data->jsgraph(), | 881 &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
| 882 literals_array, temp_zone); | 882 literals_array, temp_zone); |
| 883 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; | 883 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
| 884 if (data->info()->is_deoptimization_enabled()) { | 884 if (data->info()->is_deoptimization_enabled()) { |
| 885 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; | 885 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; |
| 886 } | 886 } |
| 887 if (data->info()->is_optimizing_from_bytecode()) { | 887 if (data->info()->is_optimizing_from_bytecode()) { |
| 888 typed_lowering_flags |= JSTypedLowering::kDisableIntegerBinaryOpReduction; | 888 typed_lowering_flags |= JSTypedLowering::kDisableIntegerBinaryOpReduction; |
| 889 } | 889 } |
| 890 if (data->info()->is_type_feedback_enabled()) { | |
| 891 typed_lowering_flags |= JSTypedLowering::kTypeFeedbackEnabled; | |
| 892 } | |
| 893 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), | 890 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
| 894 typed_lowering_flags, data->jsgraph(), | 891 typed_lowering_flags, data->jsgraph(), |
| 895 temp_zone); | 892 temp_zone); |
| 896 JSIntrinsicLowering intrinsic_lowering( | 893 JSIntrinsicLowering intrinsic_lowering( |
| 897 &graph_reducer, data->jsgraph(), | 894 &graph_reducer, data->jsgraph(), |
| 898 data->info()->is_deoptimization_enabled() | 895 data->info()->is_deoptimization_enabled() |
| 899 ? JSIntrinsicLowering::kDeoptimizationEnabled | 896 ? JSIntrinsicLowering::kDeoptimizationEnabled |
| 900 : JSIntrinsicLowering::kDeoptimizationDisabled); | 897 : JSIntrinsicLowering::kDeoptimizationDisabled); |
| 901 ValueNumberingReducer value_numbering(temp_zone, data->graph()->zone()); | 898 ValueNumberingReducer value_numbering(temp_zone, data->graph()->zone()); |
| 902 SimplifiedOperatorReducer simple_reducer(&graph_reducer, data->jsgraph()); | 899 SimplifiedOperatorReducer simple_reducer(&graph_reducer, data->jsgraph()); |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 data->DeleteRegisterAllocationZone(); | 1828 data->DeleteRegisterAllocationZone(); |
| 1832 } | 1829 } |
| 1833 | 1830 |
| 1834 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1831 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 1835 | 1832 |
| 1836 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1833 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 1837 | 1834 |
| 1838 } // namespace compiler | 1835 } // namespace compiler |
| 1839 } // namespace internal | 1836 } // namespace internal |
| 1840 } // namespace v8 | 1837 } // namespace v8 |
| OLD | NEW |