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

Unified Diff: src/isolate.h

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/extensions/free-buffer-extension.cc ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index ff03db8a57b73222977385e0dac50e0d8b13f121..b9f842e7670a306066f30e3f221196ff77e102bf 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1114,8 +1114,6 @@ class Isolate {
BasicBlockProfiler* GetOrCreateBasicBlockProfiler();
BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; }
- static Isolate* NewForTesting() { return new Isolate(false); }
-
std::string GetTurboCfgFileName();
#if TRACE_MAPS
@@ -1145,6 +1143,13 @@ class Isolate {
List<Object*>* partial_snapshot_cache() { return &partial_snapshot_cache_; }
+ void set_array_buffer_allocator(v8::ArrayBuffer::Allocator* allocator) {
+ array_buffer_allocator_ = allocator;
+ }
+ v8::ArrayBuffer::Allocator* array_buffer_allocator() const {
+ return array_buffer_allocator_;
+ }
+
protected:
explicit Isolate(bool enable_serializer);
@@ -1369,6 +1374,8 @@ class Isolate {
List<Object*> partial_snapshot_cache_;
+ v8::ArrayBuffer::Allocator* array_buffer_allocator_;
+
friend class ExecutionAccess;
friend class HandleScopeImplementer;
friend class OptimizingCompileDispatcher;
« no previous file with comments | « src/extensions/free-buffer-extension.cc ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698