| 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 "V8TestNode.h" | 8 #include "V8TestNode.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 TestNode* V8TestNode::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8:
:Value> value) | 212 TestNode* V8TestNode::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8:
:Value> value) |
| 213 { | 213 { |
| 214 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 214 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 215 } | 215 } |
| 216 | 216 |
| 217 EventTarget* V8TestNode::toEventTarget(v8::Handle<v8::Object> object) | 217 EventTarget* V8TestNode::toEventTarget(v8::Handle<v8::Object> object) |
| 218 { | 218 { |
| 219 return toNative(object); | 219 return toNative(object); |
| 220 } | 220 } |
| 221 | 221 |
| 222 v8::Handle<v8::Object> wrap(TestNode* impl, v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
| 223 { |
| 224 ASSERT(impl); |
| 225 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl, isolate)); |
| 226 return V8TestNode::createWrapper(impl, creationContext, isolate); |
| 227 } |
| 228 |
| 222 v8::Handle<v8::Object> V8TestNode::createWrapper(PassRefPtrWillBeRawPtr<TestNode
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 229 v8::Handle<v8::Object> V8TestNode::createWrapper(PassRefPtrWillBeRawPtr<TestNode
> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 223 { | 230 { |
| 224 ASSERT(impl); | 231 ASSERT(impl); |
| 225 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl.get(), isolate)); | 232 ASSERT(!DOMDataStore::containsWrapper<V8TestNode>(impl.get(), isolate)); |
| 226 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 233 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 227 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 234 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
| 228 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 235 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
| 229 // the same object de-ref functions, though, so use that as the basis of
the check. | 236 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 230 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 237 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
| 231 } | 238 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 246 #endif // !ENABLE(OILPAN) | 253 #endif // !ENABLE(OILPAN) |
| 247 } | 254 } |
| 248 | 255 |
| 249 template<> | 256 template<> |
| 250 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) | 257 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) |
| 251 { | 258 { |
| 252 return toV8(impl, creationContext, isolate); | 259 return toV8(impl, creationContext, isolate); |
| 253 } | 260 } |
| 254 | 261 |
| 255 } // namespace WebCore | 262 } // namespace WebCore |
| OLD | NEW |