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

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

Issue 2751543003: VM: Simplify lowering of is-tests. (Closed)
Patch Set: fix dbc build 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.h ('k') | runtime/vm/intermediate_language_arm64.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 1
2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 6 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
7 #if defined(TARGET_ARCH_ARM) 7 #if defined(TARGET_ARCH_ARM)
8 8
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 10
(...skipping 2356 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 summary->set_in(1, Location::RegisterLocation(R1)); 2367 summary->set_in(1, Location::RegisterLocation(R1));
2368 summary->set_out(0, Location::RegisterLocation(R0)); 2368 summary->set_out(0, Location::RegisterLocation(R0));
2369 return summary; 2369 return summary;
2370 } 2370 }
2371 2371
2372 2372
2373 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2373 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2374 ASSERT(locs()->in(0).reg() == R0); // Value. 2374 ASSERT(locs()->in(0).reg() == R0); // Value.
2375 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments. 2375 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments.
2376 2376
2377 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(), 2377 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs());
2378 locs());
2379 ASSERT(locs()->out(0).reg() == R0); 2378 ASSERT(locs()->out(0).reg() == R0);
2380 } 2379 }
2381 2380
2382 2381
2383 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, 2382 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone,
2384 bool opt) const { 2383 bool opt) const {
2385 const intptr_t kNumInputs = 2; 2384 const intptr_t kNumInputs = 2;
2386 const intptr_t kNumTemps = 0; 2385 const intptr_t kNumTemps = 0;
2387 LocationSummary* locs = new (zone) 2386 LocationSummary* locs = new (zone)
2388 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); 2387 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall);
(...skipping 4852 matching lines...) Expand 10 before | Expand all | Expand 10 after
7241 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 7240 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
7242 kGrowRegExpStackRuntimeEntry, 1, locs()); 7241 kGrowRegExpStackRuntimeEntry, 1, locs());
7243 __ Drop(1); 7242 __ Drop(1);
7244 __ Pop(result); 7243 __ Pop(result);
7245 } 7244 }
7246 7245
7247 7246
7248 } // namespace dart 7247 } // namespace dart
7249 7248
7250 #endif // defined TARGET_ARCH_ARM 7249 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698