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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2352 __ Pop(kResultReg); | 2352 __ Pop(kResultReg); |
2353 __ Bind(&done); | 2353 __ Bind(&done); |
2354 return; | 2354 return; |
2355 } | 2355 } |
2356 } | 2356 } |
2357 | 2357 |
2358 __ Bind(&slow_path); | 2358 __ Bind(&slow_path); |
2359 const Code& stub = Code::ZoneHandle(compiler->zone(), | 2359 const Code& stub = Code::ZoneHandle(compiler->zone(), |
2360 StubCode::AllocateArray_entry()->code()); | 2360 StubCode::AllocateArray_entry()->code()); |
2361 compiler->AddStubCallTarget(stub); | 2361 compiler->AddStubCallTarget(stub); |
2362 if (deopt_id() == Thread::kNoDeoptId) { | 2362 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), |
2363 ASSERT(compiler->is_optimizing()); | 2363 *StubCode::AllocateArray_entry(), |
2364 compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(), | 2364 RawPcDescriptors::kOther, locs()); |
2365 RawPcDescriptors::kOther, locs()); | |
2366 } else { | |
2367 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), | |
2368 *StubCode::AllocateArray_entry(), | |
2369 RawPcDescriptors::kOther, locs()); | |
2370 } | |
2371 __ Bind(&done); | 2365 __ Bind(&done); |
2372 ASSERT(locs()->out(0).reg() == kResultReg); | 2366 ASSERT(locs()->out(0).reg() == kResultReg); |
2373 } | 2367 } |
2374 | 2368 |
2375 | 2369 |
2376 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, | 2370 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, |
2377 bool opt) const { | 2371 bool opt) const { |
2378 const intptr_t kNumInputs = 1; | 2372 const intptr_t kNumInputs = 1; |
2379 const intptr_t kNumTemps = | 2373 const intptr_t kNumTemps = |
2380 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 2 : 0); | 2374 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 2 : 0); |
(...skipping 3704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6085 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | 6079 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), |
6086 kGrowRegExpStackRuntimeEntry, 1, locs()); | 6080 kGrowRegExpStackRuntimeEntry, 1, locs()); |
6087 __ lw(result, Address(SP, 1 * kWordSize)); | 6081 __ lw(result, Address(SP, 1 * kWordSize)); |
6088 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 6082 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
6089 } | 6083 } |
6090 | 6084 |
6091 | 6085 |
6092 } // namespace dart | 6086 } // namespace dart |
6093 | 6087 |
6094 #endif // defined TARGET_ARCH_MIPS | 6088 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |