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 "V8TestInterfaceNamedConstructor2.h" | 8 #include "V8TestInterfaceNamedConstructor2.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 if (!result.IsEmpty()) | 120 if (!result.IsEmpty()) |
121 return result; | 121 return result; |
122 | 122 |
123 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 123 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
124 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 124 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
125 configureV8TestInterfaceNamedConstructor2Template(result, isolate); | 125 configureV8TestInterfaceNamedConstructor2Template(result, isolate); |
126 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 126 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
127 return result; | 127 return result; |
128 } | 128 } |
129 | 129 |
130 bool V8TestInterfaceNamedConstructor2::hasInstance(v8::Handle<v8::Value> jsValue
, v8::Isolate* isolate) | 130 bool V8TestInterfaceNamedConstructor2::hasInstance(v8::Handle<v8::Value> v8Value
, v8::Isolate* isolate) |
131 { | 131 { |
132 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 132 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
133 } | 133 } |
134 | 134 |
135 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor2::findInstanceInPrototype
Chain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 135 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor2::findInstanceInPrototype
Chain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
136 { | 136 { |
137 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 137 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
138 } | 138 } |
139 | 139 |
140 TestInterfaceNamedConstructor2* V8TestInterfaceNamedConstructor2::toNativeWithTy
peCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 140 TestInterfaceNamedConstructor2* V8TestInterfaceNamedConstructor2::toNativeWithTy
peCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
141 { | 141 { |
142 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 142 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
143 } | 143 } |
144 | 144 |
145 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor2::createWrapper(PassRefPt
r<TestInterfaceNamedConstructor2> impl, v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) | 145 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor2::createWrapper(PassRefPt
r<TestInterfaceNamedConstructor2> impl, v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) |
146 { | 146 { |
147 ASSERT(impl); | 147 ASSERT(impl); |
(...skipping 19 matching lines...) Expand all Loading... |
167 fromInternalPointer(object)->deref(); | 167 fromInternalPointer(object)->deref(); |
168 } | 168 } |
169 | 169 |
170 template<> | 170 template<> |
171 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 171 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
172 { | 172 { |
173 return toV8(impl, creationContext, isolate); | 173 return toV8(impl, creationContext, isolate); |
174 } | 174 } |
175 | 175 |
176 } // namespace WebCore | 176 } // namespace WebCore |
OLD | NEW |