OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 191 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
192 { | 192 { |
193 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 193 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
194 } | 194 } |
195 | 195 |
196 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v
8::Object> wrapper) | 196 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v
8::Object> wrapper) |
197 { | 197 { |
198 return toNative(wrapper); | 198 return toNative(wrapper); |
199 } | 199 } |
200 | 200 |
| 201 v8::Handle<v8::Object> wrap(TestInterfaceNamedConstructor* impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 202 { |
| 203 ASSERT(impl); |
| 204 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNamedConstructor>(impl,
isolate)); |
| 205 return V8TestInterfaceNamedConstructor::createWrapper(impl, creationContext,
isolate); |
| 206 } |
| 207 |
201 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::createWrapper(PassRefPtr
<TestInterfaceNamedConstructor> impl, v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) | 208 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::createWrapper(PassRefPtr
<TestInterfaceNamedConstructor> impl, v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) |
202 { | 209 { |
203 ASSERT(impl); | 210 ASSERT(impl); |
204 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNamedConstructor>(impl.
get(), isolate)); | 211 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceNamedConstructor>(impl.
get(), isolate)); |
205 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 212 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
206 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 213 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
207 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 214 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
208 // the same object de-ref functions, though, so use that as the basis of
the check. | 215 // the same object de-ref functions, though, so use that as the basis of
the check. |
209 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 216 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
210 } | 217 } |
(...skipping 12 matching lines...) Expand all Loading... |
223 fromInternalPointer(object)->deref(); | 230 fromInternalPointer(object)->deref(); |
224 } | 231 } |
225 | 232 |
226 template<> | 233 template<> |
227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 234 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
228 { | 235 { |
229 return toV8(impl, creationContext, isolate); | 236 return toV8(impl, creationContext, isolate); |
230 } | 237 } |
231 | 238 |
232 } // namespace WebCore | 239 } // namespace WebCore |
OLD | NEW |