| 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/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/constant_propagator.h" | 10 #include "vm/constant_propagator.h" |
| (...skipping 2051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2062 } | 2062 } |
| 2063 | 2063 |
| 2064 ConstantInstr* null_constant = flow_graph->constant_null(); | 2064 ConstantInstr* null_constant = flow_graph->constant_null(); |
| 2065 instantiator_type_arguments()->BindTo(null_constant); | 2065 instantiator_type_arguments()->BindTo(null_constant); |
| 2066 } | 2066 } |
| 2067 return this; | 2067 return this; |
| 2068 } | 2068 } |
| 2069 | 2069 |
| 2070 | 2070 |
| 2071 Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) { | 2071 Definition* InstantiateTypeArgumentsInstr::Canonicalize(FlowGraph* flow_graph) { |
| 2072 return (Isolate::Current()->flags().type_checks() || HasUses()) ? this : NULL; | 2072 return (Isolate::Current()->type_checks() || HasUses()) ? this : NULL; |
| 2073 } | 2073 } |
| 2074 | 2074 |
| 2075 | 2075 |
| 2076 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, | 2076 LocationSummary* DebugStepCheckInstr::MakeLocationSummary(Zone* zone, |
| 2077 bool opt) const { | 2077 bool opt) const { |
| 2078 const intptr_t kNumInputs = 0; | 2078 const intptr_t kNumInputs = 0; |
| 2079 const intptr_t kNumTemps = 0; | 2079 const intptr_t kNumTemps = 0; |
| 2080 LocationSummary* locs = new(zone) LocationSummary( | 2080 LocationSummary* locs = new(zone) LocationSummary( |
| 2081 zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 2081 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 2082 return locs; | 2082 return locs; |
| (...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3724 set_native_c_function(native_function); | 3724 set_native_c_function(native_function); |
| 3725 function().SetIsNativeAutoSetupScope(auto_setup_scope); | 3725 function().SetIsNativeAutoSetupScope(auto_setup_scope); |
| 3726 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 3726 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
| 3727 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 3727 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
| 3728 set_is_bootstrap_native(is_bootstrap_native); | 3728 set_is_bootstrap_native(is_bootstrap_native); |
| 3729 } | 3729 } |
| 3730 | 3730 |
| 3731 #undef __ | 3731 #undef __ |
| 3732 | 3732 |
| 3733 } // namespace dart | 3733 } // namespace dart |
| OLD | NEW |