| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); | 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon
lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); |
| 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 176 } | 176 } |
| 177 | 177 |
| 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
| 179 { | 179 { |
| 180 v8::Handle<v8::Object> holder = info.Holder(); | 180 v8::Handle<v8::Object> holder = info.Holder(); |
| 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); | 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
| 182 bool isNull = false; | 182 bool isNull = false; |
| 183 RefPtr<TestInterfaceEmpty> jsValue = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); | 183 RefPtr<TestInterfaceEmpty> v8Value = impl->initializedByEventConstructorRead
onlyNullableTestInterfaceEmptyAttribute(isNull); |
| 184 if (isNull) { | 184 if (isNull) { |
| 185 v8SetReturnValueNull(info); | 185 v8SetReturnValueNull(info); |
| 186 return; | 186 return; |
| 187 } | 187 } |
| 188 RefPtr<TestInterfaceEmpty> result(jsValue); | 188 RefPtr<TestInterfaceEmpty> result(v8Value); |
| 189 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 189 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
| 190 return; | 190 return; |
| 191 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); | 191 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate()
); |
| 192 if (!wrapper.IsEmpty()) { | 192 if (!wrapper.IsEmpty()) { |
| 193 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); | 193 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm
ptyAttribute"), wrapper); |
| 194 v8SetReturnValue(info, wrapper); | 194 v8SetReturnValue(info, wrapper); |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) | 198 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri
buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf
o<v8::Value>& info) |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 if (!result.IsEmpty()) | 378 if (!result.IsEmpty()) |
| 379 return result; | 379 return result; |
| 380 | 380 |
| 381 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 381 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
| 382 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 382 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
| 383 configureV8TestInterfaceEventConstructorTemplate(result, isolate); | 383 configureV8TestInterfaceEventConstructorTemplate(result, isolate); |
| 384 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 384 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
| 385 return result; | 385 return result; |
| 386 } | 386 } |
| 387 | 387 |
| 388 bool V8TestInterfaceEventConstructor::hasInstance(v8::Handle<v8::Value> jsValue,
v8::Isolate* isolate) | 388 bool V8TestInterfaceEventConstructor::hasInstance(v8::Handle<v8::Value> v8Value,
v8::Isolate* isolate) |
| 389 { | 389 { |
| 390 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 390 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 391 } | 391 } |
| 392 | 392 |
| 393 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 393 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::findInstanceInPrototypeC
hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
| 394 { | 394 { |
| 395 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 395 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 396 } | 396 } |
| 397 | 397 |
| 398 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) | 398 TestInterfaceEventConstructor* V8TestInterfaceEventConstructor::toNativeWithType
Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) |
| 399 { | 399 { |
| 400 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 400 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
| 401 } | 401 } |
| 402 | 402 |
| 403 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::createWrapper(PassRefPtr
<TestInterfaceEventConstructor> impl, v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) | 403 v8::Handle<v8::Object> V8TestInterfaceEventConstructor::createWrapper(PassRefPtr
<TestInterfaceEventConstructor> impl, v8::Handle<v8::Object> creationContext, v8
::Isolate* isolate) |
| 404 { | 404 { |
| 405 ASSERT(impl); | 405 ASSERT(impl); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 425 fromInternalPointer(object)->deref(); | 425 fromInternalPointer(object)->deref(); |
| 426 } | 426 } |
| 427 | 427 |
| 428 template<> | 428 template<> |
| 429 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 429 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 430 { | 430 { |
| 431 return toV8(impl, creationContext, isolate); | 431 return toV8(impl, creationContext, isolate); |
| 432 } | 432 } |
| 433 | 433 |
| 434 } // namespace WebCore | 434 } // namespace WebCore |
| OLD | NEW |