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

Unified Diff: runtime/vm/intrinsifier_arm.cc

Issue 59933004: In preparation of inlining remainder and modulo binary Smi operations: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier_arm.cc
===================================================================
--- runtime/vm/intrinsifier_arm.cc (revision 29911)
+++ runtime/vm/intrinsifier_arm.cc (working copy)
@@ -723,24 +723,6 @@
}
-void Intrinsifier::Integer_remainder(Assembler* assembler) {
- // Check to see if we have integer division
- Label fall_through;
- TestBothArgumentsSmis(assembler, &fall_through);
- // R1: Tagged left (dividend).
- // R0: Tagged right (divisor).
- // Check if modulo by zero -> exception thrown in main function.
- __ cmp(R0, ShifterOperand(0));
- __ b(&fall_through, EQ);
- EmitRemainderOperation(assembler);
- // Untagged remainder result in R1.
- __ mov(R0, ShifterOperand(R1, LSL, 1)); // Tag result and return.
- __ Ret();
-
- __ Bind(&fall_through);
-}
-
-
void Intrinsifier::Integer_truncDivide(Assembler* assembler) {
// Check to see if we have integer division
Label fall_through;
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698