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 "V8TestInterfaceCustomConstructor.h" | 8 #include "V8TestInterfaceCustomConstructor.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 v8::Handle<v8::Object> V8TestInterfaceCustomConstructor::findInstanceInPrototype
Chain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 102 v8::Handle<v8::Object> V8TestInterfaceCustomConstructor::findInstanceInPrototype
Chain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
103 { | 103 { |
104 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 104 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
105 } | 105 } |
106 | 106 |
107 TestInterfaceCustomConstructor* V8TestInterfaceCustomConstructor::toNativeWithTy
peCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 107 TestInterfaceCustomConstructor* V8TestInterfaceCustomConstructor::toNativeWithTy
peCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
108 { | 108 { |
109 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 109 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
110 } | 110 } |
111 | 111 |
| 112 v8::Handle<v8::Object> wrap(TestInterfaceCustomConstructor* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate* isolate) |
| 113 { |
| 114 ASSERT(impl); |
| 115 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCustomConstructor>(impl
, isolate)); |
| 116 return V8TestInterfaceCustomConstructor::createWrapper(impl, creationContext
, isolate); |
| 117 } |
| 118 |
112 v8::Handle<v8::Object> V8TestInterfaceCustomConstructor::createWrapper(PassRefPt
r<TestInterfaceCustomConstructor> impl, v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) | 119 v8::Handle<v8::Object> V8TestInterfaceCustomConstructor::createWrapper(PassRefPt
r<TestInterfaceCustomConstructor> impl, v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) |
113 { | 120 { |
114 ASSERT(impl); | 121 ASSERT(impl); |
115 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCustomConstructor>(impl
.get(), isolate)); | 122 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceCustomConstructor>(impl
.get(), isolate)); |
116 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 123 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
117 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 124 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
118 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 125 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
119 // the same object de-ref functions, though, so use that as the basis of
the check. | 126 // the same object de-ref functions, though, so use that as the basis of
the check. |
120 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 127 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
121 } | 128 } |
(...skipping 12 matching lines...) Expand all Loading... |
134 fromInternalPointer(object)->deref(); | 141 fromInternalPointer(object)->deref(); |
135 } | 142 } |
136 | 143 |
137 template<> | 144 template<> |
138 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 145 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
139 { | 146 { |
140 return toV8(impl, creationContext, isolate); | 147 return toV8(impl, creationContext, isolate); |
141 } | 148 } |
142 | 149 |
143 } // namespace WebCore | 150 } // namespace WebCore |
OLD | NEW |