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 "V8TestInterfaceNode.h" | 7 #include "V8TestInterfaceNode.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/V8AbstractEventListener.h" | 10 #include "bindings/core/v8/V8AbstractEventListener.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 while (numArgsPassed > 0) { | 270 while (numArgsPassed > 0) { |
271 if (!info[numArgsPassed - 1]->IsUndefined()) | 271 if (!info[numArgsPassed - 1]->IsUndefined()) |
272 break; | 272 break; |
273 --numArgsPassed; | 273 --numArgsPassed; |
274 } | 274 } |
275 if (UNLIKELY(numArgsPassed <= 0)) { | 275 if (UNLIKELY(numArgsPassed <= 0)) { |
276 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyM
ethodOptionalBooleanArg(), impl); | 276 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyM
ethodOptionalBooleanArg(), impl); |
277 return; | 277 return; |
278 } | 278 } |
279 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptio
nState); | 279 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptio
nState); |
280 if (exceptionState.throwIfNeeded()) | 280 if (exceptionState.hadException()) |
281 return; | 281 return; |
282 } | 282 } |
283 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethodOpt
ionalBooleanArg(optionalBooleanArgument), impl); | 283 v8SetReturnValueFast(info, impl->perWorldBindingsTestInterfaceEmptyMethodOpt
ionalBooleanArg(optionalBooleanArgument), impl); |
284 } | 284 } |
285 | 285 |
286 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 286 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
287 { | 287 { |
288 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); | 288 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethod(info); |
289 } | 289 } |
290 | 290 |
291 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 291 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
292 { | 292 { |
293 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsTestInterfaceEmptyMethodOptionalBooleanArg", "TestInterfaceNode", info.Hold
er(), info.GetIsolate()); | 293 ExceptionState exceptionState(ExceptionState::ExecutionContext, "perWorldBin
dingsTestInterfaceEmptyMethodOptionalBooleanArg", "TestInterfaceNode", info.Hold
er(), info.GetIsolate()); |
294 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); | 294 TestInterfaceNode* impl = V8TestInterfaceNode::toImpl(info.Holder()); |
295 bool optionalBooleanArgument; | 295 bool optionalBooleanArgument; |
296 { | 296 { |
297 int numArgsPassed = info.Length(); | 297 int numArgsPassed = info.Length(); |
298 while (numArgsPassed > 0) { | 298 while (numArgsPassed > 0) { |
299 if (!info[numArgsPassed - 1]->IsUndefined()) | 299 if (!info[numArgsPassed - 1]->IsUndefined()) |
300 break; | 300 break; |
301 --numArgsPassed; | 301 --numArgsPassed; |
302 } | 302 } |
303 if (UNLIKELY(numArgsPassed <= 0)) { | 303 if (UNLIKELY(numArgsPassed <= 0)) { |
304 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfa
ceEmptyMethodOptionalBooleanArg()); | 304 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfa
ceEmptyMethodOptionalBooleanArg()); |
305 return; | 305 return; |
306 } | 306 } |
307 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptio
nState); | 307 optionalBooleanArgument = toBoolean(info.GetIsolate(), info[0], exceptio
nState); |
308 if (exceptionState.throwIfNeeded()) | 308 if (exceptionState.hadException()) |
309 return; | 309 return; |
310 } | 310 } |
311 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyM
ethodOptionalBooleanArg(optionalBooleanArgument)); | 311 v8SetReturnValueForMainWorld(info, impl->perWorldBindingsTestInterfaceEmptyM
ethodOptionalBooleanArg(optionalBooleanArgument)); |
312 } | 312 } |
313 | 313 |
314 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 314 static void perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
315 { | 315 { |
316 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); | 316 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptiona
lBooleanArgMethodForMainWorld(info); |
317 } | 317 } |
318 | 318 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 { | 363 { |
364 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 364 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
365 } | 365 } |
366 | 366 |
367 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) | 367 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) |
368 { | 368 { |
369 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; | 369 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : nullptr; |
370 } | 370 } |
371 | 371 |
372 } // namespace blink | 372 } // namespace blink |
OLD | NEW |