Revision: 12368
Author: [email protected]
Date: Wed Aug 22 08:58:16 2012
Log: Fix order of conversions in ObjectToInt32 and ObjectToUint32
helpers.
[email protected]
BUG=
Review URL: https://chromiumcodereview.appspot.com/10878012
http://code.google.com/p/v8/source/detail?r=12368
Modified:
/branches/bleeding_edge/src/deoptimizer.cc
=======================================
--- /branches/bleeding_edge/src/deoptimizer.cc Wed Aug 22 08:44:17 2012
+++ /branches/bleeding_edge/src/deoptimizer.cc Wed Aug 22 08:58:16 2012
@@ -954,7 +954,7 @@
if (obj->IsHeapNumber()) {
double num = HeapNumber::cast(obj)->value();
- if (FastD2I(FastI2D(num)) != num) {
+ if (FastI2D(FastD2I(num)) != num) {
if (FLAG_trace_osr) {
PrintF("**** %g could not be converted to int32 ****\n",
HeapNumber::cast(obj)->value());
@@ -980,7 +980,7 @@
if (obj->IsHeapNumber()) {
double num = HeapNumber::cast(obj)->value();
- if ((num < 0) || (FastD2UI(FastUI2D(num)) != num)) {
+ if ((num < 0) || (FastUI2D(FastD2UI(num)) != num)) {
if (FLAG_trace_osr) {
PrintF("**** %g could not be converted to uint32 ****\n",
HeapNumber::cast(obj)->value());
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev