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

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

Issue 2904733003: Revert "Shuffle around deopt id allocation to give the flow graph builder a chance to record other … (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_arm.cc ('k') | runtime/vm/intermediate_language_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2207 kAllocateArrayRuntimeEntry, 2, locs()); 2207 kAllocateArrayRuntimeEntry, 2, locs());
2208 __ Drop(2); 2208 __ Drop(2);
2209 __ Pop(kResultReg); 2209 __ Pop(kResultReg);
2210 __ Bind(&done); 2210 __ Bind(&done);
2211 return; 2211 return;
2212 } 2212 }
2213 } 2213 }
2214 const Code& stub = Code::ZoneHandle(compiler->zone(), 2214 const Code& stub = Code::ZoneHandle(compiler->zone(),
2215 StubCode::AllocateArray_entry()->code()); 2215 StubCode::AllocateArray_entry()->code());
2216 compiler->AddStubCallTarget(stub); 2216 compiler->AddStubCallTarget(stub);
2217 if (deopt_id() == Thread::kNoDeoptId) { 2217 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(),
2218 ASSERT(compiler->is_optimizing()); 2218 *StubCode::AllocateArray_entry(),
2219 compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(), 2219 RawPcDescriptors::kOther, locs());
2220 RawPcDescriptors::kOther, locs());
2221 } else {
2222 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(),
2223 *StubCode::AllocateArray_entry(),
2224 RawPcDescriptors::kOther, locs());
2225 }
2226 ASSERT(locs()->out(0).reg() == kResultReg); 2220 ASSERT(locs()->out(0).reg() == kResultReg);
2227 } 2221 }
2228 2222
2229 2223
2230 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, 2224 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone,
2231 bool opt) const { 2225 bool opt) const {
2232 const intptr_t kNumInputs = 1; 2226 const intptr_t kNumInputs = 1;
2233 const intptr_t kNumTemps = 2227 const intptr_t kNumTemps =
2234 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 1 : 0); 2228 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 1 : 0);
2235 LocationSummary* locs = new (zone) LocationSummary( 2229 LocationSummary* locs = new (zone) LocationSummary(
(...skipping 3847 matching lines...) Expand 10 before | Expand all | Expand 10 after
6083 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6077 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6084 kGrowRegExpStackRuntimeEntry, 1, locs()); 6078 kGrowRegExpStackRuntimeEntry, 1, locs());
6085 __ Drop(1); 6079 __ Drop(1);
6086 __ Pop(result); 6080 __ Pop(result);
6087 } 6081 }
6088 6082
6089 6083
6090 } // namespace dart 6084 } // namespace dart
6091 6085
6092 #endif // defined TARGET_ARCH_ARM64 6086 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698