| 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/globals.h" // Needed here to get TARGET_ARCH_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 5270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5281 | 5281 |
| 5282 void SmiToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5282 void SmiToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 5283 const Register value = locs()->in(0).reg(); | 5283 const Register value = locs()->in(0).reg(); |
| 5284 const DRegister result = EvenDRegisterOf(locs()->out(0).fpu_reg()); | 5284 const DRegister result = EvenDRegisterOf(locs()->out(0).fpu_reg()); |
| 5285 __ SmiUntag(IP, value); | 5285 __ SmiUntag(IP, value); |
| 5286 __ vmovsr(STMP, IP); | 5286 __ vmovsr(STMP, IP); |
| 5287 __ vcvtdi(result, STMP); | 5287 __ vcvtdi(result, STMP); |
| 5288 } | 5288 } |
| 5289 | 5289 |
| 5290 | 5290 |
| 5291 LocationSummary* MintToDoubleInstr::MakeLocationSummary(Isolate* isolate, |
| 5292 bool opt) const { |
| 5293 UNIMPLEMENTED(); |
| 5294 return NULL; |
| 5295 } |
| 5296 |
| 5297 |
| 5298 void MintToDoubleInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 5299 UNIMPLEMENTED(); |
| 5300 } |
| 5301 |
| 5302 |
| 5291 LocationSummary* DoubleToIntegerInstr::MakeLocationSummary(Isolate* isolate, | 5303 LocationSummary* DoubleToIntegerInstr::MakeLocationSummary(Isolate* isolate, |
| 5292 bool opt) const { | 5304 bool opt) const { |
| 5293 const intptr_t kNumInputs = 1; | 5305 const intptr_t kNumInputs = 1; |
| 5294 const intptr_t kNumTemps = 0; | 5306 const intptr_t kNumTemps = 0; |
| 5295 LocationSummary* result = new(isolate) LocationSummary( | 5307 LocationSummary* result = new(isolate) LocationSummary( |
| 5296 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); | 5308 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); |
| 5297 result->set_in(0, Location::RegisterLocation(R1)); | 5309 result->set_in(0, Location::RegisterLocation(R1)); |
| 5298 result->set_out(0, Location::RegisterLocation(R0)); | 5310 result->set_out(0, Location::RegisterLocation(R0)); |
| 5299 return result; | 5311 return result; |
| 5300 } | 5312 } |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7019 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 7031 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 7020 #if defined(DEBUG) | 7032 #if defined(DEBUG) |
| 7021 __ LoadImmediate(R4, kInvalidObjectPointer); | 7033 __ LoadImmediate(R4, kInvalidObjectPointer); |
| 7022 __ LoadImmediate(R5, kInvalidObjectPointer); | 7034 __ LoadImmediate(R5, kInvalidObjectPointer); |
| 7023 #endif | 7035 #endif |
| 7024 } | 7036 } |
| 7025 | 7037 |
| 7026 } // namespace dart | 7038 } // namespace dart |
| 7027 | 7039 |
| 7028 #endif // defined TARGET_ARCH_ARM | 7040 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |