OLD | NEW |
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 Loading... |
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 |
OLD | NEW |