summaryrefslogtreecommitdiffstats
path: root/gin/function_template.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gin/function_template.cc')
-rw-r--r--gin/function_template.cc17
1 files changed, 3 insertions, 14 deletions
diff --git a/gin/function_template.cc b/gin/function_template.cc
index 5dd5ecd..243ac12 100644
--- a/gin/function_template.cc
+++ b/gin/function_template.cc
@@ -4,23 +4,12 @@
#include "gin/function_template.h"
-#include "gin/per_isolate_data.h"
-
namespace gin {
-WrapperInfo internal::CallbackHolderBase::kWrapperInfo = { kEmbedderNativeGin };
+namespace internal {
-void InitFunctionTemplates(PerIsolateData* isolate_data) {
- if (!isolate_data->GetObjectTemplate(
- &internal::CallbackHolderBase::kWrapperInfo).IsEmpty()) {
- return;
- }
+WrapperInfo CallbackHolderBase::kWrapperInfo = { kEmbedderNativeGin };
- v8::Handle<v8::ObjectTemplate> templ(
- v8::ObjectTemplate::New(isolate_data->isolate()));
- templ->SetInternalFieldCount(kNumberOfInternalFields);
- isolate_data->SetObjectTemplate(&internal::CallbackHolderBase::kWrapperInfo,
- templ);
-}
+} // namespace internal
} // namespace gin