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

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

Issue 552143004: Simplify TONATIVE_*_EXCEPTIONSTATE* macros (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bindings-conversion-ExceptionState
Patch Set: rebased Created 6 years, 3 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/core/V8TestInterfaceConstructor4.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 5205 matching lines...) Expand 10 before | Expand all | Expand 10 after
5216 { 5216 {
5217 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteStringArg", "TestObject", info.Holder(), info.GetIsolate()); 5217 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteStringArg", "TestObject", info.Holder(), info.GetIsolate());
5218 if (UNLIKELY(info.Length() < 1)) { 5218 if (UNLIKELY(info.Length() < 1)) {
5219 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5219 setMinimumArityTypeError(exceptionState, 1, info.Length());
5220 exceptionState.throwIfNeeded(); 5220 exceptionState.throwIfNeeded();
5221 return; 5221 return;
5222 } 5222 }
5223 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5223 TestObject* impl = V8TestObject::toImpl(info.Holder());
5224 V8StringResource<> stringArg; 5224 V8StringResource<> stringArg;
5225 { 5225 {
5226 v8::TryCatch block;
5227 V8RethrowTryCatchScope rethrow(block);
5228 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArg, toByteString(info[0], e xceptionState), exceptionState); 5226 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(stringArg, toByteString(info[0], e xceptionState), exceptionState);
5229 } 5227 }
5230 impl->voidMethodByteStringArg(stringArg); 5228 impl->voidMethodByteStringArg(stringArg);
5231 } 5229 }
5232 5230
5233 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 5231 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
5234 { 5232 {
5235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5236 TestObjectV8Internal::voidMethodByteStringArgMethod(info); 5234 TestObjectV8Internal::voidMethodByteStringArgMethod(info);
5237 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5238 } 5236 }
5239 5237
5240 static void voidMethodScalarValueStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5238 static void voidMethodScalarValueStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5241 { 5239 {
5242 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS calarValueStringArg", "TestObject", info.Holder(), info.GetIsolate()); 5240 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS calarValueStringArg", "TestObject", info.Holder(), info.GetIsolate());
5243 if (UNLIKELY(info.Length() < 1)) { 5241 if (UNLIKELY(info.Length() < 1)) {
5244 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5242 setMinimumArityTypeError(exceptionState, 1, info.Length());
5245 exceptionState.throwIfNeeded(); 5243 exceptionState.throwIfNeeded();
5246 return; 5244 return;
5247 } 5245 }
5248 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5246 TestObject* impl = V8TestObject::toImpl(info.Holder());
5249 V8StringResource<> scalarValueStringArg; 5247 V8StringResource<> scalarValueStringArg;
5250 { 5248 {
5251 v8::TryCatch block;
5252 V8RethrowTryCatchScope rethrow(block);
5253 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu eString(info[0], exceptionState), exceptionState); 5249 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu eString(info[0], exceptionState), exceptionState);
5254 } 5250 }
5255 impl->voidMethodScalarValueStringArg(scalarValueStringArg); 5251 impl->voidMethodScalarValueStringArg(scalarValueStringArg);
5256 } 5252 }
5257 5253
5258 static void voidMethodScalarValueStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5254 static void voidMethodScalarValueStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5259 { 5255 {
5260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5256 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5261 TestObjectV8Internal::voidMethodScalarValueStringArgMethod(info); 5257 TestObjectV8Internal::voidMethodScalarValueStringArgMethod(info);
5262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5258 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5263 } 5259 }
5264 5260
5265 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5261 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5266 { 5262 {
5267 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 5263 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
5268 if (UNLIKELY(info.Length() < 1)) { 5264 if (UNLIKELY(info.Length() < 1)) {
5269 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5265 setMinimumArityTypeError(exceptionState, 1, info.Length());
5270 exceptionState.throwIfNeeded(); 5266 exceptionState.throwIfNeeded();
5271 return; 5267 return;
5272 } 5268 }
5273 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5269 TestObject* impl = V8TestObject::toImpl(info.Holder());
5274 unsigned long long domTimeStampArg; 5270 unsigned long long domTimeStampArg;
5275 { 5271 {
5276 v8::TryCatch block;
5277 V8RethrowTryCatchScope rethrow(block);
5278 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState); 5272 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(domTimeStampArg, toUInt64(info[0], exceptionState), exceptionState);
5279 } 5273 }
5280 impl->voidMethodDOMTimeStampArg(domTimeStampArg); 5274 impl->voidMethodDOMTimeStampArg(domTimeStampArg);
5281 } 5275 }
5282 5276
5283 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5277 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5284 { 5278 {
5285 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5286 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 5280 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
5287 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 26 matching lines...) Expand all
5314 { 5308 {
5315 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate()); 5309 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB yteArg", "TestObject", info.Holder(), info.GetIsolate());
5316 if (UNLIKELY(info.Length() < 1)) { 5310 if (UNLIKELY(info.Length() < 1)) {
5317 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5311 setMinimumArityTypeError(exceptionState, 1, info.Length());
5318 exceptionState.throwIfNeeded(); 5312 exceptionState.throwIfNeeded();
5319 return; 5313 return;
5320 } 5314 }
5321 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5315 TestObject* impl = V8TestObject::toImpl(info.Holder());
5322 int byteArg; 5316 int byteArg;
5323 { 5317 {
5324 v8::TryCatch block;
5325 V8RethrowTryCatchScope rethrow(block);
5326 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState); 5318 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(byteArg, toInt8(info[0], exception State), exceptionState);
5327 } 5319 }
5328 impl->voidMethodByteArg(byteArg); 5320 impl->voidMethodByteArg(byteArg);
5329 } 5321 }
5330 5322
5331 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5323 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5332 { 5324 {
5333 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5334 TestObjectV8Internal::voidMethodByteArgMethod(info); 5326 TestObjectV8Internal::voidMethodByteArgMethod(info);
5335 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
5385 { 5377 {
5386 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate()); 5378 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArg", "TestObject", info.Holder(), info.GetIsolate());
5387 if (UNLIKELY(info.Length() < 1)) { 5379 if (UNLIKELY(info.Length() < 1)) {
5388 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5380 setMinimumArityTypeError(exceptionState, 1, info.Length());
5389 exceptionState.throwIfNeeded(); 5381 exceptionState.throwIfNeeded();
5390 return; 5382 return;
5391 } 5383 }
5392 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5384 TestObject* impl = V8TestObject::toImpl(info.Holder());
5393 int longArg; 5385 int longArg;
5394 { 5386 {
5395 v8::TryCatch block;
5396 V8RethrowTryCatchScope rethrow(block);
5397 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 5387 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
5398 } 5388 }
5399 impl->voidMethodLongArg(longArg); 5389 impl->voidMethodLongArg(longArg);
5400 } 5390 }
5401 5391
5402 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5392 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5403 { 5393 {
5404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5405 TestObjectV8Internal::voidMethodLongArgMethod(info); 5395 TestObjectV8Internal::voidMethodLongArgMethod(info);
5406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5407 } 5397 }
5408 5398
5409 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5399 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5410 { 5400 {
5411 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5401 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongLongArg", "TestObject", info.Holder(), info.GetIsolate());
5412 if (UNLIKELY(info.Length() < 1)) { 5402 if (UNLIKELY(info.Length() < 1)) {
5413 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5403 setMinimumArityTypeError(exceptionState, 1, info.Length());
5414 exceptionState.throwIfNeeded(); 5404 exceptionState.throwIfNeeded();
5415 return; 5405 return;
5416 } 5406 }
5417 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5407 TestObject* impl = V8TestObject::toImpl(info.Holder());
5418 long long longLongArg; 5408 long long longLongArg;
5419 { 5409 {
5420 v8::TryCatch block;
5421 V8RethrowTryCatchScope rethrow(block);
5422 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState); 5410 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longLongArg, toInt64(info[0], exce ptionState), exceptionState);
5423 } 5411 }
5424 impl->voidMethodLongLongArg(longLongArg); 5412 impl->voidMethodLongLongArg(longLongArg);
5425 } 5413 }
5426 5414
5427 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5415 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5428 { 5416 {
5429 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5430 TestObjectV8Internal::voidMethodLongLongArgMethod(info); 5418 TestObjectV8Internal::voidMethodLongLongArgMethod(info);
5431 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5432 } 5420 }
5433 5421
5434 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5422 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5435 { 5423 {
5436 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate()); 5424 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ctetArg", "TestObject", info.Holder(), info.GetIsolate());
5437 if (UNLIKELY(info.Length() < 1)) { 5425 if (UNLIKELY(info.Length() < 1)) {
5438 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5426 setMinimumArityTypeError(exceptionState, 1, info.Length());
5439 exceptionState.throwIfNeeded(); 5427 exceptionState.throwIfNeeded();
5440 return; 5428 return;
5441 } 5429 }
5442 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5430 TestObject* impl = V8TestObject::toImpl(info.Holder());
5443 unsigned octetArg; 5431 unsigned octetArg;
5444 { 5432 {
5445 v8::TryCatch block;
5446 V8RethrowTryCatchScope rethrow(block);
5447 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState); 5433 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(octetArg, toUInt8(info[0], excepti onState), exceptionState);
5448 } 5434 }
5449 impl->voidMethodOctetArg(octetArg); 5435 impl->voidMethodOctetArg(octetArg);
5450 } 5436 }
5451 5437
5452 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5438 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5453 { 5439 {
5454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5440 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5455 TestObjectV8Internal::voidMethodOctetArgMethod(info); 5441 TestObjectV8Internal::voidMethodOctetArgMethod(info);
5456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5442 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5457 } 5443 }
5458 5444
5459 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5445 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5460 { 5446 {
5461 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate()); 5447 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS hortArg", "TestObject", info.Holder(), info.GetIsolate());
5462 if (UNLIKELY(info.Length() < 1)) { 5448 if (UNLIKELY(info.Length() < 1)) {
5463 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5449 setMinimumArityTypeError(exceptionState, 1, info.Length());
5464 exceptionState.throwIfNeeded(); 5450 exceptionState.throwIfNeeded();
5465 return; 5451 return;
5466 } 5452 }
5467 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5453 TestObject* impl = V8TestObject::toImpl(info.Holder());
5468 int shortArg; 5454 int shortArg;
5469 { 5455 {
5470 v8::TryCatch block;
5471 V8RethrowTryCatchScope rethrow(block);
5472 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState); 5456 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(shortArg, toInt16(info[0], excepti onState), exceptionState);
5473 } 5457 }
5474 impl->voidMethodShortArg(shortArg); 5458 impl->voidMethodShortArg(shortArg);
5475 } 5459 }
5476 5460
5477 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5461 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5478 { 5462 {
5479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5480 TestObjectV8Internal::voidMethodShortArgMethod(info); 5464 TestObjectV8Internal::voidMethodShortArgMethod(info);
5481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5482 } 5466 }
5483 5467
5484 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5468 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5485 { 5469 {
5486 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5470 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongArg", "TestObject", info.Holder(), info.GetIsolate());
5487 if (UNLIKELY(info.Length() < 1)) { 5471 if (UNLIKELY(info.Length() < 1)) {
5488 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5472 setMinimumArityTypeError(exceptionState, 1, info.Length());
5489 exceptionState.throwIfNeeded(); 5473 exceptionState.throwIfNeeded();
5490 return; 5474 return;
5491 } 5475 }
5492 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5476 TestObject* impl = V8TestObject::toImpl(info.Holder());
5493 unsigned unsignedLongArg; 5477 unsigned unsignedLongArg;
5494 { 5478 {
5495 v8::TryCatch block;
5496 V8RethrowTryCatchScope rethrow(block);
5497 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState); 5479 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongArg, toUInt32(info[0], exceptionState), exceptionState);
5498 } 5480 }
5499 impl->voidMethodUnsignedLongArg(unsignedLongArg); 5481 impl->voidMethodUnsignedLongArg(unsignedLongArg);
5500 } 5482 }
5501 5483
5502 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5484 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5503 { 5485 {
5504 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5486 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5505 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info); 5487 TestObjectV8Internal::voidMethodUnsignedLongArgMethod(info);
5506 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5488 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5507 } 5489 }
5508 5490
5509 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info) 5491 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v 8::Value>& info)
5510 { 5492 {
5511 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate()); 5493 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedLongLongArg", "TestObject", info.Holder(), info.GetIsolate());
5512 if (UNLIKELY(info.Length() < 1)) { 5494 if (UNLIKELY(info.Length() < 1)) {
5513 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5495 setMinimumArityTypeError(exceptionState, 1, info.Length());
5514 exceptionState.throwIfNeeded(); 5496 exceptionState.throwIfNeeded();
5515 return; 5497 return;
5516 } 5498 }
5517 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5499 TestObject* impl = V8TestObject::toImpl(info.Holder());
5518 unsigned long long unsignedLongLongArg; 5500 unsigned long long unsignedLongLongArg;
5519 { 5501 {
5520 v8::TryCatch block;
5521 V8RethrowTryCatchScope rethrow(block);
5522 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState); 5502 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedLongLongArg, toUInt64(info [0], exceptionState), exceptionState);
5523 } 5503 }
5524 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); 5504 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg);
5525 } 5505 }
5526 5506
5527 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 5507 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
5528 { 5508 {
5529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5530 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info); 5510 TestObjectV8Internal::voidMethodUnsignedLongLongArgMethod(info);
5531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5532 } 5512 }
5533 5513
5534 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 5514 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
5535 { 5515 {
5536 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate()); 5516 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU nsignedShortArg", "TestObject", info.Holder(), info.GetIsolate());
5537 if (UNLIKELY(info.Length() < 1)) { 5517 if (UNLIKELY(info.Length() < 1)) {
5538 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5518 setMinimumArityTypeError(exceptionState, 1, info.Length());
5539 exceptionState.throwIfNeeded(); 5519 exceptionState.throwIfNeeded();
5540 return; 5520 return;
5541 } 5521 }
5542 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5522 TestObject* impl = V8TestObject::toImpl(info.Holder());
5543 unsigned unsignedShortArg; 5523 unsigned unsignedShortArg;
5544 { 5524 {
5545 v8::TryCatch block;
5546 V8RethrowTryCatchScope rethrow(block);
5547 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState); 5525 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(unsignedShortArg, toUInt16(info[0] , exceptionState), exceptionState);
5548 } 5526 }
5549 impl->voidMethodUnsignedShortArg(unsignedShortArg); 5527 impl->voidMethodUnsignedShortArg(unsignedShortArg);
5550 } 5528 }
5551 5529
5552 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 5530 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
5553 { 5531 {
5554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5532 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5555 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info); 5533 TestObjectV8Internal::voidMethodUnsignedShortArgMethod(info);
5556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5534 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
6856 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); 6834 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info);
6857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6835 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6858 } 6836 }
6859 6837
6860 static void overloadedPromiseMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6838 static void overloadedPromiseMethod1Method(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6861 { 6839 {
6862 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate()); 6840 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP romiseMethod", "TestObject", info.Holder(), info.GetIsolate());
6863 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6841 TestObject* impl = V8TestObject::toImpl(info.Holder());
6864 int arg; 6842 int arg;
6865 { 6843 {
6866 v8::TryCatch block;
6867 V8RethrowTryCatchScope rethrow(block);
6868 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, toInt32(info[0], exce ptionState), exceptionState, info, ScriptState::current(info.GetIsolate())); 6844 TONATIVE_VOID_EXCEPTIONSTATE_PROMISE_INTERNAL(arg, toInt32(info[0], exce ptionState), exceptionState, info, ScriptState::current(info.GetIsolate()));
6869 } 6845 }
6870 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value()); 6846 v8SetReturnValue(info, impl->overloadedPromiseMethod(arg).v8Value());
6871 } 6847 }
6872 6848
6873 static void overloadedPromiseMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6849 static void overloadedPromiseMethod2Method(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6874 { 6850 {
6875 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6851 TestObject* impl = V8TestObject::toImpl(info.Holder());
6876 V8StringResource<> arg; 6852 V8StringResource<> arg;
6877 { 6853 {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6921 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS tringArgLongArg", "TestObject", info.Holder(), info.GetIsolate());
6922 if (UNLIKELY(info.Length() < 2)) { 6898 if (UNLIKELY(info.Length() < 2)) {
6923 setMinimumArityTypeError(exceptionState, 2, info.Length()); 6899 setMinimumArityTypeError(exceptionState, 2, info.Length());
6924 exceptionState.throwIfNeeded(); 6900 exceptionState.throwIfNeeded();
6925 return; 6901 return;
6926 } 6902 }
6927 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6903 TestObject* impl = V8TestObject::toImpl(info.Holder());
6928 V8StringResource<> stringArg; 6904 V8StringResource<> stringArg;
6929 int longArg; 6905 int longArg;
6930 { 6906 {
6931 v8::TryCatch block;
6932 V8RethrowTryCatchScope rethrow(block);
6933 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 6907 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
6934 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 6908 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
6935 } 6909 }
6936 impl->voidMethodStringArgLongArg(stringArg, longArg); 6910 impl->voidMethodStringArgLongArg(stringArg, longArg);
6937 } 6911 }
6938 6912
6939 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6913 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6940 { 6914 {
6941 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6942 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info); 6916 TestObjectV8Internal::voidMethodStringArgLongArgMethod(info);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6986 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info); 6960 TestObjectV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(info);
6987 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6988 } 6962 }
6989 6963
6990 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6964 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6991 { 6965 {
6992 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6966 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
6993 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6967 TestObject* impl = V8TestObject::toImpl(info.Holder());
6994 int optionalLongArg; 6968 int optionalLongArg;
6995 { 6969 {
6996 v8::TryCatch block;
6997 V8RethrowTryCatchScope rethrow(block);
6998 if (UNLIKELY(info.Length() <= 0)) { 6970 if (UNLIKELY(info.Length() <= 0)) {
6999 impl->voidMethodOptionalLongArg(); 6971 impl->voidMethodOptionalLongArg();
7000 return; 6972 return;
7001 } 6973 }
7002 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6974 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7003 } 6975 }
7004 impl->voidMethodOptionalLongArg(optionalLongArg); 6976 impl->voidMethodOptionalLongArg(optionalLongArg);
7005 } 6977 }
7006 6978
7007 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6979 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
7008 { 6980 {
7009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6981 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7010 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info); 6982 TestObjectV8Internal::voidMethodOptionalLongArgMethod(info);
7011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6983 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7012 } 6984 }
7013 6985
7014 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6986 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
7015 { 6987 {
7016 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6988 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7017 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6989 TestObject* impl = V8TestObject::toImpl(info.Holder());
7018 int optionalLongArg; 6990 int optionalLongArg;
7019 { 6991 {
7020 v8::TryCatch block;
7021 V8RethrowTryCatchScope rethrow(block);
7022 if (UNLIKELY(info.Length() <= 0)) { 6992 if (UNLIKELY(info.Length() <= 0)) {
7023 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate()); 6993 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), in fo.GetIsolate());
7024 return; 6994 return;
7025 } 6995 }
7026 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 6996 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7027 } 6997 }
7028 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate()); 6998 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA rg), info.GetIsolate());
7029 } 6999 }
7030 7000
7031 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 7001 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
7032 { 7002 {
7033 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7034 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info); 7004 TestObjectV8Internal::stringMethodOptionalLongArgMethod(info);
7035 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7005 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7036 } 7006 }
7037 7007
7038 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 7008 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
7039 { 7009 {
7040 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7010 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa ceEmptyMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7041 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7011 TestObject* impl = V8TestObject::toImpl(info.Holder());
7042 int optionalLongArg; 7012 int optionalLongArg;
7043 { 7013 {
7044 v8::TryCatch block;
7045 V8RethrowTryCatchScope rethrow(block);
7046 if (UNLIKELY(info.Length() <= 0)) { 7014 if (UNLIKELY(info.Length() <= 0)) {
7047 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ()); 7015 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg ());
7048 return; 7016 return;
7049 } 7017 }
7050 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 7018 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7051 } 7019 }
7052 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg)); 7020 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona lLongArg));
7053 } 7021 }
7054 7022
7055 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 7023 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
7056 { 7024 {
7057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7058 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info); 7026 TestObjectV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(info);
7059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7027 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7060 } 7028 }
7061 7029
7062 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 7030 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
7063 { 7031 {
7064 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7032 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO ptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7065 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7033 TestObject* impl = V8TestObject::toImpl(info.Holder());
7066 int optionalLongArg; 7034 int optionalLongArg;
7067 { 7035 {
7068 v8::TryCatch block;
7069 V8RethrowTryCatchScope rethrow(block);
7070 if (UNLIKELY(info.Length() <= 0)) { 7036 if (UNLIKELY(info.Length() <= 0)) {
7071 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); 7037 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg());
7072 return; 7038 return;
7073 } 7039 }
7074 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 7040 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
7075 } 7041 }
7076 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); 7042 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg));
7077 } 7043 }
7078 7044
7079 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 7045 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
7080 { 7046 {
7081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 7047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
7082 TestObjectV8Internal::longMethodOptionalLongArgMethod(info); 7048 TestObjectV8Internal::longMethodOptionalLongArgMethod(info);
7083 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7084 } 7050 }
7085 7051
7086 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 7052 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
7087 { 7053 {
7088 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 7054 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL ongArgOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
7089 if (UNLIKELY(info.Length() < 1)) { 7055 if (UNLIKELY(info.Length() < 1)) {
7090 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7056 setMinimumArityTypeError(exceptionState, 1, info.Length());
7091 exceptionState.throwIfNeeded(); 7057 exceptionState.throwIfNeeded();
7092 return; 7058 return;
7093 } 7059 }
7094 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7060 TestObject* impl = V8TestObject::toImpl(info.Holder());
7095 int longArg; 7061 int longArg;
7096 int optionalLongArg; 7062 int optionalLongArg;
7097 { 7063 {
7098 v8::TryCatch block;
7099 V8RethrowTryCatchScope rethrow(block);
7100 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7064 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7101 if (UNLIKELY(info.Length() <= 1)) { 7065 if (UNLIKELY(info.Length() <= 1)) {
7102 impl->voidMethodLongArgOptionalLongArg(longArg); 7066 impl->voidMethodLongArgOptionalLongArg(longArg);
7103 return; 7067 return;
7104 } 7068 }
7105 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState); 7069 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[1], exceptionState), exceptionState);
7106 } 7070 }
7107 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); 7071 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg);
7108 } 7072 }
7109 7073
(...skipping 10 matching lines...) Expand all
7120 if (UNLIKELY(info.Length() < 1)) { 7084 if (UNLIKELY(info.Length() < 1)) {
7121 setMinimumArityTypeError(exceptionState, 1, info.Length()); 7085 setMinimumArityTypeError(exceptionState, 1, info.Length());
7122 exceptionState.throwIfNeeded(); 7086 exceptionState.throwIfNeeded();
7123 return; 7087 return;
7124 } 7088 }
7125 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7089 TestObject* impl = V8TestObject::toImpl(info.Holder());
7126 int longArg; 7090 int longArg;
7127 int optionalLongArg1; 7091 int optionalLongArg1;
7128 int optionalLongArg2; 7092 int optionalLongArg2;
7129 { 7093 {
7130 v8::TryCatch block;
7131 V8RethrowTryCatchScope rethrow(block);
7132 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7094 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7133 if (UNLIKELY(info.Length() <= 1)) { 7095 if (UNLIKELY(info.Length() <= 1)) {
7134 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); 7096 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg);
7135 return; 7097 return;
7136 } 7098 }
7137 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState); 7099 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg1, toInt32(info[1], exceptionState), exceptionState);
7138 if (UNLIKELY(info.Length() <= 2)) { 7100 if (UNLIKELY(info.Length() <= 2)) {
7139 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1); 7101 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optio nalLongArg1);
7140 return; 7102 return;
7141 } 7103 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
7235 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 7197 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
7236 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7237 } 7199 }
7238 7200
7239 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 7201 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
7240 { 7202 {
7241 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); 7203 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
7242 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7204 TestObject* impl = V8TestObject::toImpl(info.Holder());
7243 V8StringResource<> defaultByteStringArg; 7205 V8StringResource<> defaultByteStringArg;
7244 { 7206 {
7245 v8::TryCatch block;
7246 V8RethrowTryCatchScope rethrow(block);
7247 if (!info[0]->IsUndefined()) { 7207 if (!info[0]->IsUndefined()) {
7248 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt ring(info[0], exceptionState), exceptionState); 7208 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt ring(info[0], exceptionState), exceptionState);
7249 } else { 7209 } else {
7250 defaultByteStringArg = String("foo"); 7210 defaultByteStringArg = String("foo");
7251 } 7211 }
7252 } 7212 }
7253 impl->voidMethodDefaultByteStringArg(defaultByteStringArg); 7213 impl->voidMethodDefaultByteStringArg(defaultByteStringArg);
7254 } 7214 }
7255 7215
7256 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 7216 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
(...skipping 25 matching lines...) Expand all
7282 } 7242 }
7283 7243
7284 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 7244 static void voidMethodDefaultIntegerArgsMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
7285 { 7245 {
7286 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate()); 7246 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultIntegerArgs", "TestObject", info.Holder(), info.GetIsolate());
7287 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7247 TestObject* impl = V8TestObject::toImpl(info.Holder());
7288 int defaultLongArg; 7248 int defaultLongArg;
7289 long long defaultLongLongArg; 7249 long long defaultLongLongArg;
7290 unsigned defaultUnsignedArg; 7250 unsigned defaultUnsignedArg;
7291 { 7251 {
7292 v8::TryCatch block;
7293 V8RethrowTryCatchScope rethrow(block);
7294 if (!info[0]->IsUndefined()) { 7252 if (!info[0]->IsUndefined()) {
7295 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState); 7253 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState);
7296 } else { 7254 } else {
7297 defaultLongArg = 10; 7255 defaultLongArg = 10;
7298 } 7256 }
7299 if (!info[1]->IsUndefined()) { 7257 if (!info[1]->IsUndefined()) {
7300 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in fo[1], exceptionState), exceptionState); 7258 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongLongArg, toInt64(in fo[1], exceptionState), exceptionState);
7301 } else { 7259 } else {
7302 defaultLongLongArg = -10; 7260 defaultLongLongArg = -10;
7303 } 7261 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
7385 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); 7343 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info);
7386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7344 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7387 } 7345 }
7388 7346
7389 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info) 7347 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
7390 { 7348 {
7391 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate()); 7349 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultNullableByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
7392 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7350 TestObject* impl = V8TestObject::toImpl(info.Holder());
7393 V8StringResource<TreatNullAsNullString> defaultStringArg; 7351 V8StringResource<TreatNullAsNullString> defaultStringArg;
7394 { 7352 {
7395 v8::TryCatch block;
7396 V8RethrowTryCatchScope rethrow(block);
7397 if (!info[0]->IsUndefined()) { 7353 if (!info[0]->IsUndefined()) {
7398 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString (info[0], exceptionState), exceptionState); 7354 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultStringArg, toByteString (info[0], exceptionState), exceptionState);
7399 } else { 7355 } else {
7400 defaultStringArg = nullptr; 7356 defaultStringArg = nullptr;
7401 } 7357 }
7402 } 7358 }
7403 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg); 7359 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg);
7404 } 7360 }
7405 7361
7406 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info) 7362 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
7597 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info); 7553 TestObjectV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedA rgMethod(info);
7598 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7599 } 7555 }
7600 7556
7601 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7557 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7602 { 7558 {
7603 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 7559 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
7604 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7560 TestObject* impl = V8TestObject::toImpl(info.Holder());
7605 int longArg; 7561 int longArg;
7606 { 7562 {
7607 v8::TryCatch block;
7608 V8RethrowTryCatchScope rethrow(block);
7609 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7563 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7610 } 7564 }
7611 impl->overloadedMethodA(longArg); 7565 impl->overloadedMethodA(longArg);
7612 } 7566 }
7613 7567
7614 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7568 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7615 { 7569 {
7616 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 7570 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
7617 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7571 TestObject* impl = V8TestObject::toImpl(info.Holder());
7618 int longArg1; 7572 int longArg1;
7619 int longArg2; 7573 int longArg2;
7620 { 7574 {
7621 v8::TryCatch block;
7622 V8RethrowTryCatchScope rethrow(block);
7623 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 7575 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
7624 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 7576 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
7625 } 7577 }
7626 impl->overloadedMethodA(longArg1, longArg2); 7578 impl->overloadedMethodA(longArg1, longArg2);
7627 } 7579 }
7628 7580
7629 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7581 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7630 { 7582 {
7631 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate()); 7583 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodA", "TestObject", info.Holder(), info.GetIsolate());
7632 switch (std::min(2, info.Length())) { 7584 switch (std::min(2, info.Length())) {
(...skipping 24 matching lines...) Expand all
7657 TestObjectV8Internal::overloadedMethodAMethod(info); 7609 TestObjectV8Internal::overloadedMethodAMethod(info);
7658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7610 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7659 } 7611 }
7660 7612
7661 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7613 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7662 { 7614 {
7663 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 7615 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
7664 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7616 TestObject* impl = V8TestObject::toImpl(info.Holder());
7665 int longArg; 7617 int longArg;
7666 { 7618 {
7667 v8::TryCatch block;
7668 V8RethrowTryCatchScope rethrow(block);
7669 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7619 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7670 } 7620 }
7671 impl->overloadedMethodB(longArg); 7621 impl->overloadedMethodB(longArg);
7672 } 7622 }
7673 7623
7674 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7624 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7675 { 7625 {
7676 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate()); 7626 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodB", "TestObject", info.Holder(), info.GetIsolate());
7677 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7627 TestObject* impl = V8TestObject::toImpl(info.Holder());
7678 V8StringResource<> stringArg; 7628 V8StringResource<> stringArg;
7679 int longArg; 7629 int longArg;
7680 { 7630 {
7681 v8::TryCatch block;
7682 V8RethrowTryCatchScope rethrow(block);
7683 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 7631 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
7684 if (UNLIKELY(info.Length() <= 1)) { 7632 if (UNLIKELY(info.Length() <= 1)) {
7685 impl->overloadedMethodB(stringArg); 7633 impl->overloadedMethodB(stringArg);
7686 return; 7634 return;
7687 } 7635 }
7688 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState); 7636 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio nState), exceptionState);
7689 } 7637 }
7690 impl->overloadedMethodB(stringArg, longArg); 7638 impl->overloadedMethodB(stringArg, longArg);
7691 } 7639 }
7692 7640
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
7729 TestObjectV8Internal::overloadedMethodBMethod(info); 7677 TestObjectV8Internal::overloadedMethodBMethod(info);
7730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7678 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7731 } 7679 }
7732 7680
7733 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7681 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7734 { 7682 {
7735 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate()); 7683 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodC", "TestObject", info.Holder(), info.GetIsolate());
7736 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7684 TestObject* impl = V8TestObject::toImpl(info.Holder());
7737 int longArg; 7685 int longArg;
7738 { 7686 {
7739 v8::TryCatch block;
7740 V8RethrowTryCatchScope rethrow(block);
7741 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7687 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7742 } 7688 }
7743 impl->overloadedMethodC(longArg); 7689 impl->overloadedMethodC(longArg);
7744 } 7690 }
7745 7691
7746 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7692 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7747 { 7693 {
7748 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7694 TestObject* impl = V8TestObject::toImpl(info.Holder());
7749 TestInterfaceEmpty* testInterfaceEmptyArg; 7695 TestInterfaceEmpty* testInterfaceEmptyArg;
7750 { 7696 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
7784 TestObjectV8Internal::overloadedMethodCMethod(info); 7730 TestObjectV8Internal::overloadedMethodCMethod(info);
7785 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7731 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7786 } 7732 }
7787 7733
7788 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7734 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7789 { 7735 {
7790 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate()); 7736 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodD", "TestObject", info.Holder(), info.GetIsolate());
7791 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7737 TestObject* impl = V8TestObject::toImpl(info.Holder());
7792 int longArg; 7738 int longArg;
7793 { 7739 {
7794 v8::TryCatch block;
7795 V8RethrowTryCatchScope rethrow(block);
7796 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7740 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7797 } 7741 }
7798 impl->overloadedMethodD(longArg); 7742 impl->overloadedMethodD(longArg);
7799 } 7743 }
7800 7744
7801 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7745 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7802 { 7746 {
7803 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7747 TestObject* impl = V8TestObject::toImpl(info.Holder());
7804 Vector<int> longArrayArg; 7748 Vector<int> longArrayArg;
7805 { 7749 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
7839 TestObjectV8Internal::overloadedMethodDMethod(info); 7783 TestObjectV8Internal::overloadedMethodDMethod(info);
7840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7841 } 7785 }
7842 7786
7843 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7787 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7844 { 7788 {
7845 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate()); 7789 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodE", "TestObject", info.Holder(), info.GetIsolate());
7846 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7790 TestObject* impl = V8TestObject::toImpl(info.Holder());
7847 int longArg; 7791 int longArg;
7848 { 7792 {
7849 v8::TryCatch block;
7850 V8RethrowTryCatchScope rethrow(block);
7851 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7793 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7852 } 7794 }
7853 impl->overloadedMethodE(longArg); 7795 impl->overloadedMethodE(longArg);
7854 } 7796 }
7855 7797
7856 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7798 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7857 { 7799 {
7858 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7800 TestObject* impl = V8TestObject::toImpl(info.Holder());
7859 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7801 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7860 { 7802 {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
7968 TestObjectV8Internal::overloadedMethodFMethod(info); 7910 TestObjectV8Internal::overloadedMethodFMethod(info);
7969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7911 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7970 } 7912 }
7971 7913
7972 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7914 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7973 { 7915 {
7974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate()); 7916 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), info.GetIsolate());
7975 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7917 TestObject* impl = V8TestObject::toImpl(info.Holder());
7976 int longArg; 7918 int longArg;
7977 { 7919 {
7978 v8::TryCatch block;
7979 V8RethrowTryCatchScope rethrow(block);
7980 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 7920 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
7981 } 7921 }
7982 impl->overloadedMethodG(longArg); 7922 impl->overloadedMethodG(longArg);
7983 } 7923 }
7984 7924
7985 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7925 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7986 { 7926 {
7987 TestObject* impl = V8TestObject::toImpl(info.Holder()); 7927 TestObject* impl = V8TestObject::toImpl(info.Holder());
7988 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7928 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7989 { 7929 {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
8161 } 8101 }
8162 impl->overloadedMethodJ(stringArg); 8102 impl->overloadedMethodJ(stringArg);
8163 } 8103 }
8164 8104
8165 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8105 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8166 { 8106 {
8167 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8107 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8168 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8108 TestObject* impl = V8TestObject::toImpl(info.Holder());
8169 TestDictionary* testDictionaryArg; 8109 TestDictionary* testDictionaryArg;
8170 { 8110 {
8171 v8::TryCatch block;
8172 V8RethrowTryCatchScope rethrow(block);
8173 if (!info[0]->IsUndefined()) { 8111 if (!info[0]->IsUndefined()) {
8174 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testDictionaryArg, V8TestDicti onary::toImpl(info.GetIsolate(), info[0], exceptionState), exceptionState); 8112 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testDictionaryArg, V8TestDicti onary::toImpl(info.GetIsolate(), info[0], exceptionState), exceptionState);
8175 } else { 8113 } else {
8176 testDictionaryArg = TestDictionary::create(); 8114 testDictionaryArg = TestDictionary::create();
8177 } 8115 }
8178 } 8116 }
8179 impl->overloadedMethodJ(testDictionaryArg); 8117 impl->overloadedMethodJ(testDictionaryArg);
8180 } 8118 }
8181 8119
8182 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8120 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
8220 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8158 TestObject* impl = V8TestObject::toImpl(info.Holder());
8221 impl->overloadedPerWorldBindingsMethod(); 8159 impl->overloadedPerWorldBindingsMethod();
8222 } 8160 }
8223 8161
8224 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 8162 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
8225 { 8163 {
8226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8164 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8227 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8165 TestObject* impl = V8TestObject::toImpl(info.Holder());
8228 int longArg; 8166 int longArg;
8229 { 8167 {
8230 v8::TryCatch block;
8231 V8RethrowTryCatchScope rethrow(block);
8232 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8168 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8233 } 8169 }
8234 impl->overloadedPerWorldBindingsMethod(longArg); 8170 impl->overloadedPerWorldBindingsMethod(longArg);
8235 } 8171 }
8236 8172
8237 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 8173 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
8238 { 8174 {
8239 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8175 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8240 switch (std::min(1, info.Length())) { 8176 switch (std::min(1, info.Length())) {
8241 case 0: 8177 case 0:
(...skipping 23 matching lines...) Expand all
8265 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info); 8201 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethod(info);
8266 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8202 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8267 } 8203 }
8268 8204
8269 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 8205 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
8270 { 8206 {
8271 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8207 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8272 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8208 TestObject* impl = V8TestObject::toImpl(info.Holder());
8273 int longArg; 8209 int longArg;
8274 { 8210 {
8275 v8::TryCatch block;
8276 V8RethrowTryCatchScope rethrow(block);
8277 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8211 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8278 } 8212 }
8279 impl->overloadedPerWorldBindingsMethod(longArg); 8213 impl->overloadedPerWorldBindingsMethod(longArg);
8280 } 8214 }
8281 8215
8282 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info) 8216 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio nCallbackInfo<v8::Value>& info)
8283 { 8217 {
8284 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate()); 8218 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP erWorldBindingsMethod", "TestObject", info.Holder(), info.GetIsolate());
8285 switch (std::min(1, info.Length())) { 8219 switch (std::min(1, info.Length())) {
8286 case 0: 8220 case 0:
(...skipping 22 matching lines...) Expand all
8309 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8310 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o); 8244 TestObjectV8Internal::overloadedPerWorldBindingsMethodMethodForMainWorld(inf o);
8311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8312 } 8246 }
8313 8247
8314 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 8248 static void overloadedStaticMethod1Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
8315 { 8249 {
8316 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 8250 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
8317 int longArg; 8251 int longArg;
8318 { 8252 {
8319 v8::TryCatch block;
8320 V8RethrowTryCatchScope rethrow(block);
8321 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 8253 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8322 } 8254 }
8323 TestObject::overloadedStaticMethod(longArg); 8255 TestObject::overloadedStaticMethod(longArg);
8324 } 8256 }
8325 8257
8326 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info) 8258 static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Val ue>& info)
8327 { 8259 {
8328 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 8260 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
8329 int longArg1; 8261 int longArg1;
8330 int longArg2; 8262 int longArg2;
8331 { 8263 {
8332 v8::TryCatch block;
8333 V8RethrowTryCatchScope rethrow(block);
8334 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState); 8264 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg1, toInt32(info[0], excepti onState), exceptionState);
8335 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState); 8265 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg2, toInt32(info[1], excepti onState), exceptionState);
8336 } 8266 }
8337 TestObject::overloadedStaticMethod(longArg1, longArg2); 8267 TestObject::overloadedStaticMethod(longArg1, longArg2);
8338 } 8268 }
8339 8269
8340 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info) 8270 static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu e>& info)
8341 { 8271 {
8342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate()); 8272 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedS taticMethod", "TestObject", info.Holder(), info.GetIsolate());
8343 switch (std::min(2, info.Length())) { 8273 switch (std::min(2, info.Length())) {
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
8443 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info); 8373 TestObjectV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod( info);
8444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8374 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8445 } 8375 }
8446 8376
8447 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 8377 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
8448 { 8378 {
8449 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate()); 8379 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultUndefinedLongArg", "TestObject", info.Holder(), info.GetIsolate());
8450 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8380 TestObject* impl = V8TestObject::toImpl(info.Holder());
8451 int defaultUndefinedLongArg; 8381 int defaultUndefinedLongArg;
8452 { 8382 {
8453 v8::TryCatch block;
8454 V8RethrowTryCatchScope rethrow(block);
8455 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState); 8383 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedLongArg, toInt32(i nfo[0], exceptionState), exceptionState);
8456 } 8384 }
8457 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); 8385 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg);
8458 } 8386 }
8459 8387
8460 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 8388 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
8461 { 8389 {
8462 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8463 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); 8391 TestObjectV8Internal::voidMethodDefaultUndefinedLongArgMethod(info);
8464 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 20 matching lines...) Expand all
8485 { 8413 {
8486 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate()); 8414 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE nforceRangeLongArg", "TestObject", info.Holder(), info.GetIsolate());
8487 if (UNLIKELY(info.Length() < 1)) { 8415 if (UNLIKELY(info.Length() < 1)) {
8488 setMinimumArityTypeError(exceptionState, 1, info.Length()); 8416 setMinimumArityTypeError(exceptionState, 1, info.Length());
8489 exceptionState.throwIfNeeded(); 8417 exceptionState.throwIfNeeded();
8490 return; 8418 return;
8491 } 8419 }
8492 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8420 TestObject* impl = V8TestObject::toImpl(info.Holder());
8493 int enforceRangeLongArg; 8421 int enforceRangeLongArg;
8494 { 8422 {
8495 v8::TryCatch block;
8496 V8RethrowTryCatchScope rethrow(block);
8497 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState); 8423 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(enforceRangeLongArg, toInt32(info[ 0], EnforceRange, exceptionState), exceptionState);
8498 } 8424 }
8499 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); 8425 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg);
8500 } 8426 }
8501 8427
8502 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 8428 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
8503 { 8429 {
8504 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8430 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8505 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 8431 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
8506 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8432 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
8854 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8780 TestObject* impl = V8TestObject::toImpl(info.Holder());
8855 impl->DeprecateAsOverloadedMethod(); 8781 impl->DeprecateAsOverloadedMethod();
8856 } 8782 }
8857 8783
8858 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info) 8784 static void DeprecateAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8 ::Value>& info)
8859 { 8785 {
8860 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8786 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8861 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8787 TestObject* impl = V8TestObject::toImpl(info.Holder());
8862 int arg; 8788 int arg;
8863 { 8789 {
8864 v8::TryCatch block;
8865 V8RethrowTryCatchScope rethrow(block);
8866 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8790 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8867 } 8791 }
8868 impl->DeprecateAsOverloadedMethod(arg); 8792 impl->DeprecateAsOverloadedMethod(arg);
8869 } 8793 }
8870 8794
8871 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 8795 static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
8872 { 8796 {
8873 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8797 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs OverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8874 switch (std::min(1, info.Length())) { 8798 switch (std::min(1, info.Length())) {
8875 case 0: 8799 case 0:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
8907 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8831 TestObject* impl = V8TestObject::toImpl(info.Holder());
8908 impl->DeprecateAsSameValueOverloadedMethod(); 8832 impl->DeprecateAsSameValueOverloadedMethod();
8909 } 8833 }
8910 8834
8911 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info) 8835 static void DeprecateAsSameValueOverloadedMethod2Method(const v8::FunctionCallba ckInfo<v8::Value>& info)
8912 { 8836 {
8913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8837 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8914 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8838 TestObject* impl = V8TestObject::toImpl(info.Holder());
8915 int arg; 8839 int arg;
8916 { 8840 {
8917 v8::TryCatch block;
8918 V8RethrowTryCatchScope rethrow(block);
8919 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8841 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8920 } 8842 }
8921 impl->DeprecateAsSameValueOverloadedMethod(arg); 8843 impl->DeprecateAsSameValueOverloadedMethod(arg);
8922 } 8844 }
8923 8845
8924 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info) 8846 static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac kInfo<v8::Value>& info)
8925 { 8847 {
8926 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8848 ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAs SameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8927 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 8849 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature);
8928 switch (std::min(1, info.Length())) { 8850 switch (std::min(1, info.Length())) {
(...skipping 30 matching lines...) Expand all
8959 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8881 TestObject* impl = V8TestObject::toImpl(info.Holder());
8960 impl->measureAsOverloadedMethod(); 8882 impl->measureAsOverloadedMethod();
8961 } 8883 }
8962 8884
8963 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 8885 static void measureAsOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
8964 { 8886 {
8965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8887 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8966 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8888 TestObject* impl = V8TestObject::toImpl(info.Holder());
8967 int arg; 8889 int arg;
8968 { 8890 {
8969 v8::TryCatch block;
8970 V8RethrowTryCatchScope rethrow(block);
8971 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8891 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
8972 } 8892 }
8973 impl->measureAsOverloadedMethod(arg); 8893 impl->measureAsOverloadedMethod(arg);
8974 } 8894 }
8975 8895
8976 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 8896 static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
8977 { 8897 {
8978 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8898 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOv erloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
8979 switch (std::min(1, info.Length())) { 8899 switch (std::min(1, info.Length())) {
8980 case 0: 8900 case 0:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
9012 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8932 TestObject* impl = V8TestObject::toImpl(info.Holder());
9013 impl->measureAsSameValueOverloadedMethod(); 8933 impl->measureAsSameValueOverloadedMethod();
9014 } 8934 }
9015 8935
9016 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 8936 static void measureAsSameValueOverloadedMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
9017 { 8937 {
9018 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8938 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
9019 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8939 TestObject* impl = V8TestObject::toImpl(info.Holder());
9020 int arg; 8940 int arg;
9021 { 8941 {
9022 v8::TryCatch block;
9023 V8RethrowTryCatchScope rethrow(block);
9024 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8942 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
9025 } 8943 }
9026 impl->measureAsSameValueOverloadedMethod(arg); 8944 impl->measureAsSameValueOverloadedMethod(arg);
9027 } 8945 }
9028 8946
9029 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 8947 static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
9030 { 8948 {
9031 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate()); 8949 ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSa meValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolate());
9032 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 8950 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
9033 switch (std::min(1, info.Length())) { 8951 switch (std::min(1, info.Length())) {
(...skipping 30 matching lines...) Expand all
9064 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8982 TestObject* impl = V8TestObject::toImpl(info.Holder());
9065 impl->deprecateAsMeasureAsSameValueOverloadedMethod(); 8983 impl->deprecateAsMeasureAsSameValueOverloadedMethod();
9066 } 8984 }
9067 8985
9068 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 8986 static void deprecateAsMeasureAsSameValueOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
9069 { 8987 {
9070 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8988 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
9071 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8989 TestObject* impl = V8TestObject::toImpl(info.Holder());
9072 int arg; 8990 int arg;
9073 { 8991 {
9074 v8::TryCatch block;
9075 V8RethrowTryCatchScope rethrow(block);
9076 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 8992 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
9077 } 8993 }
9078 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg); 8994 impl->deprecateAsMeasureAsSameValueOverloadedMethod(arg);
9079 } 8995 }
9080 8996
9081 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 8997 static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
9082 { 8998 {
9083 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 8999 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs MeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
9084 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 9000 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
9085 switch (std::min(1, info.Length())) { 9001 switch (std::min(1, info.Length())) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
9118 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9034 TestObject* impl = V8TestObject::toImpl(info.Holder());
9119 impl->deprecateAsSameValueMeasureAsOverloadedMethod(); 9035 impl->deprecateAsSameValueMeasureAsOverloadedMethod();
9120 } 9036 }
9121 9037
9122 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info) 9038 static void deprecateAsSameValueMeasureAsOverloadedMethod2Method(const v8::Funct ionCallbackInfo<v8::Value>& info)
9123 { 9039 {
9124 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 9040 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
9125 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9041 TestObject* impl = V8TestObject::toImpl(info.Holder());
9126 int arg; 9042 int arg;
9127 { 9043 {
9128 v8::TryCatch block;
9129 V8RethrowTryCatchScope rethrow(block);
9130 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 9044 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
9131 } 9045 }
9132 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg); 9046 impl->deprecateAsSameValueMeasureAsOverloadedMethod(arg);
9133 } 9047 }
9134 9048
9135 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info) 9049 static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi onCallbackInfo<v8::Value>& info)
9136 { 9050 {
9137 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e()); 9051 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), info.GetIsolat e());
9138 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature); 9052 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeature);
9139 switch (std::min(1, info.Length())) { 9053 switch (std::min(1, info.Length())) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
9172 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9086 TestObject* impl = V8TestObject::toImpl(info.Holder());
9173 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(); 9087 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod();
9174 } 9088 }
9175 9089
9176 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 9090 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
9177 { 9091 {
9178 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 9092 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
9179 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9093 TestObject* impl = V8TestObject::toImpl(info.Holder());
9180 int arg; 9094 int arg;
9181 { 9095 {
9182 v8::TryCatch block;
9183 V8RethrowTryCatchScope rethrow(block);
9184 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState); 9096 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(arg, toInt32(info[0], exceptionSta te), exceptionState);
9185 } 9097 }
9186 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg); 9098 impl->deprecateAsSameValueMeasureAsSameValueOverloadedMethod(arg);
9187 } 9099 }
9188 9100
9189 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 9101 static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
9190 { 9102 {
9191 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate()); 9103 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAs SameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), info. GetIsolate());
9192 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB); 9104 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeatureB);
9193 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA); 9105 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::TestFeatureA);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
9424 TestObjectV8Internal::raisesExceptionStringMethodMethod(info); 9336 TestObjectV8Internal::raisesExceptionStringMethodMethod(info);
9425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9426 } 9338 }
9427 9339
9428 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 9340 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
9429 { 9341 {
9430 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate()); 9342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalLongArg", "TestObject", info.Holder(), info.GetIsolate());
9431 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9343 TestObject* impl = V8TestObject::toImpl(info.Holder());
9432 int optionalLongArg; 9344 int optionalLongArg;
9433 { 9345 {
9434 v8::TryCatch block;
9435 V8RethrowTryCatchScope rethrow(block);
9436 if (UNLIKELY(info.Length() <= 0)) { 9346 if (UNLIKELY(info.Length() <= 0)) {
9437 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); 9347 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState);
9438 if (exceptionState.hadException()) { 9348 if (exceptionState.hadException()) {
9439 exceptionState.throwIfNeeded(); 9349 exceptionState.throwIfNeeded();
9440 return; 9350 return;
9441 } 9351 }
9442 return; 9352 return;
9443 } 9353 }
9444 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState); 9354 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(optionalLongArg, toInt32(info[0], exceptionState), exceptionState);
9445 } 9355 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
9541 { 9451 {
9542 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate()); 9452 ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExe cutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), inf o.GetIsolate());
9543 if (UNLIKELY(info.Length() < 1)) { 9453 if (UNLIKELY(info.Length() < 1)) {
9544 setMinimumArityTypeError(exceptionState, 1, info.Length()); 9454 setMinimumArityTypeError(exceptionState, 1, info.Length());
9545 exceptionState.throwIfNeeded(); 9455 exceptionState.throwIfNeeded();
9546 return; 9456 return;
9547 } 9457 }
9548 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9458 TestObject* impl = V8TestObject::toImpl(info.Holder());
9549 int longArg; 9459 int longArg;
9550 { 9460 {
9551 v8::TryCatch block;
9552 V8RethrowTryCatchScope rethrow(block);
9553 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 9461 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
9554 } 9462 }
9555 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 9463 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
9556 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont ext, longArg, exceptionState); 9464 impl->callWithExecutionContextRaisesExceptionVoidMethodLongArg(executionCont ext, longArg, exceptionState);
9557 if (exceptionState.hadException()) { 9465 if (exceptionState.hadException()) {
9558 exceptionState.throwIfNeeded(); 9466 exceptionState.throwIfNeeded();
9559 return; 9467 return;
9560 } 9468 }
9561 } 9469 }
9562 9470
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
9615 } 9523 }
9616 impl->runtimeEnabledOverloadedVoidMethod(stringArg); 9524 impl->runtimeEnabledOverloadedVoidMethod(stringArg);
9617 } 9525 }
9618 9526
9619 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info) 9527 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
9620 { 9528 {
9621 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); 9529 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
9622 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9530 TestObject* impl = V8TestObject::toImpl(info.Holder());
9623 int longArg; 9531 int longArg;
9624 { 9532 {
9625 v8::TryCatch block;
9626 V8RethrowTryCatchScope rethrow(block);
9627 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 9533 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
9628 } 9534 }
9629 impl->runtimeEnabledOverloadedVoidMethod(longArg); 9535 impl->runtimeEnabledOverloadedVoidMethod(longArg);
9630 } 9536 }
9631 9537
9632 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 9538 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
9633 { 9539 {
9634 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate()); 9540 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
9635 switch (std::min(1, info.Length())) { 9541 switch (std::min(1, info.Length())) {
9636 case 1: 9542 case 1:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
9684 } 9590 }
9685 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface); 9591 impl->partiallyRuntimeEnabledOverloadedVoidMethod(testInterface);
9686 } 9592 }
9687 9593
9688 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio nCallbackInfo<v8::Value>& info) 9594 static void partiallyRuntimeEnabledOverloadedVoidMethod3Method(const v8::Functio nCallbackInfo<v8::Value>& info)
9689 { 9595 {
9690 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( )); 9596 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( ));
9691 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9597 TestObject* impl = V8TestObject::toImpl(info.Holder());
9692 int longArg; 9598 int longArg;
9693 { 9599 {
9694 v8::TryCatch block;
9695 V8RethrowTryCatchScope rethrow(block);
9696 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 9600 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
9697 } 9601 }
9698 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg); 9602 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg);
9699 } 9603 }
9700 9604
9701 static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info) 9605 static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info)
9702 { 9606 {
9703 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( )); 9607 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( ));
9704 switch (std::min(1, info.Length())) { 9608 switch (std::min(1, info.Length())) {
9705 case 1: 9609 case 1:
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
10039 { 9943 {
10040 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info. GetIsolate()); 9944 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", info.Holder(), info. GetIsolate());
10041 if (UNLIKELY(info.Length() < 1)) { 9945 if (UNLIKELY(info.Length() < 1)) {
10042 setMinimumArityTypeError(exceptionState, 1, info.Length()); 9946 setMinimumArityTypeError(exceptionState, 1, info.Length());
10043 exceptionState.throwIfNeeded(); 9947 exceptionState.throwIfNeeded();
10044 return; 9948 return;
10045 } 9949 }
10046 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9950 TestObject* impl = V8TestObject::toImpl(info.Holder());
10047 int value; 9951 int value;
10048 { 9952 {
10049 v8::TryCatch block;
10050 V8RethrowTryCatchScope rethrow(block);
10051 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS tate), exceptionState); 9953 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS tate), exceptionState);
10052 } 9954 }
10053 int result = 0; 9955 int result = 0;
10054 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP rivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, value, &result)) 9956 if (!V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInP rivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, value, &result))
10055 return; 9957 return;
10056 v8SetReturnValueInt(info, result); 9958 v8SetReturnValueInt(info, result);
10057 } 9959 }
10058 9960
10059 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 9961 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
10060 { 9962 {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
10154 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate() ); 10056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodImple mentedInCPPForPrivateScriptOnly", "TestObject", info.Holder(), info.GetIsolate() );
10155 if (UNLIKELY(info.Length() < 2)) { 10057 if (UNLIKELY(info.Length() < 2)) {
10156 setMinimumArityTypeError(exceptionState, 2, info.Length()); 10058 setMinimumArityTypeError(exceptionState, 2, info.Length());
10157 exceptionState.throwIfNeeded(); 10059 exceptionState.throwIfNeeded();
10158 return; 10060 return;
10159 } 10061 }
10160 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10062 TestObject* impl = V8TestObject::toImpl(info.Holder());
10161 int value1; 10063 int value1;
10162 int value2; 10064 int value2;
10163 { 10065 {
10164 v8::TryCatch block;
10165 V8RethrowTryCatchScope rethrow(block);
10166 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[0], exception State), exceptionState); 10066 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value1, toInt16(info[0], exception State), exceptionState);
10167 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toInt16(info[1], exception State), exceptionState); 10067 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value2, toInt16(info[1], exception State), exceptionState);
10168 } 10068 }
10169 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2)); 10069 v8SetReturnValueInt(info, impl->methodImplementedInCPPForPrivateScriptOnly(v alue1, value2));
10170 } 10070 }
10171 10071
10172 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 10072 static void methodImplementedInCPPForPrivateScriptOnlyMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
10173 { 10073 {
10174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10175 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ; 10075 TestObjectV8Internal::methodImplementedInCPPForPrivateScriptOnlyMethod(info) ;
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
11293 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); 11193 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF orPrivateScript", holder, v8String(scriptState->isolate(), cppValue));
11294 if (block.HasCaught()) { 11194 if (block.HasCaught()) {
11295 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block); 11195 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block);
11296 block.ReThrow(); 11196 block.ReThrow();
11297 return false; 11197 return false;
11298 } 11198 }
11299 return true; 11199 return true;
11300 } 11200 }
11301 11201
11302 } // namespace blink 11202 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698