Reviewers: m.m.capewell, jbramley,

Message:
PTAL, this is now similar to x64.

Description:
A64: Fix DoUint32ToSmi.

TEST=mjsunit/regress/regress-crbug-309623

Please review this at https://codereview.chromium.org/132373010/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64

Affected files (+4, -1 lines):
  M src/a64/lithium-codegen-a64.cc


Index: src/a64/lithium-codegen-a64.cc
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
index 48a0e902cb61538ac2e688f120880fb1a613b5a6..e9061db07590e0ba0d59f452e13b91aa44641324 100644
--- a/src/a64/lithium-codegen-a64.cc
+++ b/src/a64/lithium-codegen-a64.cc
@@ -5438,7 +5438,10 @@ void LCodeGen::DoUint32ToSmi(LUint32ToSmi* instr) {
   Register result = ToRegister(instr->result());

   if (!instr->hydrogen()->value()->HasRange() ||
-      !instr->hydrogen()->value()->range()->IsInSmiRange()) {
+      !instr->hydrogen()->value()->range()->IsInSmiRange() ||
+      instr->hydrogen()->value()->range()->upper() == kMaxInt) {
+ // The Range class can't express upper bounds in the (kMaxInt, kMaxUint32] + // interval, so we treat kMaxInt as a sentinel for this entire interval.
     DeoptimizeIfNegative(value.W(), instr->environment());
   }
   __ SmiTag(result, value);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to