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

Unified Diff: runtime/vm/intermediate_language_arm64.cc

Issue 283833005: Fix bug on 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_test.cc ('k') | tools/testing/dart/runtime_configuration.dart » ('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 36169)
+++ runtime/vm/intermediate_language_arm64.cc (working copy)
@@ -169,7 +169,7 @@
__ Lsl(result, result, shift + kSmiTagSize);
} else {
__ sub(result, result, Operand(1));
- const int32_t val =
+ const int64_t val =
Smi::RawValue(true_value) - Smi::RawValue(false_value);
__ AndImmediate(result, result, val, PP);
if (false_value != 0) {
@@ -547,7 +547,7 @@
Location right = locs()->in(1);
if (right.IsConstant()) {
ASSERT(right.constant().IsSmi());
- const int32_t imm =
+ const int64_t imm =
reinterpret_cast<int64_t>(right.constant().raw());
__ TestImmediate(left, imm, PP);
} else {
« no previous file with comments | « runtime/vm/assembler_arm64_test.cc ('k') | tools/testing/dart/runtime_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698