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

Unified Diff: gin/isolate_holder.cc

Issue 225413004: [gin] Add a v8::Platform implementation to allow for v8 posting tasks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 9 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 | « gin/gin.gyp ('k') | gin/per_isolate_data.h » ('j') | gin/public/v8_platform.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/isolate_holder.cc
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc
index bb243490dc57cd37cd88cfb809c72a143a4d3308..3bda7f5738da93c7bf03c159cb941a342e77ac31 100644
--- a/gin/isolate_holder.cc
+++ b/gin/isolate_holder.cc
@@ -13,6 +13,7 @@
#include "gin/array_buffer.h"
#include "gin/function_template.h"
#include "gin/per_isolate_data.h"
+#include "gin/public/v8_platform.h"
namespace gin {
@@ -36,6 +37,7 @@ void EnsureV8Initialized(bool gin_managed) {
if (!gin_managed)
return;
+ v8::V8::InitializePlatform(V8Platform::Get());
v8::V8::SetArrayBufferAllocator(ArrayBufferAllocator::SharedInstance());
static const char v8_flags[] = "--use_strict --harmony";
v8::V8::SetFlagsFromString(v8_flags, sizeof(v8_flags) - 1);
« no previous file with comments | « gin/gin.gyp ('k') | gin/per_isolate_data.h » ('j') | gin/public/v8_platform.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698