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 "V8TestInterfaceConstructor3.h" | 8 #include "V8TestInterfaceConstructor3.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 120 v8::Handle<v8::Object> V8TestInterfaceConstructor3::findInstanceInPrototypeChain
(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
121 { | 121 { |
122 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 122 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
123 } | 123 } |
124 | 124 |
125 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) | 125 TestInterfaceConstructor3* V8TestInterfaceConstructor3::toNativeWithTypeCheck(v8
::Isolate* isolate, v8::Handle<v8::Value> value) |
126 { | 126 { |
127 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 127 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
128 } | 128 } |
129 | 129 |
| 130 v8::Handle<v8::Object> wrap(TestInterfaceConstructor3* impl, v8::Handle<v8::Obje
ct> creationContext, v8::Isolate* isolate) |
| 131 { |
| 132 ASSERT(impl); |
| 133 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor3>(impl, iso
late)); |
| 134 return V8TestInterfaceConstructor3::createWrapper(impl, creationContext, iso
late); |
| 135 } |
| 136 |
130 v8::Handle<v8::Object> V8TestInterfaceConstructor3::createWrapper(PassRefPtr<Tes
tInterfaceConstructor3> impl, v8::Handle<v8::Object> creationContext, v8::Isolat
e* isolate) | 137 v8::Handle<v8::Object> V8TestInterfaceConstructor3::createWrapper(PassRefPtr<Tes
tInterfaceConstructor3> impl, v8::Handle<v8::Object> creationContext, v8::Isolat
e* isolate) |
131 { | 138 { |
132 ASSERT(impl); | 139 ASSERT(impl); |
133 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor3>(impl.get(
), isolate)); | 140 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceConstructor3>(impl.get(
), isolate)); |
134 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 141 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
135 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 142 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
136 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 143 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
137 // the same object de-ref functions, though, so use that as the basis of
the check. | 144 // the same object de-ref functions, though, so use that as the basis of
the check. |
138 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 145 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
139 } | 146 } |
(...skipping 12 matching lines...) Expand all Loading... |
152 fromInternalPointer(object)->deref(); | 159 fromInternalPointer(object)->deref(); |
153 } | 160 } |
154 | 161 |
155 template<> | 162 template<> |
156 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 163 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
157 { | 164 { |
158 return toV8(impl, creationContext, isolate); | 165 return toV8(impl, creationContext, isolate); |
159 } | 166 } |
160 | 167 |
161 } // namespace WebCore | 168 } // namespace WebCore |
OLD | NEW |