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