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

Side by Side Diff: gin/isolate_holder.cc

Issue 113893005: [gin] Introduce Wrappable::GetObjectTemplate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gin/function_template.h.pump ('k') | gin/object_template_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gin/public/isolate_holder.h" 5 #include "gin/public/isolate_holder.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 IsolateHolder::~IsolateHolder() { 66 IsolateHolder::~IsolateHolder() {
67 isolate_data_.reset(); 67 isolate_data_.reset();
68 if (isolate_owner_) 68 if (isolate_owner_)
69 isolate_->Dispose(); 69 isolate_->Dispose();
70 } 70 }
71 71
72 void IsolateHolder::Init() { 72 void IsolateHolder::Init() {
73 v8::Isolate::Scope isolate_scope(isolate_); 73 v8::Isolate::Scope isolate_scope(isolate_);
74 v8::HandleScope handle_scope(isolate_); 74 v8::HandleScope handle_scope(isolate_);
75 isolate_data_.reset(new PerIsolateData(isolate_)); 75 isolate_data_.reset(new PerIsolateData(isolate_));
76 InitFunctionTemplates(isolate_data_.get());
77 } 76 }
78 77
79 } // namespace gin 78 } // namespace gin
OLDNEW
« no previous file with comments | « gin/function_template.h.pump ('k') | gin/object_template_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698