Fix order of conversions in ObjectToInt32 and ObjectToUint32 helpers.
TBR=danno@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/10878012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12368 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f476d4d431
commit
8ae899584f
@ -954,7 +954,7 @@ static bool ObjectToInt32(Object* obj, int32_t* value) {
|
||||
|
||||
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 @@ static bool ObjectToUint32(Object* obj, uint32_t* value) {
|
||||
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user