| 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 "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 // instantiated type arguments, no proper instantiator needed. | 1448 // instantiated type arguments, no proper instantiator needed. |
| 1449 __ LoadImmediate(instantiator_reg, | 1449 __ LoadImmediate(instantiator_reg, |
| 1450 Smi::RawValue(StubCode::kNoInstantiator)); | 1450 Smi::RawValue(StubCode::kNoInstantiator)); |
| 1451 } | 1451 } |
| 1452 __ Bind(&done); | 1452 __ Bind(&done); |
| 1453 // instantiator_reg: instantiator or kNoInstantiator. | 1453 // instantiator_reg: instantiator or kNoInstantiator. |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 | 1456 |
| 1457 LocationSummary* AllocateContextInstr::MakeLocationSummary() const { | 1457 LocationSummary* AllocateContextInstr::MakeLocationSummary() const { |
| 1458 UNIMPLEMENTED(); | 1458 const intptr_t kNumInputs = 0; |
| 1459 return NULL; | 1459 const intptr_t kNumTemps = 1; |
| 1460 LocationSummary* locs = |
| 1461 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); |
| 1462 locs->set_temp(0, Location::RegisterLocation(R1)); |
| 1463 locs->set_out(Location::RegisterLocation(R0)); |
| 1464 return locs; |
| 1460 } | 1465 } |
| 1461 | 1466 |
| 1462 | 1467 |
| 1463 void AllocateContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1468 void AllocateContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 1464 UNIMPLEMENTED(); | 1469 ASSERT(locs()->temp(0).reg() == R1); |
| 1470 ASSERT(locs()->out().reg() == R0); |
| 1471 |
| 1472 __ LoadImmediate(R1, num_context_variables()); |
| 1473 const ExternalLabel label("alloc_context", |
| 1474 StubCode::AllocateContextEntryPoint()); |
| 1475 compiler->GenerateCall(token_pos(), |
| 1476 &label, |
| 1477 PcDescriptors::kOther, |
| 1478 locs()); |
| 1465 } | 1479 } |
| 1466 | 1480 |
| 1467 | 1481 |
| 1468 LocationSummary* CloneContextInstr::MakeLocationSummary() const { | 1482 LocationSummary* CloneContextInstr::MakeLocationSummary() const { |
| 1469 UNIMPLEMENTED(); | 1483 UNIMPLEMENTED(); |
| 1470 return NULL; | 1484 return NULL; |
| 1471 } | 1485 } |
| 1472 | 1486 |
| 1473 | 1487 |
| 1474 void CloneContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1488 void CloneContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2293 &label, | 2307 &label, |
| 2294 PcDescriptors::kOther, | 2308 PcDescriptors::kOther, |
| 2295 locs()); | 2309 locs()); |
| 2296 __ Drop(2); // Discard type arguments and receiver. | 2310 __ Drop(2); // Discard type arguments and receiver. |
| 2297 } | 2311 } |
| 2298 | 2312 |
| 2299 } // namespace dart | 2313 } // namespace dart |
| 2300 | 2314 |
| 2301 #endif // defined TARGET_ARCH_ARM | 2315 #endif // defined TARGET_ARCH_ARM |
| 2302 | 2316 |
| OLD | NEW |