| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); | 456 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); |
| 457 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPr
opertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface2>); | 457 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPr
opertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface2>); |
| 458 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface2
V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedProperty
SetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterf
ace2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPro
pertyEnumeratorCallback); | 458 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface2
V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedProperty
SetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterf
ace2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPro
pertyEnumeratorCallback); |
| 459 | 459 |
| 460 // Custom toString template | 460 // Custom toString template |
| 461 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 461 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 462 } | 462 } |
| 463 | 463 |
| 464 v8::Handle<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isol
ate) | 464 v8::Handle<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isol
ate) |
| 465 { | 465 { |
| 466 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 466 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestInterface2Template); |
| 467 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | |
| 468 if (!result.IsEmpty()) | |
| 469 return result; | |
| 470 | |
| 471 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | |
| 472 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | |
| 473 configureV8TestInterface2Template(result, isolate); | |
| 474 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | |
| 475 return result; | |
| 476 } | 467 } |
| 477 | 468 |
| 478 bool V8TestInterface2::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) | 469 bool V8TestInterface2::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) |
| 479 { | 470 { |
| 480 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 471 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 481 } | 472 } |
| 482 | 473 |
| 483 v8::Handle<v8::Object> V8TestInterface2::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) | 474 v8::Handle<v8::Object> V8TestInterface2::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) |
| 484 { | 475 { |
| 485 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 476 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 fromInternalPointer(object)->deref(); | 517 fromInternalPointer(object)->deref(); |
| 527 } | 518 } |
| 528 | 519 |
| 529 template<> | 520 template<> |
| 530 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 521 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 531 { | 522 { |
| 532 return toV8(impl, creationContext, isolate); | 523 return toV8(impl, creationContext, isolate); |
| 533 } | 524 } |
| 534 | 525 |
| 535 } // namespace WebCore | 526 } // namespace WebCore |
| OLD | NEW |