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

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

Issue 373043004: IDL: Treat undefined as missing for optional arguments with defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 5 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
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 7322 matching lines...) Expand 10 before | Expand all | Expand 10 after
7333 } 7333 }
7334 7334
7335 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7335 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7336 { 7336 {
7337 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); 7337 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
7338 TestObject* impl = V8TestObject::toNative(info.Holder()); 7338 TestObject* impl = V8TestObject::toNative(info.Holder());
7339 V8StringResource<> defaultByteStringArg; 7339 V8StringResource<> defaultByteStringArg;
7340 { 7340 {
7341 v8::TryCatch block; 7341 v8::TryCatch block;
7342 V8RethrowTryCatchScope rethrow(block); 7342 V8RethrowTryCatchScope rethrow(block);
7343 if (info.Length() > 0) { 7343 if (!info[0]->IsUndefined()) {
7344 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt ring(info[0], exceptionState), exceptionState); 7344 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt ring(info[0], exceptionState), exceptionState);
7345 } else { 7345 } else {
7346 defaultByteStringArg = String("foo"); 7346 defaultByteStringArg = String("foo");
7347 } 7347 }
7348 } 7348 }
7349 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); 7349 impl->voidMethodDefaultByteStringArg(defaultByteStringArg);
7350 } 7350 }
7351 7351
7352 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7352 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
7353 { 7353 {
7354 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7354 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7355 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); 7355 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info);
7356 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7356 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7357 } 7357 }
7358 7358
7359 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 7359 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
7360 { 7360 {
7361 TestObject* impl = V8TestObject::toNative(info.Holder()); 7361 TestObject* impl = V8TestObject::toNative(info.Holder());
7362 V8StringResource<> defaultStringArg; 7362 V8StringResource<> defaultStringArg;
7363 { 7363 {
7364 if (info.Length() > 0) { 7364 if (!info[0]->IsUndefined()) {
7365 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); 7365 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]);
7366 } else { 7366 } else {
7367 defaultStringArg = String("foo"); 7367 defaultStringArg = String("foo");
7368 } 7368 }
7369 } 7369 }
7370 impl->voidMethodDefaultStringArg(defaultStringArg); 7370 impl->voidMethodDefaultStringArg(defaultStringArg);
7371 } 7371 }
7372 7372
7373 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 7373 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
7374 { 7374 {
7375 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7375 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7376 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); 7376 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info);
7377 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7377 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7378 } 7378 }
7379 7379
7380 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7380 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7381 { 7381 {
7382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); 7382 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate());
7383 TestObject* impl = V8TestObject::toNative(info.Holder()); 7383 TestObject* impl = V8TestObject::toNative(info.Holder());
7384 int defaultLongArg; 7384 int defaultLongArg;
7385 long long defaultLongLongArg; 7385 long long defaultLongLongArg;
7386 unsigned defaultUnsignedArg; 7386 unsigned defaultUnsignedArg;
7387 { 7387 {
7388 v8::TryCatch block; 7388 v8::TryCatch block;
7389 V8RethrowTryCatchScope rethrow(block); 7389 V8RethrowTryCatchScope rethrow(block);
7390 if (info.Length() > 0) { 7390 if (!info[0]->IsUndefined()) {
7391 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState); 7391 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState);
7392 } else { 7392 } else {
7393 defaultLongArg = 10; 7393 defaultLongArg = 10;
7394 } 7394 }
7395 if (info.Length() > 1) { 7395 if (!info[1]->IsUndefined()) {
7396 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in fo[1], exceptionState), exceptionState); 7396 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in fo[1], exceptionState), exceptionState);
7397 } else { 7397 } else {
7398 defaultLongLongArg = -10; 7398 defaultLongLongArg = -10;
7399 } 7399 }
7400 if (info.Length() > 2) { 7400 if (!info[2]->IsUndefined()) {
7401 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i nfo[2], exceptionState), exceptionState); 7401 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i nfo[2], exceptionState), exceptionState);
7402 } else { 7402 } else {
7403 defaultUnsignedArg = 4294967295u; 7403 defaultUnsignedArg = 4294967295u;
7404 } 7404 }
7405 } 7405 }
7406 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg); 7406 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau ltUnsignedArg);
7407 } 7407 }
7408 7408
7409 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 7409 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
7410 { 7410 {
7411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7412 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); 7412 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info);
7413 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7413 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7414 } 7414 }
7415 7415
7416 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 7416 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
7417 { 7417 {
7418 TestObject* impl = V8TestObject::toNative(info.Holder()); 7418 TestObject* impl = V8TestObject::toNative(info.Holder());
7419 double defaultDoubleArg; 7419 double defaultDoubleArg;
7420 { 7420 {
7421 v8::TryCatch block; 7421 v8::TryCatch block;
7422 V8RethrowTryCatchScope rethrow(block); 7422 V8RethrowTryCatchScope rethrow(block);
7423 if (info.Length() > 0) { 7423 if (!info[0]->IsUndefined()) {
7424 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0] ->NumberValue())); 7424 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0] ->NumberValue()));
7425 } else { 7425 } else {
7426 defaultDoubleArg = 0.5; 7426 defaultDoubleArg = 0.5;
7427 } 7427 }
7428 } 7428 }
7429 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); 7429 impl->voidMethodDefaultDoubleArg(defaultDoubleArg);
7430 } 7430 }
7431 7431
7432 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 7432 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
7433 { 7433 {
7434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7435 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); 7435 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info);
7436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7437 } 7437 }
7438 7438
7439 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 7439 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
7440 { 7440 {
7441 TestObject* impl = V8TestObject::toNative(info.Holder()); 7441 TestObject* impl = V8TestObject::toNative(info.Holder());
7442 bool defaultBooleanArg; 7442 bool defaultBooleanArg;
7443 { 7443 {
7444 v8::TryCatch block; 7444 v8::TryCatch block;
7445 V8RethrowTryCatchScope rethrow(block); 7445 V8RethrowTryCatchScope rethrow(block);
7446 if (info.Length() > 0) { 7446 if (!info[0]->IsUndefined()) {
7447 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); 7447 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue());
7448 } else { 7448 } else {
7449 defaultBooleanArg = true; 7449 defaultBooleanArg = true;
7450 } 7450 }
7451 } 7451 }
7452 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); 7452 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg);
7453 } 7453 }
7454 7454
7455 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 7455 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
7456 { 7456 {
7457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7458 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); 7458 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info);
7459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7460 } 7460 }
7461 7461
7462 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7462 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
7463 { 7463 {
7464 TestObject* impl = V8TestObject::toNative(info.Holder()); 7464 TestObject* impl = V8TestObject::toNative(info.Holder());
7465 bool defaultBooleanArg; 7465 bool defaultBooleanArg;
7466 { 7466 {
7467 v8::TryCatch block; 7467 v8::TryCatch block;
7468 V8RethrowTryCatchScope rethrow(block); 7468 V8RethrowTryCatchScope rethrow(block);
7469 if (info.Length() > 0) { 7469 if (!info[0]->IsUndefined()) {
7470 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); 7470 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue());
7471 } else { 7471 } else {
7472 defaultBooleanArg = false; 7472 defaultBooleanArg = false;
7473 } 7473 }
7474 } 7474 }
7475 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); 7475 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg);
7476 } 7476 }
7477 7477
7478 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 7478 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
7479 { 7479 {
7480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7481 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); 7481 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info);
7482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7483 } 7483 }
7484 7484
7485 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 7485 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
7486 { 7486 {
7487 TestObject* impl = V8TestObject::toNative(info.Holder()); 7487 TestObject* impl = V8TestObject::toNative(info.Holder());
7488 V8StringResource<TreatNullAsNullString> defaultStringArg; 7488 V8StringResource<TreatNullAsNullString> defaultStringArg;
7489 { 7489 {
7490 v8::TryCatch block; 7490 v8::TryCatch block;
7491 V8RethrowTryCatchScope rethrow(block); 7491 V8RethrowTryCatchScope rethrow(block);
7492 if (info.Length() > 0) { 7492 if (!info[0]->IsUndefined()) {
7493 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); 7493 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0]));
7494 } else { 7494 } else {
7495 defaultStringArg = nullptr; 7495 defaultStringArg = nullptr;
7496 } 7496 }
7497 } 7497 }
7498 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); 7498 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg);
7499 } 7499 }
7500 7500
7501 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 7501 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
7502 { 7502 {
7503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7504 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); 7504 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info);
7505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7506 } 7506 }
7507 7507
7508 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 7508 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
7509 { 7509 {
7510 TestObject* impl = V8TestObject::toNative(info.Holder()); 7510 TestObject* impl = V8TestObject::toNative(info.Holder());
7511 V8StringResource<TreatNullAsNullString> defaultStringArg; 7511 V8StringResource<TreatNullAsNullString> defaultStringArg;
7512 { 7512 {
7513 if (info.Length() > 0) { 7513 if (!info[0]->IsUndefined()) {
7514 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); 7514 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]);
7515 } else { 7515 } else {
7516 defaultStringArg = nullptr; 7516 defaultStringArg = nullptr;
7517 } 7517 }
7518 } 7518 }
7519 impl->voidMethodDefaultNullableStringArg(defaultStringArg); 7519 impl->voidMethodDefaultNullableStringArg(defaultStringArg);
7520 } 7520 }
7521 7521
7522 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 7522 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
7523 { 7523 {
7524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7524 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7525 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); 7525 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info);
7526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7527 } 7527 }
7528 7528
7529 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 7529 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
7530 { 7530 {
7531 TestObject* impl = V8TestObject::toNative(info.Holder()); 7531 TestObject* impl = V8TestObject::toNative(info.Holder());
7532 TestInterfaceImplementation* defaultTestInterfaceArg; 7532 TestInterfaceImplementation* defaultTestInterfaceArg;
7533 { 7533 {
7534 v8::TryCatch block; 7534 v8::TryCatch block;
7535 V8RethrowTryCatchScope rethrow(block); 7535 V8RethrowTryCatchScope rethrow(block);
7536 if (info.Length() > 0) { 7536 if (!info[0]->IsUndefined()) {
7537 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), info[0])); 7537 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), info[0]));
7538 } else { 7538 } else {
7539 defaultTestInterfaceArg = nullptr; 7539 defaultTestInterfaceArg = nullptr;
7540 } 7540 }
7541 } 7541 }
7542 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); 7542 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg);
7543 } 7543 }
7544 7544
7545 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 7545 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
7546 { 7546 {
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
8083 impl->overloadedMethodG(longArg); 8083 impl->overloadedMethodG(longArg);
8084 } 8084 }
8085 8085
8086 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8086 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8087 { 8087 {
8088 TestObject* impl = V8TestObject::toNative(info.Holder()); 8088 TestObject* impl = V8TestObject::toNative(info.Holder());
8089 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 8089 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
8090 { 8090 {
8091 v8::TryCatch block; 8091 v8::TryCatch block;
8092 V8RethrowTryCatchScope rethrow(block); 8092 V8RethrowTryCatchScope rethrow(block);
8093 if (info.Length() > 0) { 8093 if (!info[0]->IsUndefined()) {
8094 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 8094 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
8095 } else { 8095 } else {
8096 testInterfaceEmptyOrNullArg = nullptr; 8096 testInterfaceEmptyOrNullArg = nullptr;
8097 } 8097 }
8098 } 8098 }
8099 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); 8099 impl->overloadedMethodG(testInterfaceEmptyOrNullArg);
8100 } 8100 }
8101 8101
8102 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8102 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8103 { 8103 {
(...skipping 2877 matching lines...) Expand 10 before | Expand all | Expand 10 after
10981 fromInternalPointer(object)->deref(); 10981 fromInternalPointer(object)->deref();
10982 } 10982 }
10983 10983
10984 template<> 10984 template<>
10985 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 10985 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
10986 { 10986 {
10987 return toV8(impl, creationContext, isolate); 10987 return toV8(impl, creationContext, isolate);
10988 } 10988 }
10989 10989
10990 } // namespace WebCore 10990 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698