| 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 "V8TestInterfaceDocument.h" | 8 #include "V8TestInterfaceDocument.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 isolate); | 59 isolate); |
| 60 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); | 60 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla
te->InstanceTemplate(); |
| 61 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); | 61 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); |
| 62 | 62 |
| 63 // Custom toString template | 63 // Custom toString template |
| 64 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 64 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 65 } | 65 } |
| 66 | 66 |
| 67 v8::Handle<v8::FunctionTemplate> V8TestInterfaceDocument::domTemplate(v8::Isolat
e* isolate) | 67 v8::Handle<v8::FunctionTemplate> V8TestInterfaceDocument::domTemplate(v8::Isolat
e* isolate) |
| 68 { | 68 { |
| 69 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 69 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestInterfaceDocumentTemplate); |
| 70 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | |
| 71 if (!result.IsEmpty()) | |
| 72 return result; | |
| 73 | |
| 74 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | |
| 75 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | |
| 76 configureV8TestInterfaceDocumentTemplate(result, isolate); | |
| 77 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | |
| 78 return result; | |
| 79 } | 70 } |
| 80 | 71 |
| 81 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) | 72 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) |
| 82 { | 73 { |
| 83 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 74 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 84 } | 75 } |
| 85 | 76 |
| 86 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) | 77 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 87 { | 78 { |
| 88 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 79 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 #endif // !ENABLE(OILPAN) | 138 #endif // !ENABLE(OILPAN) |
| 148 } | 139 } |
| 149 | 140 |
| 150 template<> | 141 template<> |
| 151 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 142 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
| 152 { | 143 { |
| 153 return toV8(impl, creationContext, isolate); | 144 return toV8(impl, creationContext, isolate); |
| 154 } | 145 } |
| 155 | 146 |
| 156 } // namespace WebCore | 147 } // namespace WebCore |
| OLD | NEW |