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 "V8TestInterface3.h" | 8 #include "V8TestInterface3.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 v8::Handle<v8::Object> V8TestInterface3::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) | 142 v8::Handle<v8::Object> V8TestInterface3::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) |
143 { | 143 { |
144 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 144 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
145 } | 145 } |
146 | 146 |
147 TestInterface3* V8TestInterface3::toNativeWithTypeCheck(v8::Isolate* isolate, v8
::Handle<v8::Value> value) | 147 TestInterface3* V8TestInterface3::toNativeWithTypeCheck(v8::Isolate* isolate, v8
::Handle<v8::Value> value) |
148 { | 148 { |
149 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 149 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
150 } | 150 } |
151 | 151 |
| 152 v8::Handle<v8::Object> wrap(TestInterface3* impl, v8::Handle<v8::Object> creatio
nContext, v8::Isolate* isolate) |
| 153 { |
| 154 ASSERT(impl); |
| 155 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface3>(impl, isolate)); |
| 156 return V8TestInterface3::createWrapper(impl, creationContext, isolate); |
| 157 } |
| 158 |
152 v8::Handle<v8::Object> V8TestInterface3::createWrapper(PassRefPtr<TestInterface3
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 159 v8::Handle<v8::Object> V8TestInterface3::createWrapper(PassRefPtr<TestInterface3
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
153 { | 160 { |
154 ASSERT(impl); | 161 ASSERT(impl); |
155 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface3>(impl.get(), isolate)
); | 162 ASSERT(!DOMDataStore::containsWrapper<V8TestInterface3>(impl.get(), isolate)
); |
156 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 163 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
157 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 164 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
158 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 165 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
159 // the same object de-ref functions, though, so use that as the basis of
the check. | 166 // the same object de-ref functions, though, so use that as the basis of
the check. |
160 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 167 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
161 } | 168 } |
(...skipping 12 matching lines...) Expand all Loading... |
174 fromInternalPointer(object)->deref(); | 181 fromInternalPointer(object)->deref(); |
175 } | 182 } |
176 | 183 |
177 template<> | 184 template<> |
178 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 185 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
179 { | 186 { |
180 return toV8(impl, creationContext, isolate); | 187 return toV8(impl, creationContext, isolate); |
181 } | 188 } |
182 | 189 |
183 } // namespace WebCore | 190 } // namespace WebCore |
OLD | NEW |