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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 7262 matching lines...) Loading... |
7273 } | 7273 } |
7274 | 7274 |
7275 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 7275 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
7276 { | 7276 { |
7277 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7277 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
7278 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7278 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7279 V8StringResource<> defaultByteStringArg; | 7279 V8StringResource<> defaultByteStringArg; |
7280 { | 7280 { |
7281 v8::TryCatch block; | 7281 v8::TryCatch block; |
7282 V8RethrowTryCatchScope rethrow(block); | 7282 V8RethrowTryCatchScope rethrow(block); |
7283 if (!info[0]->IsUndefined()) { | 7283 if (info.Length() > 0) { |
7284 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt
ring(info[0], exceptionState), exceptionState); | 7284 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt
ring(info[0], exceptionState), exceptionState); |
7285 } else { | 7285 } else { |
7286 defaultByteStringArg = String("foo"); | 7286 defaultByteStringArg = String("foo"); |
7287 } | 7287 } |
7288 } | 7288 } |
7289 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); | 7289 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); |
7290 } | 7290 } |
7291 | 7291 |
7292 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7292 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7293 { | 7293 { |
7294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7295 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); | 7295 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info); |
7296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7297 } | 7297 } |
7298 | 7298 |
7299 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7299 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7300 { | 7300 { |
7301 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7301 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7302 V8StringResource<> defaultStringArg; | 7302 V8StringResource<> defaultStringArg; |
7303 { | 7303 { |
7304 if (!info[0]->IsUndefined()) { | 7304 if (info.Length() > 0) { |
7305 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 7305 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); |
7306 } else { | 7306 } else { |
7307 defaultStringArg = String("foo"); | 7307 defaultStringArg = String("foo"); |
7308 } | 7308 } |
7309 } | 7309 } |
7310 impl->voidMethodDefaultStringArg(defaultStringArg); | 7310 impl->voidMethodDefaultStringArg(defaultStringArg); |
7311 } | 7311 } |
7312 | 7312 |
7313 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7313 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7314 { | 7314 { |
7315 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7315 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7316 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); | 7316 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); |
7317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7317 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7318 } | 7318 } |
7319 | 7319 |
7320 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 7320 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
7321 { | 7321 { |
7322 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); | 7322 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); |
7323 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7323 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7324 int defaultLongArg; | 7324 int defaultLongArg; |
7325 long long defaultLongLongArg; | 7325 long long defaultLongLongArg; |
7326 unsigned defaultUnsignedArg; | 7326 unsigned defaultUnsignedArg; |
7327 { | 7327 { |
7328 v8::TryCatch block; | 7328 v8::TryCatch block; |
7329 V8RethrowTryCatchScope rethrow(block); | 7329 V8RethrowTryCatchScope rethrow(block); |
7330 if (!info[0]->IsUndefined()) { | 7330 if (info.Length() > 0) { |
7331 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0
], exceptionState), exceptionState); | 7331 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0
], exceptionState), exceptionState); |
7332 } else { | 7332 } else { |
7333 defaultLongArg = 10; | 7333 defaultLongArg = 10; |
7334 } | 7334 } |
7335 if (!info[1]->IsUndefined()) { | 7335 if (info.Length() > 1) { |
7336 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in
fo[1], exceptionState), exceptionState); | 7336 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in
fo[1], exceptionState), exceptionState); |
7337 } else { | 7337 } else { |
7338 defaultLongLongArg = -10; | 7338 defaultLongLongArg = -10; |
7339 } | 7339 } |
7340 if (!info[2]->IsUndefined()) { | 7340 if (info.Length() > 2) { |
7341 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i
nfo[2], exceptionState), exceptionState); | 7341 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUnsignedArg, toUInt32(i
nfo[2], exceptionState), exceptionState); |
7342 } else { | 7342 } else { |
7343 defaultUnsignedArg = 4294967295u; | 7343 defaultUnsignedArg = 4294967295u; |
7344 } | 7344 } |
7345 } | 7345 } |
7346 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); | 7346 impl->voidMethodDefaultIntegerArgs(defaultLongArg, defaultLongLongArg, defau
ltUnsignedArg); |
7347 } | 7347 } |
7348 | 7348 |
7349 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 7349 static void voidMethodDefaultIntegerArgsMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
7350 { | 7350 { |
7351 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7351 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7352 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); | 7352 TestObjectV8Internal::voidMethodDefaultIntegerArgsMethod(info); |
7353 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7353 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7354 } | 7354 } |
7355 | 7355 |
7356 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7356 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7357 { | 7357 { |
7358 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7358 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7359 double defaultDoubleArg; | 7359 double defaultDoubleArg; |
7360 { | 7360 { |
7361 v8::TryCatch block; | 7361 v8::TryCatch block; |
7362 V8RethrowTryCatchScope rethrow(block); | 7362 V8RethrowTryCatchScope rethrow(block); |
7363 if (!info[0]->IsUndefined()) { | 7363 if (info.Length() > 0) { |
7364 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0]
->NumberValue())); | 7364 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0]
->NumberValue())); |
7365 } else { | 7365 } else { |
7366 defaultDoubleArg = 0.5; | 7366 defaultDoubleArg = 0.5; |
7367 } | 7367 } |
7368 } | 7368 } |
7369 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); | 7369 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); |
7370 } | 7370 } |
7371 | 7371 |
7372 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7372 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7373 { | 7373 { |
7374 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7374 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7375 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); | 7375 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); |
7376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7377 } | 7377 } |
7378 | 7378 |
7379 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7379 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7380 { | 7380 { |
7381 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7381 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7382 bool defaultBooleanArg; | 7382 bool defaultBooleanArg; |
7383 { | 7383 { |
7384 v8::TryCatch block; | 7384 v8::TryCatch block; |
7385 V8RethrowTryCatchScope rethrow(block); | 7385 V8RethrowTryCatchScope rethrow(block); |
7386 if (!info[0]->IsUndefined()) { | 7386 if (info.Length() > 0) { |
7387 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); | 7387 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); |
7388 } else { | 7388 } else { |
7389 defaultBooleanArg = true; | 7389 defaultBooleanArg = true; |
7390 } | 7390 } |
7391 } | 7391 } |
7392 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); | 7392 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); |
7393 } | 7393 } |
7394 | 7394 |
7395 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7395 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7396 { | 7396 { |
7397 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7397 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7398 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); | 7398 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); |
7399 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7399 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7400 } | 7400 } |
7401 | 7401 |
7402 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7402 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7403 { | 7403 { |
7404 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7404 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7405 bool defaultBooleanArg; | 7405 bool defaultBooleanArg; |
7406 { | 7406 { |
7407 v8::TryCatch block; | 7407 v8::TryCatch block; |
7408 V8RethrowTryCatchScope rethrow(block); | 7408 V8RethrowTryCatchScope rethrow(block); |
7409 if (!info[0]->IsUndefined()) { | 7409 if (info.Length() > 0) { |
7410 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); | 7410 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); |
7411 } else { | 7411 } else { |
7412 defaultBooleanArg = false; | 7412 defaultBooleanArg = false; |
7413 } | 7413 } |
7414 } | 7414 } |
7415 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); | 7415 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); |
7416 } | 7416 } |
7417 | 7417 |
7418 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7418 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7419 { | 7419 { |
7420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7421 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); | 7421 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); |
7422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7423 } | 7423 } |
7424 | 7424 |
7425 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7425 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
7426 { | 7426 { |
7427 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7427 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7428 V8StringResource<TreatNullAsNullString> defaultStringArg; | 7428 V8StringResource<TreatNullAsNullString> defaultStringArg; |
7429 { | 7429 { |
7430 v8::TryCatch block; | 7430 v8::TryCatch block; |
7431 V8RethrowTryCatchScope rethrow(block); | 7431 V8RethrowTryCatchScope rethrow(block); |
7432 if (!info[0]->IsUndefined()) { | 7432 if (info.Length() > 0) { |
7433 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); | 7433 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0])); |
7434 } else { | 7434 } else { |
7435 defaultStringArg = nullptr; | 7435 defaultStringArg = nullptr; |
7436 } | 7436 } |
7437 } | 7437 } |
7438 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); | 7438 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); |
7439 } | 7439 } |
7440 | 7440 |
7441 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7441 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7442 { | 7442 { |
7443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7444 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); | 7444 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info); |
7445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7446 } | 7446 } |
7447 | 7447 |
7448 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 7448 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
7449 { | 7449 { |
7450 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7450 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7451 V8StringResource<TreatNullAsNullString> defaultStringArg; | 7451 V8StringResource<TreatNullAsNullString> defaultStringArg; |
7452 { | 7452 { |
7453 if (!info[0]->IsUndefined()) { | 7453 if (info.Length() > 0) { |
7454 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); | 7454 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); |
7455 } else { | 7455 } else { |
7456 defaultStringArg = nullptr; | 7456 defaultStringArg = nullptr; |
7457 } | 7457 } |
7458 } | 7458 } |
7459 impl->voidMethodDefaultNullableStringArg(defaultStringArg); | 7459 impl->voidMethodDefaultNullableStringArg(defaultStringArg); |
7460 } | 7460 } |
7461 | 7461 |
7462 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 7462 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
7463 { | 7463 { |
7464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7464 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
7465 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); | 7465 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); |
7466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7466 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
7467 } | 7467 } |
7468 | 7468 |
7469 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 7469 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
7470 { | 7470 { |
7471 TestObject* impl = V8TestObject::toNative(info.Holder()); | 7471 TestObject* impl = V8TestObject::toNative(info.Holder()); |
7472 TestInterfaceImplementation* defaultTestInterfaceArg; | 7472 TestInterfaceImplementation* defaultTestInterfaceArg; |
7473 { | 7473 { |
7474 v8::TryCatch block; | 7474 v8::TryCatch block; |
7475 V8RethrowTryCatchScope rethrow(block); | 7475 V8RethrowTryCatchScope rethrow(block); |
7476 if (!info[0]->IsUndefined()) { | 7476 if (info.Length() > 0) { |
7477 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), info[0])); | 7477 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), info[0])); |
7478 } else { | 7478 } else { |
7479 defaultTestInterfaceArg = nullptr; | 7479 defaultTestInterfaceArg = nullptr; |
7480 } | 7480 } |
7481 } | 7481 } |
7482 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); | 7482 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); |
7483 } | 7483 } |
7484 | 7484 |
7485 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7485 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7486 { | 7486 { |
(...skipping 536 matching lines...) Loading... |
8023 impl->overloadedMethodG(longArg); | 8023 impl->overloadedMethodG(longArg); |
8024 } | 8024 } |
8025 | 8025 |
8026 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8026 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8027 { | 8027 { |
8028 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8028 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8029 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; | 8029 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; |
8030 { | 8030 { |
8031 v8::TryCatch block; | 8031 v8::TryCatch block; |
8032 V8RethrowTryCatchScope rethrow(block); | 8032 V8RethrowTryCatchScope rethrow(block); |
8033 if (!info[0]->IsUndefined()) { | 8033 if (info.Length() > 0) { |
8034 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 8034 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
8035 } else { | 8035 } else { |
8036 testInterfaceEmptyOrNullArg = nullptr; | 8036 testInterfaceEmptyOrNullArg = nullptr; |
8037 } | 8037 } |
8038 } | 8038 } |
8039 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); | 8039 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); |
8040 } | 8040 } |
8041 | 8041 |
8042 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8042 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8043 { | 8043 { |
(...skipping 2873 matching lines...) Loading... |
10917 fromInternalPointer(object)->deref(); | 10917 fromInternalPointer(object)->deref(); |
10918 } | 10918 } |
10919 | 10919 |
10920 template<> | 10920 template<> |
10921 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10921 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
10922 { | 10922 { |
10923 return toV8(impl, creationContext, isolate); | 10923 return toV8(impl, creationContext, isolate); |
10924 } | 10924 } |
10925 | 10925 |
10926 } // namespace WebCore | 10926 } // namespace WebCore |
OLD | NEW |