| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 WrapperTypeInfo V8TestInterfaceImplementedAs::info = { V8TestInterfaceImplemente
dAs::GetTemplate, V8TestInterfaceImplementedAs::derefObject, 0, 0, 0, V8TestInte
rfaceImplementedAs::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr
ototype }; | 60 WrapperTypeInfo V8TestInterfaceImplementedAs::info = { V8TestInterfaceImplemente
dAs::GetTemplate, V8TestInterfaceImplementedAs::derefObject, 0, 0, 0, V8TestInte
rfaceImplementedAs::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr
ototype }; |
| 61 | 61 |
| 62 namespace RealClassV8Internal { | 62 namespace RealClassV8Internal { |
| 63 | 63 |
| 64 template <typename T> void V8_USE(T) { } | 64 template <typename T> void V8_USE(T) { } |
| 65 | 65 |
| 66 static void aAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) | 66 static void aAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 67 { | 67 { |
| 68 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); | 68 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); |
| 69 v8SetReturnValueString(info, imp->a(), info.GetIsolate()); | 69 v8SetReturnValueString(info, imp->a(), info.GetIsolate()); |
| 70 return; | |
| 71 } | 70 } |
| 72 | 71 |
| 73 static void aAttributeGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 72 static void aAttributeGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 74 { | 73 { |
| 75 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 76 RealClassV8Internal::aAttributeGetter(name, info); | 75 RealClassV8Internal::aAttributeGetter(name, info); |
| 77 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 78 } | 77 } |
| 79 | 78 |
| 80 static void aAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) | 79 static void aAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 81 { | 80 { |
| 82 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); | 81 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); |
| 83 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); | 82 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 84 imp->setA(v); | 83 imp->setA(v); |
| 85 return; | |
| 86 } | 84 } |
| 87 | 85 |
| 88 static void aAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) | 86 static void aAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 89 { | 87 { |
| 90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 91 RealClassV8Internal::aAttributeSetter(name, value, info); | 89 RealClassV8Internal::aAttributeSetter(name, value, info); |
| 92 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 93 } | 91 } |
| 94 | 92 |
| 95 static void bAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) | 93 static void bAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 96 { | 94 { |
| 97 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); | 95 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); |
| 98 v8SetReturnValueFast(info, imp->b(), imp); | 96 v8SetReturnValueFast(info, imp->b(), imp); |
| 99 return; | |
| 100 } | 97 } |
| 101 | 98 |
| 102 static void bAttributeGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 99 static void bAttributeGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 103 { | 100 { |
| 104 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 105 RealClassV8Internal::bAttributeGetter(name, info); | 102 RealClassV8Internal::bAttributeGetter(name, info); |
| 106 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 107 } | 104 } |
| 108 | 105 |
| 109 static void bAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) | 106 static void bAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 110 { | 107 { |
| 111 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); | 108 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); |
| 112 V8TRYCATCH_VOID(RealClass*, v, V8TestInterfaceImplementedAs::HasInstance(val
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceImplemente
dAs::toNative(v8::Handle<v8::Object>::Cast(value)) : 0); | 109 V8TRYCATCH_VOID(RealClass*, v, V8TestInterfaceImplementedAs::HasInstance(val
ue, info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestInterfaceImplemente
dAs::toNative(v8::Handle<v8::Object>::Cast(value)) : 0); |
| 113 imp->setB(WTF::getPtr(v)); | 110 imp->setB(WTF::getPtr(v)); |
| 114 return; | |
| 115 } | 111 } |
| 116 | 112 |
| 117 static void bAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) | 113 static void bAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 118 { | 114 { |
| 119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 120 RealClassV8Internal::bAttributeSetter(name, value, info); | 116 RealClassV8Internal::bAttributeSetter(name, value, info); |
| 121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 122 } | 118 } |
| 123 | 119 |
| 124 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) | 120 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); | 237 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
| 242 return wrapper; | 238 return wrapper; |
| 243 } | 239 } |
| 244 | 240 |
| 245 void V8TestInterfaceImplementedAs::derefObject(void* object) | 241 void V8TestInterfaceImplementedAs::derefObject(void* object) |
| 246 { | 242 { |
| 247 fromInternalPointer(object)->deref(); | 243 fromInternalPointer(object)->deref(); |
| 248 } | 244 } |
| 249 | 245 |
| 250 } // namespace WebCore | 246 } // namespace WebCore |
| OLD | NEW |