Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: src/bootstrapper.cc

Issue 1116633002: Pass ArrayBuffer::Allocator via Isolate::CreateParams (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 1658d646182e674bd04275a693bf87d7f7fd7219..2c5e9a82a88fe575730ded75b7d1df4284b461f7 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1606,7 +1606,7 @@ Data* SetBuiltinTypedArray(Isolate* isolate, Handle<JSBuiltinsObject> builtins,
bool is_external = data != nullptr;
if (!is_external) {
data = reinterpret_cast<Data*>(
- V8::ArrayBufferAllocator()->Allocate(byte_length));
+ isolate->array_buffer_allocator()->Allocate(byte_length));
}
Runtime::SetupArrayBuffer(isolate, buffer, is_external, data, byte_length);
« no previous file with comments | « src/api.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698