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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_test.cc ('k') | runtime/vm/intrinsifier.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 2140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2151 __ popq(kResultReg); 2151 __ popq(kResultReg);
2152 __ Bind(&done); 2152 __ Bind(&done);
2153 return; 2153 return;
2154 } 2154 }
2155 } 2155 }
2156 2156
2157 __ Bind(&slow_path); 2157 __ Bind(&slow_path);
2158 const Code& stub = Code::ZoneHandle(compiler->zone(), 2158 const Code& stub = Code::ZoneHandle(compiler->zone(),
2159 StubCode::AllocateArray_entry()->code()); 2159 StubCode::AllocateArray_entry()->code());
2160 compiler->AddStubCallTarget(stub); 2160 compiler->AddStubCallTarget(stub);
2161 if (deopt_id() == Thread::kNoDeoptId) { 2161 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(),
2162 ASSERT(compiler->is_optimizing()); 2162 *StubCode::AllocateArray_entry(),
2163 compiler->GenerateCall(token_pos(), *StubCode::AllocateArray_entry(), 2163 RawPcDescriptors::kOther, locs());
2164 RawPcDescriptors::kOther, locs());
2165 } else {
2166 compiler->GenerateCallWithDeopt(token_pos(), deopt_id(),
2167 *StubCode::AllocateArray_entry(),
2168 RawPcDescriptors::kOther, locs());
2169 }
2170 __ Bind(&done); 2164 __ Bind(&done);
2171 ASSERT(locs()->out(0).reg() == kResultReg); 2165 ASSERT(locs()->out(0).reg() == kResultReg);
2172 } 2166 }
2173 2167
2174 2168
2175 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone, 2169 LocationSummary* LoadFieldInstr::MakeLocationSummary(Zone* zone,
2176 bool opt) const { 2170 bool opt) const {
2177 const intptr_t kNumInputs = 1; 2171 const intptr_t kNumInputs = 1;
2178 const intptr_t kNumTemps = 2172 const intptr_t kNumTemps =
2179 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 2 : 0); 2173 (IsUnboxedLoad() && opt) ? 1 : ((IsPotentialUnboxedLoad()) ? 2 : 0);
(...skipping 4602 matching lines...) Expand 10 before | Expand all | Expand 10 after
6782 __ Drop(1); 6776 __ Drop(1);
6783 __ popq(result); 6777 __ popq(result);
6784 } 6778 }
6785 6779
6786 6780
6787 } // namespace dart 6781 } // namespace dart
6788 6782
6789 #undef __ 6783 #undef __
6790 6784
6791 #endif // defined TARGET_ARCH_X64 6785 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_test.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698