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 "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 functionTemplate->SetLength(1); | 366 functionTemplate->SetLength(1); |
367 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); | 367 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); |
368 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); | 368 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); |
369 | 369 |
370 // Custom toString template | 370 // Custom toString template |
371 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 371 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
372 } | 372 } |
373 | 373 |
374 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventConstructor::domTemplate(v8
::Isolate* isolate) | 374 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventConstructor::domTemplate(v8
::Isolate* isolate) |
375 { | 375 { |
376 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 376 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestInterfaceEventConstructorTemplate); |
377 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | |
378 if (!result.IsEmpty()) | |
379 return result; | |
380 | |
381 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | |
382 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | |
383 configureV8TestInterfaceEventConstructorTemplate(result, isolate); | |
384 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | |
385 return result; | |
386 } | 377 } |
387 | 378 |
388 bool V8TestInterfaceEventConstructor::hasInstance(v8::Handle<v8::Value> v8Value,
v8::Isolate* isolate) | 379 bool V8TestInterfaceEventConstructor::hasInstance(v8::Handle<v8::Value> v8Value,
v8::Isolate* isolate) |
389 { | 380 { |
390 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 381 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
391 } | 382 } |
392 | 383 |
393 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) | 384 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
394 { | 385 { |
395 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 386 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 #endif // !ENABLE(OILPAN) | 418 #endif // !ENABLE(OILPAN) |
428 } | 419 } |
429 | 420 |
430 template<> | 421 template<> |
431 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
432 { | 423 { |
433 return toV8(impl, creationContext, isolate); | 424 return toV8(impl, creationContext, isolate); |
434 } | 425 } |
435 | 426 |
436 } // namespace WebCore | 427 } // namespace WebCore |
OLD | NEW |