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

Unified Diff: runtime/vm/intermediate_language_arm64.cc

Issue 285403004: Adds intrinsics for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_arm64.cc
===================================================================
--- runtime/vm/intermediate_language_arm64.cc (revision 36300)
+++ runtime/vm/intermediate_language_arm64.cc (working copy)
@@ -2454,10 +2454,10 @@
Register result) {
if (!range->IsWithin(-0x20000000000000LL, 0x20000000000000LL)) {
ASSERT(overflow != NULL);
- __ CompareImmediate(result, -0x20000000000000LL, PP);
- __ b(overflow, LT);
- __ CompareImmediate(result, 0x20000000000000LL, PP);
- __ b(overflow, GT);
+ __ LoadImmediate(TMP, 0x20000000000000LL, PP);
+ __ add(TMP2, result, Operand(TMP));
+ __ cmp(TMP2, Operand(TMP, LSL, 1));
+ __ b(overflow, HI);
}
}
@@ -2569,8 +2569,8 @@
}
// Left is not a constant.
// Check if count too large for handling it inlined.
- __ Asr(TMP, right, kSmiTagSize); // SmiUntag right into IP.
- // Overflow test (preserve left, right, and IP);
+ __ Asr(TMP, right, kSmiTagSize); // SmiUntag right into TMP.
+ // Overflow test (preserve left, right, and TMP);
Register temp = locs.temp(0).reg();
__ lslv(temp, left, TMP);
__ asrv(TMP2, temp, TMP);
« no previous file with comments | « runtime/vm/assembler_arm64.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698