Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: runtime/vm/intermediate_language_mips.cc

Issue 2896903002: Shuffle around deopt id allocation to give the flow graph builder a chance to record other data as … (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(), 2362 if (deopt_id() == Thread::kNoDeoptId) {
2363 *StubCode::AllocateArray_entry(), 2363 ASSERT(compiler->is_optimizing());
2364 RawPcDescriptors::kOther, locs()); 2364 compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(),
2365 RawPcDescriptors::kOther, locs());
2366 } else {
2367 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(),
2368 *StubCode::AllocateArray_entry(),
2369 RawPcDescriptors::kOther, locs());
2370 }
2365 __ Bind(&done); 2371 __ Bind(&done);
2366 ASSERT(locs()->out(0).reg() == kResultReg); 2372 ASSERT(locs()->out(0).reg() == kResultReg);
2367 } 2373 }
2368 2374
2369 2375
2370 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, 2376 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone,
2371 bool opt) const { 2377 bool opt) const {
2372 const intptr_t kNumInputs = 1; 2378 const intptr_t kNumInputs = 1;
2373 const intptr_t kNumTemps = 2379 const intptr_t kNumTemps =
2374 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 2 : 0); 2380 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 2 : 0);
(...skipping 3714 matching lines...) Expand 10 before | Expand all | Expand 10 after
6089 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6095 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6090 kGrowRegExpStackRuntimeEntry, 1, locs()); 6096 kGrowRegExpStackRuntimeEntry, 1, locs());
6091 __ lw(result, Address(SP, 1 * kWordSize)); 6097 __ lw(result, Address(SP, 1 * kWordSize));
6092 __ addiu(SP, SP, Immediate(2 * kWordSize)); 6098 __ addiu(SP, SP, Immediate(2 * kWordSize));
6093 } 6099 }
6094 6100
6095 6101
6096 } // namespace dart 6102 } // namespace dart
6097 6103
6098 #endif // defined TARGET_ARCH_MIPS 6104 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698