Index: Source/bindings/scripts/code_generator_v8.pm |
diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm |
index e6480aa7cdfe2b5c32f15a50c98caa34f3540185..7eace567479ab7d9704a7a7bcca3073cc5bc115d 100644 |
--- a/Source/bindings/scripts/code_generator_v8.pm |
+++ b/Source/bindings/scripts/code_generator_v8.pm |
@@ -1162,7 +1162,7 @@ sub GenerateDomainSafeFunctionGetter |
static void ${funcName}AttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
// This is only for getting a unique pointer which we can pass to privateTemplate. |
- static const char* privateTemplateUniqueKey = "${funcName}PrivateTemplate"; |
+ static int privateTemplateUniqueKey; |
WrapperWorldType currentWorldType = worldType(info.GetIsolate()); |
V8PerIsolateData* data = V8PerIsolateData::from(info.GetIsolate()); |
v8::Handle<v8::FunctionTemplate> privateTemplate = data->privateTemplate(currentWorldType, &privateTemplateUniqueKey, $newTemplateParams, $functionLength); |
@@ -1176,7 +1176,7 @@ static void ${funcName}AttributeGetter(v8::Local<v8::String> name, const v8::Pro |
} |
${implClassName}* imp = ${v8ClassName}::toNative(holder); |
if (!BindingSecurity::shouldAllowAccessToFrame(imp->frame(), DoNotReportSecurityError)) { |
- static const char* sharedTemplateUniqueKey = "${funcName}SharedTemplate"; |
+ static int sharedTemplateUniqueKey; |
v8::Handle<v8::FunctionTemplate> sharedTemplate = data->privateTemplate(currentWorldType, &sharedTemplateUniqueKey, $newTemplateParams, $functionLength); |
v8SetReturnValue(info, sharedTemplate->GetFunction()); |
return; |
@@ -2967,7 +2967,7 @@ END |
v8::Handle<v8::FunctionTemplate> ${v8ClassName}Constructor::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) |
{ |
// This is only for getting a unique pointer which we can pass to privateTemplate. |
- static const char* privateTemplateUniqueKey = "${v8ClassName}Constructor::GetTemplatePrivateTemplate"; |
+ static int privateTemplateUniqueKey; |
V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
v8::Handle<v8::FunctionTemplate> result = data->privateTemplateIfExists(currentWorldType, &privateTemplateUniqueKey); |
if (!result.IsEmpty()) |