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 "V8TestInterfaceNode.h" | 8 #include "V8TestInterfaceNode.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 242 static void perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
243 { | 243 { |
244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
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 if (UNLIKELY(info.Length() <= 0)) { | 252 bool optionalBooleanArgument; |
253 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfa
ceEmptyMethodOptionalBooleanArg()), impl); | 253 { |
254 return; | 254 v8::TryCatch block; |
| 255 if (UNLIKELY(info.Length() <= 0)) { |
| 256 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg()), impl); |
| 257 return; |
| 258 } |
| 259 TONATIVE_VOID_NO_DECL(optionalBooleanArgument, info[0]->BooleanValue()); |
255 } | 260 } |
256 TONATIVE_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue()); | |
257 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); | 261 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldBindingsTestInterfaceEm
ptyMethodOptionalBooleanArg(optionalBooleanArgument)), impl); |
258 } | 262 } |
259 | 263 |
260 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 264 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
261 { | 265 { |
262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 266 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
263 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); | 267 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); |
264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
265 } | 269 } |
266 | 270 |
267 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 271 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
268 { | 272 { |
269 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); | 273 TestInterfaceNode* impl = V8TestInterfaceNode::toNative(info.Holder()); |
270 if (UNLIKELY(info.Length() <= 0)) { | 274 bool optionalBooleanArgument; |
271 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTes
tInterfaceEmptyMethodOptionalBooleanArg())); | 275 { |
272 return; | 276 v8::TryCatch block; |
| 277 if (UNLIKELY(info.Length() <= 0)) { |
| 278 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBinding
sTestInterfaceEmptyMethodOptionalBooleanArg())); |
| 279 return; |
| 280 } |
| 281 TONATIVE_VOID_NO_DECL(optionalBooleanArgument, info[0]->BooleanValue()); |
273 } | 282 } |
274 TONATIVE_VOID(bool, optionalBooleanArgument, info[0]->BooleanValue()); | |
275 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); | 283 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldBindingsTestInt
erfaceEmptyMethodOptionalBooleanArg(optionalBooleanArgument))); |
276 } | 284 } |
277 | 285 |
278 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 286 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
279 { | 287 { |
280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 288 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
281 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); | 289 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); |
282 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 290 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
283 } | 291 } |
284 | 292 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 fromInternalPointer(object)->deref(); | 383 fromInternalPointer(object)->deref(); |
376 } | 384 } |
377 | 385 |
378 template<> | 386 template<> |
379 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) | 387 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNode* impl, v8::Handle<v8::Objec
t> creationContext, v8::Isolate* isolate) |
380 { | 388 { |
381 return toV8(impl, creationContext, isolate); | 389 return toV8(impl, creationContext, isolate); |
382 } | 390 } |
383 | 391 |
384 } // namespace WebCore | 392 } // namespace WebCore |
OLD | NEW |