| 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 3188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3199 } | 3199 } |
| 3200 registers_remapped_ = true; | 3200 registers_remapped_ = true; |
| 3201 | 3201 |
| 3202 for (intptr_t i = 0; i < InputCount(); i++) { | 3202 for (intptr_t i = 0; i < InputCount(); i++) { |
| 3203 locations_[i] = LocationAt(i).RemapForSlowPath( | 3203 locations_[i] = LocationAt(i).RemapForSlowPath( |
| 3204 InputAt(i)->definition(), cpu_reg_slots, fpu_reg_slots); | 3204 InputAt(i)->definition(), cpu_reg_slots, fpu_reg_slots); |
| 3205 } | 3205 } |
| 3206 } | 3206 } |
| 3207 | 3207 |
| 3208 | 3208 |
| 3209 LocationSummary* CurrentContextInstr::MakeLocationSummary(Zone* zone, | 3209 LocationSummary* SpecialParameterInstr::MakeLocationSummary(Zone* zone, |
| 3210 bool opt) const { | 3210 bool opt) const { |
| 3211 // Only appears in initial definitions, never in normal code. | 3211 // Only appears in initial definitions, never in normal code. |
| 3212 UNREACHABLE(); | 3212 UNREACHABLE(); |
| 3213 return NULL; | 3213 return NULL; |
| 3214 } | 3214 } |
| 3215 | 3215 |
| 3216 | 3216 |
| 3217 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3217 void SpecialParameterInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3218 // Only appears in initial definitions, never in normal code. | 3218 // Only appears in initial definitions, never in normal code. |
| 3219 UNREACHABLE(); | 3219 UNREACHABLE(); |
| 3220 } | 3220 } |
| 3221 | 3221 |
| 3222 | 3222 |
| 3223 LocationSummary* DropTempsInstr::MakeLocationSummary(Zone* zone, | 3223 LocationSummary* DropTempsInstr::MakeLocationSummary(Zone* zone, |
| 3224 bool optimizing) const { | 3224 bool optimizing) const { |
| 3225 return (InputCount() == 1) | 3225 return (InputCount() == 1) |
| 3226 ? LocationSummary::Make(zone, 1, Location::SameAsFirstInput(), | 3226 ? LocationSummary::Make(zone, 1, Location::SameAsFirstInput(), |
| 3227 LocationSummary::kNoCall) | 3227 LocationSummary::kNoCall) |
| (...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4361 "native function '%s' (%" Pd " arguments) cannot be found", | 4361 "native function '%s' (%" Pd " arguments) cannot be found", |
| 4362 native_name().ToCString(), function().NumParameters()); | 4362 native_name().ToCString(), function().NumParameters()); |
| 4363 } | 4363 } |
| 4364 set_is_auto_scope(auto_setup_scope); | 4364 set_is_auto_scope(auto_setup_scope); |
| 4365 set_native_c_function(native_function); | 4365 set_native_c_function(native_function); |
| 4366 } | 4366 } |
| 4367 | 4367 |
| 4368 #undef __ | 4368 #undef __ |
| 4369 | 4369 |
| 4370 } // namespace dart | 4370 } // namespace dart |
| OLD | NEW |