| 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/constant_propagator.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 return value()->definition(); | 2022 return value()->definition(); |
| 2023 } | 2023 } |
| 2024 ConstantInstr* null_constant = flow_graph->constant_null(); | 2024 ConstantInstr* null_constant = flow_graph->constant_null(); |
| 2025 instantiator_type_arguments()->BindTo(null_constant); | 2025 instantiator_type_arguments()->BindTo(null_constant); |
| 2026 } | 2026 } |
| 2027 return this; | 2027 return this; |
| 2028 } | 2028 } |
| 2029 | 2029 |
| 2030 | 2030 |
| 2031 Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) { | 2031 Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) { |
| 2032 return (Isolate::Current()->TypeChecksEnabled() || HasUses()) ? this : NULL; | 2032 return (Isolate::Current()->flags().type_checks() || HasUses()) ? this : NULL; |
| 2033 } | 2033 } |
| 2034 | 2034 |
| 2035 | 2035 |
| 2036 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, | 2036 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, |
| 2037 bool opt) const { | 2037 bool opt) const { |
| 2038 const intptr_t kNumInputs = 0; | 2038 const intptr_t kNumInputs = 0; |
| 2039 const intptr_t kNumTemps = 0; | 2039 const intptr_t kNumTemps = 0; |
| 2040 LocationSummary* locs = new(zone) LocationSummary( | 2040 LocationSummary* locs = new(zone) LocationSummary( |
| 2041 zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 2041 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 2042 return locs; | 2042 return locs; |
| (...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3613 case Token::kTRUNCDIV: return 0; | 3613 case Token::kTRUNCDIV: return 0; |
| 3614 case Token::kMOD: return 1; | 3614 case Token::kMOD: return 1; |
| 3615 default: UNIMPLEMENTED(); return -1; | 3615 default: UNIMPLEMENTED(); return -1; |
| 3616 } | 3616 } |
| 3617 } | 3617 } |
| 3618 | 3618 |
| 3619 | 3619 |
| 3620 #undef __ | 3620 #undef __ |
| 3621 | 3621 |
| 3622 } // namespace dart | 3622 } // namespace dart |
| OLD | NEW |