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

Side by Side Diff: Source/bindings/tests/results/V8TestNamedConstructor.cpp

Issue 29553002: Move privateTemplateUniqueKey / sharedTemplateUniqueKey to .bss section (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 1 month 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
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (es.throwIfNeeded()) 100 if (es.throwIfNeeded())
101 return; 101 return;
102 102
103 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas e(), &V8TestNamedConstructorConstructor::wrapperTypeInfo, wrapper, args.GetIsola te(), WrapperConfiguration::Dependent); 103 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas e(), &V8TestNamedConstructorConstructor::wrapperTypeInfo, wrapper, args.GetIsola te(), WrapperConfiguration::Dependent);
104 args.GetReturnValue().Set(wrapper); 104 args.GetReturnValue().Set(wrapper);
105 } 105 }
106 106
107 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::GetTemplate( v8::Isolate* isolate, WrapperWorldType currentWorldType) 107 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::GetTemplate( v8::Isolate* isolate, WrapperWorldType currentWorldType)
108 { 108 {
109 // This is only for getting a unique pointer which we can pass to privateTem plate. 109 // This is only for getting a unique pointer which we can pass to privateTem plate.
110 static const char* privateTemplateUniqueKey = "V8TestNamedConstructorConstru ctor::GetTemplatePrivateTemplate"; 110 static int privateTemplateUniqueKey;
111 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 111 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
112 v8::Handle<v8::FunctionTemplate> result = data->privateTemplateIfExists(curr entWorldType, &privateTemplateUniqueKey); 112 v8::Handle<v8::FunctionTemplate> result = data->privateTemplateIfExists(curr entWorldType, &privateTemplateUniqueKey);
113 if (!result.IsEmpty()) 113 if (!result.IsEmpty())
114 return result; 114 return result;
115 115
116 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); 116 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
117 v8::HandleScope scope(isolate); 117 v8::HandleScope scope(isolate);
118 result = v8::FunctionTemplate::New(V8TestNamedConstructorConstructorCallback ); 118 result = v8::FunctionTemplate::New(V8TestNamedConstructorConstructorCallback );
119 119
120 v8::Local<v8::ObjectTemplate> instance = result->InstanceTemplate(); 120 v8::Local<v8::ObjectTemplate> instance = result->InstanceTemplate();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); 192 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &wrap perTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent);
193 return wrapper; 193 return wrapper;
194 } 194 }
195 195
196 void V8TestNamedConstructor::derefObject(void* object) 196 void V8TestNamedConstructor::derefObject(void* object)
197 { 197 {
198 fromInternalPointer(object)->deref(); 198 fromInternalPointer(object)->deref();
199 } 199 }
200 200
201 } // namespace WebCore 201 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestActiveDOMObject.cpp ('k') | Source/bindings/v8/V8DOMWrapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698