From: dslomov@chromium.org Date: Thu, 28 Mar 2013 13:07:41 +0000 (+0000) Subject: Release buold fix X-Git-Tag: upstream/4.7.83~14739 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cefc6555223cb6604213b9ca6dfd7f8c4443c86f;p=platform%2Fupstream%2Fv8.git Release buold fix TBR=rossberg@chromium.org git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14092 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/runtime.cc b/src/runtime.cc index d8c9c27..2e124be 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -883,13 +883,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferSliceImpl) { CONVERT_ARG_HANDLE_CHECKED(JSArrayBuffer, target, 1); CONVERT_DOUBLE_ARG_CHECKED(first, 2); size_t start = static_cast(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(source->backing_store()); uint8_t* target_data = reinterpret_cast(target->backing_store()); CopyBytes(target_data, source_data + start, target_length);