Revision: 14709
Author:   [email protected]
Date:     Thu May 16 04:57:23 2013
Log:      Remove one more unneccessary conversion to double.

[email protected]

Review URL: https://codereview.chromium.org/15204002
http://code.google.com/p/v8/source/detail?r=14709

Modified:
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Thu May 16 04:54:25 2013
+++ /branches/bleeding_edge/src/runtime.cc      Thu May 16 04:57:23 2013
@@ -676,7 +676,7 @@
   array_buffer->set_backing_store(data);

   Handle<Object> byte_length =
-      isolate->factory()->NewNumber(static_cast<double>(allocated_length));
+      isolate->factory()->NewNumberFromSize(allocated_length);
   CHECK(byte_length->IsSmi() || byte_length->IsHeapNumber());
   array_buffer->set_byte_length(*byte_length);
   return true;

--
--
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