| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 return cachedTemplate; | 134 return cachedTemplate; |
| 135 | 135 |
| 136 v8::HandleScope scope; | 136 v8::HandleScope scope; |
| 137 v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(V8TestNam
edConstructorConstructorCallback); | 137 v8::Local<v8::FunctionTemplate> result = v8::FunctionTemplate::New(V8TestNam
edConstructorConstructorCallback); |
| 138 | 138 |
| 139 v8::Local<v8::ObjectTemplate> instance = result->InstanceTemplate(); | 139 v8::Local<v8::ObjectTemplate> instance = result->InstanceTemplate(); |
| 140 instance->SetInternalFieldCount(V8TestNamedConstructor::internalFieldCount); | 140 instance->SetInternalFieldCount(V8TestNamedConstructor::internalFieldCount); |
| 141 result->SetClassName(v8::String::NewSymbol("TestNamedConstructor")); | 141 result->SetClassName(v8::String::NewSymbol("TestNamedConstructor")); |
| 142 result->Inherit(V8TestNamedConstructor::GetTemplate(isolate, currentWorldTyp
e)); | 142 result->Inherit(V8TestNamedConstructor::GetTemplate(isolate, currentWorldTyp
e)); |
| 143 | 143 |
| 144 cachedTemplate = v8::Persistent<v8::FunctionTemplate>::New(isolate, result); | 144 cachedTemplate.Reset(isolate, result); |
| 145 return cachedTemplate; | 145 return cachedTemplate; |
| 146 } | 146 } |
| 147 | 147 |
| 148 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestNamedConstructorTempl
ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl
dType currentWorldType) | 148 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestNamedConstructorTempl
ate(v8::Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorl
dType currentWorldType) |
| 149 { | 149 { |
| 150 desc->ReadOnlyPrototype(); | 150 desc->ReadOnlyPrototype(); |
| 151 | 151 |
| 152 v8::Local<v8::Signature> defaultSignature; | 152 v8::Local<v8::Signature> defaultSignature; |
| 153 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestNamedCon
structor", v8::Persistent<v8::FunctionTemplate>(), V8TestNamedConstructor::inter
nalFieldCount, | 153 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestNamedCon
structor", v8::Persistent<v8::FunctionTemplate>(), V8TestNamedConstructor::inter
nalFieldCount, |
| 154 0, 0, | 154 0, 0, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 installPerContextProperties(wrapper, impl.get(), isolate); | 208 installPerContextProperties(wrapper, impl.get(), isolate); |
| 209 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 209 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
| 210 return wrapper; | 210 return wrapper; |
| 211 } | 211 } |
| 212 void V8TestNamedConstructor::derefObject(void* object) | 212 void V8TestNamedConstructor::derefObject(void* object) |
| 213 { | 213 { |
| 214 static_cast<TestNamedConstructor*>(object)->deref(); | 214 static_cast<TestNamedConstructor*>(object)->deref(); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace WebCore | 217 } // namespace WebCore |
| OLD | NEW |