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

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

Issue 304223007: Use auto-rethrowing v8::TryCatch variant (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: make constructors explicit Created 6 years, 6 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
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF orMainWorld(info); 245 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodMethodF orMainWorld(info);
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 bool optionalBooleanArgument; 252 bool optionalBooleanArgument;
253 { 253 {
254 v8::TryCatch block; 254 v8::TryCatch block;
255 V8RethrowTryCatchScope rethrow(block);
255 if (UNLIKELY(info.Length() <= 0)) { 256 if (UNLIKELY(info.Length() <= 0)) {
256 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg()), impl); 257 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg()), impl);
257 return; 258 return;
258 } 259 }
259 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ; 260 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ;
260 } 261 }
261 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); 262 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl);
262 } 263 }
263 264
264 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info) 265 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall back(const v8::FunctionCallbackInfo<v8::Value>& info)
265 { 266 {
266 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
267 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethod(info); 268 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona lBooleanArgMethod(info);
268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
269 } 270 }
270 271
271 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 272 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
272 { 273 {
273 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); 274 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder());
274 bool optionalBooleanArgument; 275 bool optionalBooleanArgument;
275 { 276 {
276 v8::TryCatch block; 277 v8::TryCatch block;
278 V8RethrowTryCatchScope rethrow(block);
277 if (UNLIKELY(info.Length() <= 0)) { 279 if (UNLIKELY(info.Length() <= 0)) {
278 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding sTestInterfaceEmptyMethodOptionalBooleanArg())); 280 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding sTestInterfaceEmptyMethodOptionalBooleanArg()));
279 return; 281 return;
280 } 282 }
281 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ; 283 TONATIVE_VOID_INTERNAL(optionalBooleanArgument, info[0]->BooleanValue()) ;
282 } 284 }
283 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); 285 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument)));
284 } 286 }
285 287
286 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) 288 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 #endif // !ENABLE(OILPAN) 387 #endif // !ENABLE(OILPAN)
386 } 388 }
387 389
388 template<> 390 template<>
389 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate) 391 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec t> creationContext, v8::Isolate* isolate)
390 { 392 {
391 return toV8(impl, creationContext, isolate); 393 return toV8(impl, creationContext, isolate);
392 } 394 }
393 395
394 } // namespace WebCore 396 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698