| 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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 336 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 337 } | 337 } |
| 338 | 338 |
| 339 v8::Handle<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Han
dle<v8::Value> v8Value, v8::Isolate* isolate) | 339 v8::Handle<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Han
dle<v8::Value> v8Value, v8::Isolate* isolate) |
| 340 { | 340 { |
| 341 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 341 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 342 } | 342 } |
| 343 | 343 |
| 344 TestInterfaceNode* V8TestInterfaceNode::toNativeWithTypeCheck(v8::Isolate* isola
te, v8::Handle<v8::Value> value) | 344 TestInterfaceNode* V8TestInterfaceNode::toNativeWithTypeCheck(v8::Isolate* isola
te, v8::Handle<v8::Value> value) |
| 345 { | 345 { |
| 346 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 346 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo
inter(v8::Handle<v8::Object>::Cast(value))) : 0; |
| 347 } | 347 } |
| 348 | 348 |
| 349 EventTarget* V8TestInterfaceNode::toEventTarget(v8::Handle<v8::Object> object) | 349 EventTarget* V8TestInterfaceNode::toEventTarget(v8::Handle<v8::Object> object) |
| 350 { | 350 { |
| 351 return toNative(object); | 351 return toNative(object); |
| 352 } | 352 } |
| 353 | 353 |
| 354 v8::Handle<v8::Object> wrap(TestInterfaceNode* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 354 v8::Handle<v8::Object> wrap(TestInterfaceNode* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 355 { | 355 { |
| 356 ASSERT(impl); | 356 ASSERT(impl); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 371 | 371 |
| 372 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 372 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
| 373 if (UNLIKELY(wrapper.IsEmpty())) | 373 if (UNLIKELY(wrapper.IsEmpty())) |
| 374 return wrapper; | 374 return wrapper; |
| 375 | 375 |
| 376 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 376 installPerContextEnabledProperties(wrapper, impl.get(), isolate); |
| 377 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNode>(impl, &wrapper
TypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); | 377 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNode>(impl, &wrapper
TypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); |
| 378 return wrapper; | 378 return wrapper; |
| 379 } | 379 } |
| 380 | 380 |
| 381 void V8TestInterfaceNode::derefObject(void* object) | 381 void V8TestInterfaceNode::derefObject(ScriptWrappableBase* internalPointer) |
| 382 { | 382 { |
| 383 #if !ENABLE(OILPAN) | 383 #if !ENABLE(OILPAN) |
| 384 fromInternalPointer(object)->deref(); | 384 fromInternalPointer(internalPointer)->deref(); |
| 385 #endif // !ENABLE(OILPAN) | 385 #endif // !ENABLE(OILPAN) |
| 386 } | 386 } |
| 387 | 387 |
| 388 template<> | 388 template<> |
| 389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
| 390 { | 390 { |
| 391 return toV8(impl, creationContext, isolate); | 391 return toV8(impl, creationContext, isolate); |
| 392 } | 392 } |
| 393 | 393 |
| 394 } // namespace blink | 394 } // namespace blink |
| OLD | NEW |