OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
6 | 6 |
7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/constant_propagator.h" |
8 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
9 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
10 #include "vm/flow_graph_allocator.h" | 11 #include "vm/flow_graph_allocator.h" |
11 #include "vm/flow_graph_builder.h" | 12 #include "vm/flow_graph_builder.h" |
12 #include "vm/flow_graph_compiler.h" | 13 #include "vm/flow_graph_compiler.h" |
13 #include "vm/flow_graph_optimizer.h" | 14 #include "vm/flow_graph_optimizer.h" |
14 #include "vm/flow_graph_range_analysis.h" | 15 #include "vm/flow_graph_range_analysis.h" |
15 #include "vm/locations.h" | 16 #include "vm/locations.h" |
16 #include "vm/method_recognizer.h" | 17 #include "vm/method_recognizer.h" |
17 #include "vm/object.h" | 18 #include "vm/object.h" |
(...skipping 14 matching lines...) Expand all Loading... |
32 DEFINE_FLAG(bool, two_args_smi_icd, true, | 33 DEFINE_FLAG(bool, two_args_smi_icd, true, |
33 "Generate special IC stubs for two args Smi operations"); | 34 "Generate special IC stubs for two args Smi operations"); |
34 DEFINE_FLAG(bool, ic_range_profiling, true, | 35 DEFINE_FLAG(bool, ic_range_profiling, true, |
35 "Generate special IC stubs collecting range information " | 36 "Generate special IC stubs collecting range information " |
36 "for binary and unary arithmetic operations"); | 37 "for binary and unary arithmetic operations"); |
37 DEFINE_FLAG(bool, unbox_numeric_fields, true, | 38 DEFINE_FLAG(bool, unbox_numeric_fields, true, |
38 "Support unboxed double and float32x4 fields."); | 39 "Support unboxed double and float32x4 fields."); |
39 DECLARE_FLAG(bool, enable_type_checks); | 40 DECLARE_FLAG(bool, enable_type_checks); |
40 DECLARE_FLAG(bool, eliminate_type_checks); | 41 DECLARE_FLAG(bool, eliminate_type_checks); |
41 DECLARE_FLAG(bool, trace_optimization); | 42 DECLARE_FLAG(bool, trace_optimization); |
42 DECLARE_FLAG(bool, trace_constant_propagation); | |
43 DECLARE_FLAG(bool, throw_on_javascript_int_overflow); | 43 DECLARE_FLAG(bool, throw_on_javascript_int_overflow); |
44 | 44 |
45 Definition::Definition(intptr_t deopt_id) | 45 Definition::Definition(intptr_t deopt_id) |
46 : Instruction(deopt_id), | 46 : Instruction(deopt_id), |
47 range_(NULL), | 47 range_(NULL), |
48 type_(NULL), | 48 type_(NULL), |
49 temp_index_(-1), | 49 temp_index_(-1), |
50 ssa_temp_index_(-1), | 50 ssa_temp_index_(-1), |
51 input_use_list_(NULL), | 51 input_use_list_(NULL), |
52 env_use_list_(NULL), | 52 env_use_list_(NULL), |
(...skipping 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3468 case Token::kTRUNCDIV: return 0; | 3468 case Token::kTRUNCDIV: return 0; |
3469 case Token::kMOD: return 1; | 3469 case Token::kMOD: return 1; |
3470 default: UNIMPLEMENTED(); return -1; | 3470 default: UNIMPLEMENTED(); return -1; |
3471 } | 3471 } |
3472 } | 3472 } |
3473 | 3473 |
3474 | 3474 |
3475 #undef __ | 3475 #undef __ |
3476 | 3476 |
3477 } // namespace dart | 3477 } // namespace dart |
OLD | NEW |