Commit 0b4c7c8d authored by dslomov@chromium.org's avatar dslomov@chromium.org

Remove d8 implementation of ArrayBuffer and typed arrays.

R=rossberg@chromium.org

Review URL: https://codereview.chromium.org/14654011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14706 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8ce07187
This diff is collapsed.
......@@ -676,7 +676,7 @@ bool Runtime::SetupArrayBuffer(Isolate* isolate,
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment