Revision: 19113
Author: [email protected]
Date: Wed Feb 5 16:57:28 2014 UTC
Log: A64: Fix DoUint32ToSmi.
TEST=mjsunit/regress/regress-crbug-309623
[email protected]
Review URL: https://codereview.chromium.org/132373010
http://code.google.com/p/v8/source/detail?r=19113
Modified:
/branches/experimental/a64/src/a64/lithium-codegen-a64.cc
=======================================
--- /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Wed Feb 5
14:26:40 2014 UTC
+++ /branches/experimental/a64/src/a64/lithium-codegen-a64.cc Wed Feb 5
16:57:28 2014 UTC
@@ -5438,7 +5438,10 @@
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.