Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceNode.cpp

Issue 234403004: Rename V8TRYCATCH_* macros in v8/V8BindingMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: BOOL*_BOOL -> BOOL* Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "V8TestInterfaceNode.h" 8 #include "V8TestInterfaceNode.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 58 {
59 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 59 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
60 TestInterfaceNodeV8Internal::stringAttributeAttributeGetter(info); 60 TestInterfaceNodeV8Internal::stringAttributeAttributeGetter(info);
61 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 61 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
62 } 62 }
63 63
64 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 64 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
65 { 65 {
66 v8::Handle<v8::Object> holder = info.Holder(); 66 v8::Handle<v8::Object> holder = info.Holder();
67 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); 67 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
68 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 68 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
69 impl->setStringAttribute(cppValue); 69 impl->setStringAttribute(cppValue);
70 } 70 }
71 71
72 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 72 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
73 { 73 {
74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
75 TestInterfaceNodeV8Internal::stringAttributeAttributeSetter(v8Value, info); 75 TestInterfaceNodeV8Internal::stringAttributeAttributeSetter(v8Value, info);
76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
77 } 77 }
78 78
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 { 158 {
159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
160 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetter(info); 160 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeGetter(info);
161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
162 } 162 }
163 163
164 static void reflectStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 164 static void reflectStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
165 { 165 {
166 v8::Handle<v8::Object> holder = info.Holder(); 166 v8::Handle<v8::Object> holder = info.Holder();
167 Element* impl = V8Element::toNative(holder); 167 Element* impl = V8Element::toNative(holder);
168 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 168 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
169 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue); 169 impl->setAttribute(HTMLNames::reflectstringattributeAttr, cppValue);
170 } 170 }
171 171
172 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 172 static void reflectStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
173 { 173 {
174 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 174 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
175 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 175 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
176 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value, info); 176 TestInterfaceNodeV8Internal::reflectStringAttributeAttributeSetter(v8Value, info);
177 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 177 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
178 } 178 }
179 179
180 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 180 static void reflectUrlStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
181 { 181 {
182 v8::Handle<v8::Object> holder = info.Holder(); 182 v8::Handle<v8::Object> holder = info.Holder();
183 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); 183 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder);
184 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri ngattributeAttr), info.GetIsolate()); 184 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflecturlstri ngattributeAttr), info.GetIsolate());
185 } 185 }
186 186
187 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 187 static void reflectUrlStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
188 { 188 {
189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
190 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info); 190 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeGetter(info);
191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
192 } 192 }
193 193
194 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 194 static void reflectUrlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
195 { 195 {
196 v8::Handle<v8::Object> holder = info.Holder(); 196 v8::Handle<v8::Object> holder = info.Holder();
197 Element* impl = V8Element::toNative(holder); 197 Element* impl = V8Element::toNative(holder);
198 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); 198 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
199 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue); 199 impl->setAttribute(HTMLNames::reflecturlstringattributeAttr, cppValue);
200 } 200 }
201 201
202 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 202 static void reflectUrlStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
203 { 203 {
204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
205 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 205 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu e, info); 206 TestInterfaceNodeV8Internal::reflectUrlStringAttributeAttributeSetter(v8Valu e, info);
207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
208 } 208 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
247 } 247 }
248 248
249 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con st v8::FunctionCallbackInfo<v8::Value>& info) 249 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod(con st v8::FunctionCallbackInfo<v8::Value>& info)
250 { 250 {
251 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 251 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
252 if (UNLIKELY(info.Length() <= 0)) { 252 if (UNLIKELY(info.Length() <= 0)) {
253 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfa ceEmptyMethodOptionalBooleanArg()), impl); 253 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfa ceEmptyMethodOptionalBooleanArg()), impl);
254 return; 254 return;
255 } 255 }
256 V8TRYCATCH_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue()); 256 TONATIVE_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue());
257 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); 257 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl);
258 } 258 }
259 259
260 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 260 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
261 { 261 {
262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
263 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethod(info); 263 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethod(info);
264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
265 } 265 }
266 266
267 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 267 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
268 { 268 {
269 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 269 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
270 if (UNLIKELY(info.Length() <= 0)) { 270 if (UNLIKELY(info.Length() <= 0)) {
271 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTes tInterfaceEmptyMethodOptionalBooleanArg())); 271 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTes tInterfaceEmptyMethodOptionalBooleanArg()));
272 return; 272 return;
273 } 273 }
274 V8TRYCATCH_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue()); 274 TONATIVE_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue());
275 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); 275 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument)));
276 } 276 }
277 277
278 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 278 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
279 { 279 {
280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
281 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethodForMainWorld(info); 281 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethodForMainWorld(info);
282 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 282 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
283 } 283 }
284 284
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 fromInternalPointer(object)->deref(); 375 fromInternalPointer(object)->deref();
376 } 376 }
377 377
378 template<> 378 template<>
379 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate) 379 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate)
380 { 380 {
381 return toV8(impl, creationContext, isolate); 381 return toV8(impl, creationContext, isolate);
382 } 382 }
383 383
384 } // namespace WebCore 384 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698