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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); | 94 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); |
95 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNul
l(args, 2)); | 95 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str3, argumentOrNul
l(args, 2)); |
96 | 96 |
97 RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstru
ctor(document, str1, str2, str3, ec); | 97 RefPtr<TestNamedConstructor> impl = TestNamedConstructor::createForJSConstru
ctor(document, str1, str2, str3, ec); |
98 v8::Handle<v8::Object> wrapper = args.Holder(); | 98 v8::Handle<v8::Object> wrapper = args.Holder(); |
99 if (ec) { | 99 if (ec) { |
100 setDOMException(ec, args.GetIsolate()); | 100 setDOMException(ec, args.GetIsolate()); |
101 return; | 101 return; |
102 } | 102 } |
103 | 103 |
104 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestNamedConstru
ctorConstructor::info, wrapper, args.GetIsolate(), WrapperConfiguration::Depende
nt); | 104 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl.releas
e(), &V8TestNamedConstructorConstructor::info, wrapper, args.GetIsolate(), Wrapp
erConfiguration::Dependent); |
105 args.GetReturnValue().Set(wrapper); | 105 args.GetReturnValue().Set(wrapper); |
106 } | 106 } |
107 | 107 |
108 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::GetTemplate(
v8::Isolate* isolate, WrapperWorldType currentWorldType) | 108 v8::Handle<v8::FunctionTemplate> V8TestNamedConstructorConstructor::GetTemplate(
v8::Isolate* isolate, WrapperWorldType currentWorldType) |
109 { | 109 { |
110 static v8::Persistent<v8::FunctionTemplate> cachedTemplate; | 110 static v8::Persistent<v8::FunctionTemplate> cachedTemplate; |
111 if (!cachedTemplate.IsEmpty()) | 111 if (!cachedTemplate.IsEmpty()) |
112 return v8::Local<v8::FunctionTemplate>::New(isolate, cachedTemplate); | 112 return v8::Local<v8::FunctionTemplate>::New(isolate, cachedTemplate); |
113 | 113 |
114 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 114 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 ActiveDOMObject* V8TestNamedConstructor::toActiveDOMObject(v8::Handle<v8::Object
> object) | 169 ActiveDOMObject* V8TestNamedConstructor::toActiveDOMObject(v8::Handle<v8::Object
> object) |
170 { | 170 { |
171 return toNative(object); | 171 return toNative(object); |
172 } | 172 } |
173 | 173 |
174 | 174 |
175 v8::Handle<v8::Object> V8TestNamedConstructor::createWrapper(PassRefPtr<TestName
dConstructor> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate
) | 175 v8::Handle<v8::Object> V8TestNamedConstructor::createWrapper(PassRefPtr<TestName
dConstructor> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate
) |
176 { | 176 { |
177 ASSERT(impl.get()); | 177 ASSERT(impl.get()); |
178 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 178 ASSERT(DOMDataStore::getWrapper<V8TestNamedConstructor>(impl.get(), isolate)
.IsEmpty()); |
179 | 179 |
180 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 180 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
181 if (UNLIKELY(wrapper.IsEmpty())) | 181 if (UNLIKELY(wrapper.IsEmpty())) |
182 return wrapper; | 182 return wrapper; |
183 installPerContextProperties(wrapper, impl.get(), isolate); | 183 installPerContextProperties(wrapper, impl.get(), isolate); |
184 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Dependent); | 184 V8DOMWrapper::associateObjectWithWrapper<V8TestNamedConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Dependent); |
185 return wrapper; | 185 return wrapper; |
186 } | 186 } |
187 void V8TestNamedConstructor::derefObject(void* object) | 187 void V8TestNamedConstructor::derefObject(void* object) |
188 { | 188 { |
189 static_cast<TestNamedConstructor*>(object)->deref(); | 189 fromInternalPointer(object)->deref(); |
190 } | 190 } |
191 | 191 |
192 } // namespace WebCore | 192 } // namespace WebCore |
OLD | NEW |