OLD | NEW |
1 | 1 |
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. | 6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
7 #if defined(TARGET_ARCH_ARM) | 7 #if defined(TARGET_ARCH_ARM) |
8 | 8 |
9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
10 | 10 |
(...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2478 kAllocateArrayRuntimeEntry, 2, locs()); | 2478 kAllocateArrayRuntimeEntry, 2, locs()); |
2479 __ Drop(2); | 2479 __ Drop(2); |
2480 __ Pop(kResultReg); | 2480 __ Pop(kResultReg); |
2481 __ Bind(&done); | 2481 __ Bind(&done); |
2482 return; | 2482 return; |
2483 } | 2483 } |
2484 } | 2484 } |
2485 const Code& stub = Code::ZoneHandle(compiler->zone(), | 2485 const Code& stub = Code::ZoneHandle(compiler->zone(), |
2486 StubCode::AllocateArray_entry()->code()); | 2486 StubCode::AllocateArray_entry()->code()); |
2487 compiler->AddStubCallTarget(stub); | 2487 compiler->AddStubCallTarget(stub); |
2488 if (deopt_id() == Thread::kNoDeoptId) { | 2488 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), |
2489 ASSERT(compiler->is_optimizing()); | 2489 *StubCode::AllocateArray_entry(), |
2490 compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(), | 2490 RawPcDescriptors::kOther, locs()); |
2491 RawPcDescriptors::kOther, locs()); | |
2492 } else { | |
2493 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), | |
2494 *StubCode::AllocateArray_entry(), | |
2495 RawPcDescriptors::kOther, locs()); | |
2496 } | |
2497 ASSERT(locs()->out(0).reg() == kResultReg); | 2491 ASSERT(locs()->out(0).reg() == kResultReg); |
2498 } | 2492 } |
2499 | 2493 |
2500 | 2494 |
2501 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, | 2495 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, |
2502 bool opt) const { | 2496 bool opt) const { |
2503 const intptr_t kNumInputs = 1; | 2497 const intptr_t kNumInputs = 1; |
2504 const intptr_t kNumTemps = | 2498 const intptr_t kNumTemps = |
2505 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 3 : 0); | 2499 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 3 : 0); |
2506 | 2500 |
(...skipping 4753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7260 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | 7254 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), |
7261 kGrowRegExpStackRuntimeEntry, 1, locs()); | 7255 kGrowRegExpStackRuntimeEntry, 1, locs()); |
7262 __ Drop(1); | 7256 __ Drop(1); |
7263 __ Pop(result); | 7257 __ Pop(result); |
7264 } | 7258 } |
7265 | 7259 |
7266 | 7260 |
7267 } // namespace dart | 7261 } // namespace dart |
7268 | 7262 |
7269 #endif // defined TARGET_ARCH_ARM | 7263 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |