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 "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 231 v8::Handle<v8::Object> V8TestInterfaceConstructor2::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
232 { | 232 { |
233 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 233 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
234 } | 234 } |
235 | 235 |
236 TestInterfaceConstructor2* V8TestInterfaceConstructor2::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) | 236 TestInterfaceConstructor2* V8TestInterfaceConstructor2::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) |
237 { | 237 { |
238 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 238 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
239 } | 239 } |
240 | 240 |
| 241 v8::Handle<v8::Object> wrap(TestInterfaceConstructor2* impl, v8::Handle<v8::Obje
ct> creationContext, v8::Isolate* isolate) |
| 242 { |
| 243 ASSERT(impl); |
| 244 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor2>(impl, iso
late)); |
| 245 return V8TestInterfaceConstructor2::createWrapper(impl, creationContext, iso
late); |
| 246 } |
| 247 |
241 v8::Handle<v8::Object> V8TestInterfaceConstructor2::createWrapper(PassRefPtr<Tes
tInterfaceConstructor2> impl, v8::Handle<v8::Object> creationContext, v8::Isolat
e* isolate) | 248 v8::Handle<v8::Object> V8TestInterfaceConstructor2::createWrapper(PassRefPtr<Tes
tInterfaceConstructor2> impl, v8::Handle<v8::Object> creationContext, v8::Isolat
e* isolate) |
242 { | 249 { |
243 ASSERT(impl); | 250 ASSERT(impl); |
244 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor2>(impl.get(
), isolate)); | 251 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor2>(impl.get(
), isolate)); |
245 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 252 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
246 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 253 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
247 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 254 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
248 // the same object de-ref functions, though, so use that as the basis of
the check. | 255 // the same object de-ref functions, though, so use that as the basis of
the check. |
249 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 256 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
250 } | 257 } |
(...skipping 12 matching lines...) Expand all Loading... |
263 fromInternalPointer(object)->deref(); | 270 fromInternalPointer(object)->deref(); |
264 } | 271 } |
265 | 272 |
266 template<> | 273 template<> |
267 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 274 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
268 { | 275 { |
269 return toV8(impl, creationContext, isolate); | 276 return toV8(impl, creationContext, isolate); |
270 } | 277 } |
271 | 278 |
272 } // namespace WebCore | 279 } // namespace WebCore |
OLD | NEW |