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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 static void bAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) | 117 static void bAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
118 { | 118 { |
119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
120 RealClassV8Internal::bAttributeSetter(name, value, info); | 120 RealClassV8Internal::bAttributeSetter(name, value, info); |
121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
122 } | 122 } |
123 | 123 |
124 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) | 124 static void func1Method(const v8::FunctionCallbackInfo<v8::Value>& args) |
125 { | 125 { |
126 if (args.Length() < 1) { | 126 if (UNLIKELY(args.Length() < 1)) { |
127 throwNotEnoughArgumentsError(args.GetIsolate()); | 127 throwNotEnoughArgumentsError(args.GetIsolate()); |
128 return; | 128 return; |
129 } | 129 } |
130 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); | 130 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); |
131 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, args[0]); | 131 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, a, args[0]); |
132 v8SetReturnValueString(args, imp->func1(a), args.GetIsolate()); | 132 v8SetReturnValueString(args, imp->func1(a), args.GetIsolate()); |
133 return; | 133 return; |
134 } | 134 } |
135 | 135 |
136 static void func1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) | 136 static void func1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) |
137 { | 137 { |
138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
139 RealClassV8Internal::func1Method(args); | 139 RealClassV8Internal::func1Method(args); |
140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
141 } | 141 } |
142 | 142 |
143 static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallback
Info<v8::Value>& args) | 143 static void funcTestInterfaceImplementedAsParamMethod(const v8::FunctionCallback
Info<v8::Value>& args) |
144 { | 144 { |
145 if (args.Length() < 1) { | 145 if (UNLIKELY(args.Length() < 1)) { |
146 throwNotEnoughArgumentsError(args.GetIsolate()); | 146 throwNotEnoughArgumentsError(args.GetIsolate()); |
147 return; | 147 return; |
148 } | 148 } |
149 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); | 149 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); |
150 V8TRYCATCH_VOID(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstanc
e(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8TestInterfaceImp
lementedAs::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 150 V8TRYCATCH_VOID(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstanc
e(args[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8TestInterfaceImp
lementedAs::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); |
151 v8SetReturnValueString(args, imp->funcTestInterfaceImplementedAsParam(orange
), args.GetIsolate()); | 151 v8SetReturnValueString(args, imp->funcTestInterfaceImplementedAsParam(orange
), args.GetIsolate()); |
152 return; | 152 return; |
153 } | 153 } |
154 | 154 |
155 static void funcTestInterfaceImplementedAsParamMethodCallback(const v8::Function
CallbackInfo<v8::Value>& args) | 155 static void funcTestInterfaceImplementedAsParamMethodCallback(const v8::Function
CallbackInfo<v8::Value>& args) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); | 241 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceImplementedAs>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
242 return wrapper; | 242 return wrapper; |
243 } | 243 } |
244 | 244 |
245 void V8TestInterfaceImplementedAs::derefObject(void* object) | 245 void V8TestInterfaceImplementedAs::derefObject(void* object) |
246 { | 246 { |
247 fromInternalPointer(object)->deref(); | 247 fromInternalPointer(object)->deref(); |
248 } | 248 } |
249 | 249 |
250 } // namespace WebCore | 250 } // namespace WebCore |
OLD | NEW |