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

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

Issue 23757016: Simplify compilation of relational operators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_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/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 1233
1234 1234
1235 void Intrinsifier::Double_div(Assembler* assembler) { 1235 void Intrinsifier::Double_div(Assembler* assembler) {
1236 return DoubleArithmeticOperations(assembler, Token::kDIV); 1236 return DoubleArithmeticOperations(assembler, Token::kDIV);
1237 } 1237 }
1238 1238
1239 1239
1240 // Left is double right is integer (Bigint, Mint or Smi) 1240 // Left is double right is integer (Bigint, Mint or Smi)
1241 void Intrinsifier::Double_mulFromInteger(Assembler* assembler) { 1241 void Intrinsifier::Double_mulFromInteger(Assembler* assembler) {
1242 Label fall_through; 1242 Label fall_through;
1243 // Only Smi-s allowed. 1243 // Only smis allowed.
1244 __ lw(T0, Address(SP, 0 * kWordSize)); 1244 __ lw(T0, Address(SP, 0 * kWordSize));
1245 __ andi(CMPRES, T0, Immediate(kSmiTagMask)); 1245 __ andi(CMPRES, T0, Immediate(kSmiTagMask));
1246 __ bne(CMPRES, ZR, &fall_through); 1246 __ bne(CMPRES, ZR, &fall_through);
1247 1247
1248 // Is Smi. 1248 // Is Smi.
1249 __ SmiUntag(T0); 1249 __ SmiUntag(T0);
1250 __ mtc1(T0, F4); 1250 __ mtc1(T0, F4);
1251 __ cvtdw(D1, F4); 1251 __ cvtdw(D1, F4);
1252 1252
1253 __ lw(T0, Address(SP, 1 * kWordSize)); 1253 __ lw(T0, Address(SP, 1 * kWordSize));
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 1729
1730 __ Bind(&ok); 1730 __ Bind(&ok);
1731 __ Ret(); 1731 __ Ret();
1732 1732
1733 __ Bind(&fall_through); 1733 __ Bind(&fall_through);
1734 } 1734 }
1735 1735
1736 } // namespace dart 1736 } // namespace dart
1737 1737
1738 #endif // defined TARGET_ARCH_MIPS 1738 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698