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

Side by Side Diff: runtime/vm/intermediate_language_arm64.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_arm.cc ('k') | runtime/vm/intermediate_language_dbc.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 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 summary->set_in(1, Location::RegisterLocation(R1)); 2094 summary->set_in(1, Location::RegisterLocation(R1));
2095 summary->set_out(0, Location::RegisterLocation(R0)); 2095 summary->set_out(0, Location::RegisterLocation(R0));
2096 return summary; 2096 return summary;
2097 } 2097 }
2098 2098
2099 2099
2100 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2100 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2101 ASSERT(locs()->in(0).reg() == R0); // Value. 2101 ASSERT(locs()->in(0).reg() == R0); // Value.
2102 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments. 2102 ASSERT(locs()->in(1).reg() == R1); // Instantiator type arguments.
2103 2103
2104 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(), 2104 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs());
2105 locs());
2106 ASSERT(locs()->out(0).reg() == R0); 2105 ASSERT(locs()->out(0).reg() == R0);
2107 } 2106 }
2108 2107
2109 2108
2110 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, 2109 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone,
2111 bool opt) const { 2110 bool opt) const {
2112 const intptr_t kNumInputs = 2; 2111 const intptr_t kNumInputs = 2;
2113 const intptr_t kNumTemps = 0; 2112 const intptr_t kNumTemps = 0;
2114 LocationSummary* locs = new (zone) 2113 LocationSummary* locs = new (zone)
2115 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); 2114 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall);
(...skipping 3918 matching lines...) Expand 10 before | Expand all | Expand 10 after
6034 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6033 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6035 kGrowRegExpStackRuntimeEntry, 1, locs()); 6034 kGrowRegExpStackRuntimeEntry, 1, locs());
6036 __ Drop(1); 6035 __ Drop(1);
6037 __ Pop(result); 6036 __ Pop(result);
6038 } 6037 }
6039 6038
6040 6039
6041 } // namespace dart 6040 } // namespace dart
6042 6041
6043 #endif // defined TARGET_ARCH_ARM64 6042 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698