From 1b93c237f36e291242da6b03550f2c4a9f1c6d1c Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Tue, 19 Nov 2013 19:25:12 +0000 Subject: Introduce a Gin class instead of using global functions to control gin The Gin class holds and controls a v8::Isolate. The isolate is not entered by default, i.e. before you can use gin for a given Gin instance, you need to enter the isolate first, e.g. by using a v8::Isolate::Scope. This has the advantage that we don't rely on the deprecate default isolate, and also support having multiple isolates in one process. BUG=317398 R=abarth@chromium.org TEST=gin_unittests and mojo_js_bindings_unittests pass Review URL: https://codereview.chromium.org/76353002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236029 0039d316-1c4b-4281-b951-d872f2087c98 --- gin/runner.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gin/runner.h') diff --git a/gin/runner.h b/gin/runner.h index fa41259..e664c3d 100644 --- a/gin/runner.h +++ b/gin/runner.h @@ -50,6 +50,7 @@ class Runner : public ContextHolder { ~Scope(); private: + v8::Isolate::Scope isolate_scope_; v8::HandleScope handle_scope_; v8::Context::Scope scope_; -- cgit v1.1