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

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

Issue 2748063003: Reland "VM: Simplify lowering of is-tests."" (Closed)
Patch Set: Created 3 years, 9 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_arm64.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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_DBC. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC.
6 #if defined(TARGET_ARCH_DBC) 6 #if defined(TARGET_ARCH_DBC)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 test_cache = SubtypeTestCache::New(); 194 test_cache = SubtypeTestCache::New();
195 } 195 }
196 196
197 if (compiler->is_optimizing()) { 197 if (compiler->is_optimizing()) {
198 __ Push(locs()->in(0).reg()); // Value. 198 __ Push(locs()->in(0).reg()); // Value.
199 __ Push(locs()->in(1).reg()); // Instantiator type arguments. 199 __ Push(locs()->in(1).reg()); // Instantiator type arguments.
200 } 200 }
201 201
202 __ PushConstant(type()); 202 __ PushConstant(type());
203 __ PushConstant(test_cache); 203 __ PushConstant(test_cache);
204 __ InstanceOf(negate_result() ? 1 : 0); 204 __ InstanceOf();
205 compiler->AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id(), 205 compiler->AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id(),
206 token_pos()); 206 token_pos());
207 compiler->RecordAfterCall(this, FlowGraphCompiler::kHasResult); 207 compiler->RecordAfterCall(this, FlowGraphCompiler::kHasResult);
208 if (compiler->is_optimizing()) { 208 if (compiler->is_optimizing()) {
209 __ PopLocal(locs()->out(0).reg()); 209 __ PopLocal(locs()->out(0).reg());
210 } 210 }
211 } 211 }
212 212
213 213
214 DEFINE_MAKE_LOCATION_SUMMARY(AssertAssignable, 214 DEFINE_MAKE_LOCATION_SUMMARY(AssertAssignable,
(...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 } 2010 }
2011 __ IfULe(length, index); 2011 __ IfULe(length, index);
2012 compiler->EmitDeopt(deopt_id(), ICData::kDeoptCheckArrayBound, 2012 compiler->EmitDeopt(deopt_id(), ICData::kDeoptCheckArrayBound,
2013 (generalized_ ? ICData::kGeneralized : 0) | 2013 (generalized_ ? ICData::kGeneralized : 0) |
2014 (licm_hoisted_ ? ICData::kHoisted : 0)); 2014 (licm_hoisted_ ? ICData::kHoisted : 0));
2015 } 2015 }
2016 2016
2017 } // namespace dart 2017 } // namespace dart
2018 2018
2019 #endif // defined TARGET_ARCH_DBC 2019 #endif // defined TARGET_ARCH_DBC
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698