Revision: 14092
Author:   dslo...@chromium.org
Date:     Thu Mar 28 06:07:41 2013
Log:      Release buold fix

TBR=rossb...@chromium.org
http://code.google.com/p/v8/source/detail?r=14092

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

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Thu Mar 28 05:50:18 2013
+++ /branches/bleeding_edge/src/runtime.cc      Thu Mar 28 06:07:41 2013
@@ -883,13 +883,12 @@
   CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, target, 1);
   CONVERT_DOUBLE_ARG_CHECKED(first, 2);
   size_t start = static_cast<size_t>(first);
-  size_t source_length = ArrayBufferAllocatedLength(isolate, *source);
   size_t target_length = ArrayBufferAllocatedLength(isolate, *target);

   if (target_length == 0)
     return isolate->heap()->undefined_value();

-  ASSERT(source_length - target_length >= start);
+ ASSERT(ArrayBufferAllocatedLength(isolate, *source) - target_length >= start); uint8_t* source_data = reinterpret_cast<uint8_t*>(source->backing_store()); uint8_t* target_data = reinterpret_cast<uint8_t*>(target->backing_store());
   CopyBytes(target_data, source_data + start, target_length);

--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to