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

Side by Side Diff: runtime/vm/intermediate_language_mips.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_ia32.cc ('k') | runtime/vm/intermediate_language_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after
2239 summary->set_out(0, Location::RegisterLocation(V0)); 2239 summary->set_out(0, Location::RegisterLocation(V0));
2240 return summary; 2240 return summary;
2241 } 2241 }
2242 2242
2243 2243
2244 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2244 void InstanceOfInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2245 ASSERT(locs()->in(0).reg() == A0); // Value. 2245 ASSERT(locs()->in(0).reg() == A0); // Value.
2246 ASSERT(locs()->in(1).reg() == A1); // Instantiator type arguments. 2246 ASSERT(locs()->in(1).reg() == A1); // Instantiator type arguments.
2247 2247
2248 __ Comment("InstanceOfInstr"); 2248 __ Comment("InstanceOfInstr");
2249 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), negate_result(), 2249 compiler->GenerateInstanceOf(token_pos(), deopt_id(), type(), locs());
2250 locs());
2251 ASSERT(locs()->out(0).reg() == V0); 2250 ASSERT(locs()->out(0).reg() == V0);
2252 } 2251 }
2253 2252
2254 2253
2255 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone, 2254 LocationSummary* CreateArrayInstr::MakeLocationSummary(Zone* zone,
2256 bool opt) const { 2255 bool opt) const {
2257 const intptr_t kNumInputs = 2; 2256 const intptr_t kNumInputs = 2;
2258 const intptr_t kNumTemps = 0; 2257 const intptr_t kNumTemps = 0;
2259 LocationSummary* locs = new (zone) 2258 LocationSummary* locs = new (zone)
2260 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); 2259 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall);
(...skipping 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after
6026 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), 6025 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
6027 kGrowRegExpStackRuntimeEntry, 1, locs()); 6026 kGrowRegExpStackRuntimeEntry, 1, locs());
6028 __ lw(result, Address(SP, 1 * kWordSize)); 6027 __ lw(result, Address(SP, 1 * kWordSize));
6029 __ addiu(SP, SP, Immediate(2 * kWordSize)); 6028 __ addiu(SP, SP, Immediate(2 * kWordSize));
6030 } 6029 }
6031 6030
6032 6031
6033 } // namespace dart 6032 } // namespace dart
6034 6033
6035 #endif // defined TARGET_ARCH_MIPS 6034 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698