| 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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 3463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3474 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3474 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3475 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3475 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 3476 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3476 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); |
| 3477 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3477 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3478 } | 3478 } |
| 3479 | 3479 |
| 3480 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 3480 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 3481 { | 3481 { |
| 3482 v8::Handle<v8::Object> holder = info.Holder(); | 3482 v8::Handle<v8::Object> holder = info.Holder(); |
| 3483 TestObject* impl = V8TestObject::toNative(holder); | 3483 TestObject* impl = V8TestObject::toNative(holder); |
| 3484 v8SetReturnValueUnsigned(info, std::max(0, impl->fastGetAttribute(HTMLNames:
:reflectunsignedshortattributeAttr))); | 3484 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt
ribute(HTMLNames::reflectunsignedshortattributeAttr)))); |
| 3485 } | 3485 } |
| 3486 | 3486 |
| 3487 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3487 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3488 { | 3488 { |
| 3489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3489 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3490 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3490 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); |
| 3491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3491 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3492 } | 3492 } |
| 3493 | 3493 |
| 3494 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3494 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3506 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3506 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 3507 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3507 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
| 3508 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3508 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); |
| 3509 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3509 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3510 } | 3510 } |
| 3511 | 3511 |
| 3512 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3512 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
| 3513 { | 3513 { |
| 3514 v8::Handle<v8::Object> holder = info.Holder(); | 3514 v8::Handle<v8::Object> holder = info.Holder(); |
| 3515 TestObject* impl = V8TestObject::toNative(holder); | 3515 TestObject* impl = V8TestObject::toNative(holder); |
| 3516 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa
mes::reflectunsignedlongattributeAttr))); | 3516 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra
lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); |
| 3517 } | 3517 } |
| 3518 | 3518 |
| 3519 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3519 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3520 { | 3520 { |
| 3521 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3521 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 3522 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3522 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); |
| 3523 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3523 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 3524 } | 3524 } |
| 3525 | 3525 |
| 3526 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3526 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 7511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11038 fromInternalPointer(object)->deref(); | 11038 fromInternalPointer(object)->deref(); |
| 11039 } | 11039 } |
| 11040 | 11040 |
| 11041 template<> | 11041 template<> |
| 11042 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 11042 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| 11043 { | 11043 { |
| 11044 return toV8(impl, creationContext, isolate); | 11044 return toV8(impl, creationContext, isolate); |
| 11045 } | 11045 } |
| 11046 | 11046 |
| 11047 } // namespace WebCore | 11047 } // namespace WebCore |
| OLD | NEW |