| OLD | NEW |
| 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 Loading... |
| 100 if (es.throwIfNeeded()) | 100 if (es.throwIfNeeded()) |
| 101 return; | 101 return; |
| 102 | 102 |
| 103 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas
e(), &V8TestNamedConstructorConstructor::info, wrapper, args.GetIsolate(), Wrapp
erConfiguration::Dependent); | 103 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas
e(), &V8TestNamedConstructorConstructor::info, wrapper, args.GetIsolate(), Wrapp
erConfiguration::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 const int privateTemplateUniqueKey = 0; |
| 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 Loading... |
| 192 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Dependent); | 192 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &info
, 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 |
| OLD | NEW |