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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 if (!result.IsEmpty()) | 71 if (!result.IsEmpty()) |
72 return result; | 72 return result; |
73 | 73 |
74 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 74 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
75 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 75 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
76 configureV8TestInterfaceDocumentTemplate(result, isolate); | 76 configureV8TestInterfaceDocumentTemplate(result, isolate); |
77 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 77 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
78 return result; | 78 return result; |
79 } | 79 } |
80 | 80 |
81 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> jsValue, v8::Iso
late* isolate) | 81 bool V8TestInterfaceDocument::hasInstance(v8::Handle<v8::Value> v8Value, v8::Iso
late* isolate) |
82 { | 82 { |
83 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 83 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
84 } | 84 } |
85 | 85 |
86 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> jsValue, v8::Isolate* isolate) | 86 v8::Handle<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8:
:Handle<v8::Value> v8Value, v8::Isolate* isolate) |
87 { | 87 { |
88 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 88 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
89 } | 89 } |
90 | 90 |
91 TestInterfaceDocument* V8TestInterfaceDocument::toNativeWithTypeCheck(v8::Isolat
e* isolate, v8::Handle<v8::Value> value) | 91 TestInterfaceDocument* V8TestInterfaceDocument::toNativeWithTypeCheck(v8::Isolat
e* isolate, v8::Handle<v8::Value> value) |
92 { | 92 { |
93 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 93 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
94 } | 94 } |
95 | 95 |
96 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec
t) | 96 EventTarget* V8TestInterfaceDocument::toEventTarget(v8::Handle<v8::Object> objec
t) |
97 { | 97 { |
98 return toNative(object); | 98 return toNative(object); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 fromInternalPointer(object)->deref(); | 145 fromInternalPointer(object)->deref(); |
146 } | 146 } |
147 | 147 |
148 template<> | 148 template<> |
149 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 149 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
150 { | 150 { |
151 return toV8(impl, creationContext, isolate); | 151 return toV8(impl, creationContext, isolate); |
152 } | 152 } |
153 | 153 |
154 } // namespace WebCore | 154 } // namespace WebCore |
OLD | NEW |