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 "V8TestSpecialOperationsNotEnumerable.h" | 8 #include "V8TestSpecialOperationsNotEnumerable.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 117 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::findInstanceInProto
typeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
118 { | 118 { |
119 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 119 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
120 } | 120 } |
121 | 121 |
122 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 122 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toNati
veWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
123 { | 123 { |
124 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; | 124 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; |
125 } | 125 } |
126 | 126 |
127 v8::Handle<v8::Object> wrap(TestSpecialOperationsNotEnumerable* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | |
128 { | |
129 ASSERT(impl); | |
130 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsNotEnumerable>(
impl, isolate)); | |
131 return V8TestSpecialOperationsNotEnumerable::createWrapper(impl, creationCon
text, isolate); | |
132 } | |
133 | |
134 v8::Handle<v8::Object> V8TestSpecialOperationsNotEnumerable::createWrapper(PassR
efPtr<TestSpecialOperationsNotEnumerable> impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) | |
135 { | |
136 ASSERT(impl); | |
137 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsNotEnumerable>(
impl.get(), isolate)); | |
138 const WrapperTypeInfo* actualInfo = impl->typeInfo(); | |
139 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapperType
Info. These will both have | |
140 // the same object de-ref functions, though, so use that as the basis of the
check. | |
141 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction ==
wrapperTypeInfo.derefObjectFunction); | |
142 | |
143 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | |
144 if (UNLIKELY(wrapper.IsEmpty())) | |
145 return wrapper; | |
146 | |
147 installConditionallyEnabledProperties(wrapper, isolate); | |
148 V8DOMWrapper::associateObjectWithWrapper<V8TestSpecialOperationsNotEnumerabl
e>(impl, &wrapperTypeInfo, wrapper, isolate); | |
149 return wrapper; | |
150 } | |
151 | |
152 | 127 |
153 void V8TestSpecialOperationsNotEnumerable::refObject(ScriptWrappableBase* intern
alPointer) | 128 void V8TestSpecialOperationsNotEnumerable::refObject(ScriptWrappableBase* intern
alPointer) |
154 { | 129 { |
155 fromInternalPointer(internalPointer)->ref(); | 130 fromInternalPointer(internalPointer)->ref(); |
156 } | 131 } |
157 | 132 |
158 void V8TestSpecialOperationsNotEnumerable::derefObject(ScriptWrappableBase* inte
rnalPointer) | 133 void V8TestSpecialOperationsNotEnumerable::derefObject(ScriptWrappableBase* inte
rnalPointer) |
159 { | 134 { |
160 fromInternalPointer(internalPointer)->deref(); | 135 fromInternalPointer(internalPointer)->deref(); |
161 } | 136 } |
162 | 137 |
163 WrapperPersistentNode* V8TestSpecialOperationsNotEnumerable::createPersistentHan
dle(ScriptWrappableBase* internalPointer) | 138 WrapperPersistentNode* V8TestSpecialOperationsNotEnumerable::createPersistentHan
dle(ScriptWrappableBase* internalPointer) |
164 { | 139 { |
165 ASSERT_NOT_REACHED(); | 140 ASSERT_NOT_REACHED(); |
166 return 0; | 141 return 0; |
167 } | 142 } |
168 | 143 |
169 template<> | 144 template<> |
170 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) | 145 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsNotEnumerable* impl, v8:
:Handle<v8::Object> creationContext, v8::Isolate* isolate) |
171 { | 146 { |
172 return toV8(impl, creationContext, isolate); | 147 return toV8(impl, creationContext, isolate); |
173 } | 148 } |
174 | 149 |
175 } // namespace blink | 150 } // namespace blink |
OLD | NEW |