| 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 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3233 } | 3233 } |
| 3234 registers_remapped_ = true; | 3234 registers_remapped_ = true; |
| 3235 | 3235 |
| 3236 for (intptr_t i = 0; i < InputCount(); i++) { | 3236 for (intptr_t i = 0; i < InputCount(); i++) { |
| 3237 locations_[i] = LocationAt(i).RemapForSlowPath( | 3237 locations_[i] = LocationAt(i).RemapForSlowPath( |
| 3238 InputAt(i)->definition(), cpu_reg_slots, fpu_reg_slots); | 3238 InputAt(i)->definition(), cpu_reg_slots, fpu_reg_slots); |
| 3239 } | 3239 } |
| 3240 } | 3240 } |
| 3241 | 3241 |
| 3242 | 3242 |
| 3243 LocationSummary* CurrentContextInstr::MakeLocationSummary(Zone* zone, | 3243 LocationSummary* SpecialParameterInstr::MakeLocationSummary(Zone* zone, |
| 3244 bool opt) const { | 3244 bool opt) const { |
| 3245 // Only appears in initial definitions, never in normal code. | 3245 // Only appears in initial definitions, never in normal code. |
| 3246 UNREACHABLE(); | 3246 UNREACHABLE(); |
| 3247 return NULL; | 3247 return NULL; |
| 3248 } | 3248 } |
| 3249 | 3249 |
| 3250 | 3250 |
| 3251 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3251 void SpecialParameterInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3252 // Only appears in initial definitions, never in normal code. | 3252 // Only appears in initial definitions, never in normal code. |
| 3253 UNREACHABLE(); | 3253 UNREACHABLE(); |
| 3254 } | 3254 } |
| 3255 | 3255 |
| 3256 | 3256 |
| 3257 LocationSummary* DropTempsInstr::MakeLocationSummary(Zone* zone, | 3257 LocationSummary* DropTempsInstr::MakeLocationSummary(Zone* zone, |
| 3258 bool optimizing) const { | 3258 bool optimizing) const { |
| 3259 return (InputCount() == 1) | 3259 return (InputCount() == 1) |
| 3260 ? LocationSummary::Make(zone, 1, Location::SameAsFirstInput(), | 3260 ? LocationSummary::Make(zone, 1, Location::SameAsFirstInput(), |
| 3261 LocationSummary::kNoCall) | 3261 LocationSummary::kNoCall) |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4393 "native function '%s' (%" Pd " arguments) cannot be found", | 4393 "native function '%s' (%" Pd " arguments) cannot be found", |
| 4394 native_name().ToCString(), function().NumParameters()); | 4394 native_name().ToCString(), function().NumParameters()); |
| 4395 } | 4395 } |
| 4396 set_is_auto_scope(auto_setup_scope); | 4396 set_is_auto_scope(auto_setup_scope); |
| 4397 set_native_c_function(native_function); | 4397 set_native_c_function(native_function); |
| 4398 } | 4398 } |
| 4399 | 4399 |
| 4400 #undef __ | 4400 #undef __ |
| 4401 | 4401 |
| 4402 } // namespace dart | 4402 } // namespace dart |
| OLD | NEW |