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

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

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
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 6426 matching lines...) Expand 10 before | Expand all | Expand 10 after
6437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6438 } 6438 }
6439 6439
6440 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 6440 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
6441 { 6441 {
6442 if (UNLIKELY(info.Length() < 1)) { 6442 if (UNLIKELY(info.Length() < 1)) {
6443 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceArg", "TestObject", 1, info.Length(), info.GetIsol ate()), info.GetIsolate()); 6443 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceArg", "TestObject", 1, info.Length(), info.GetIsol ate()), info.GetIsolate());
6444 return; 6444 return;
6445 } 6445 }
6446 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6446 TestObject* impl = V8TestObject::toImpl(info.Holder());
6447 OwnPtrWillBeRawPtr<TestCallbackInterface> testCallbackInterfaceArg = nullptr ;; 6447 TestCallbackInterface* testCallbackInterfaceArg;
6448 { 6448 {
6449 if (info.Length() <= 0 || !info[0]->IsFunction()) { 6449 if (info.Length() <= 0 || !info[0]->IsFunction()) {
6450 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as pa rameter 1 is not a function."), info.GetIsolate()); 6450 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as pa rameter 1 is not a function."), info.GetIsolate());
6451 return; 6451 return;
6452 } 6452 }
6453 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 6453 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
6454 } 6454 }
6455 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release()) ; 6455 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg);
6456 } 6456 }
6457 6457
6458 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6458 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6459 { 6459 {
6460 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6460 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6461 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); 6461 TestObjectV8Internal::voidMethodTestCallbackInterfaceArgMethod(info);
6462 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6462 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6463 } 6463 }
6464 6464
6465 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC allbackInfo<v8::Value>& info) 6465 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC allbackInfo<v8::Value>& info)
6466 { 6466 {
6467 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6467 TestObject* impl = V8TestObject::toImpl(info.Holder());
6468 OwnPtrWillBeRawPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg = nullptr;; 6468 TestCallbackInterface* optionalTestCallbackInterfaceArg;
6469 { 6469 {
6470 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { 6470 if (!isUndefinedOrNull(info[0])) {
6471 if (!info[0]->IsFunction()) { 6471 if (!info[0]->IsFunction()) {
6472 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("voidMethodOptionalTestCallbackInterfaceArg", "TestObject", "The callback pr ovided as parameter 1 is not a function."), info.GetIsolate()); 6472 V8ThrowException::throwTypeError(ExceptionMessages::failedToExec ute("voidMethodOptionalTestCallbackInterfaceArg", "TestObject", "The callback pr ovided as parameter 1 is not a function."), info.GetIsolate());
6473 return; 6473 return;
6474 } 6474 }
6475 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v 8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())) ; 6475 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v 8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())) ;
6476 } else {
6477 optionalTestCallbackInterfaceArg = nullptr;
6476 } 6478 }
6477 } 6479 }
6478 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa ceArg.release()); 6480 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa ceArg);
6479 } 6481 }
6480 6482
6481 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 6483 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
6482 { 6484 {
6483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6485 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6484 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ; 6486 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ;
6485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6487 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6486 } 6488 }
6487 6489
6488 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 6490 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
6489 { 6491 {
6490 if (UNLIKELY(info.Length() < 1)) { 6492 if (UNLIKELY(info.Length() < 1)) {
6491 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length(), info.G etIsolate()), info.GetIsolate()); 6493 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length(), info.G etIsolate()), info.GetIsolate());
6492 return; 6494 return;
6493 } 6495 }
6494 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6496 TestObject* impl = V8TestObject::toImpl(info.Holder());
6495 OwnPtrWillBeRawPtr<TestCallbackInterface> testCallbackInterfaceArg = nullptr ;; 6497 TestCallbackInterface* testCallbackInterfaceArg;
6496 { 6498 {
6497 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { 6499 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) {
6498 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate()); 6500 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate());
6499 return; 6501 return;
6500 } 6502 }
6501 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackI nterface::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(i nfo.GetIsolate())); 6503 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackI nterface::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(i nfo.GetIsolate()));
6502 } 6504 }
6503 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele ase()); 6505 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg);
6504 } 6506 }
6505 6507
6506 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 6508 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
6507 { 6509 {
6508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6510 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6509 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info); 6511 TestObjectV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(info);
6510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6512 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6511 } 6513 }
6512 6514
6513 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info ) 6515 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info )
(...skipping 2791 matching lines...) Expand 10 before | Expand all | Expand 10 after
9305 9307
9306 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info) 9308 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu nctionCallbackInfo<v8::Value>& info)
9307 { 9309 {
9308 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs olate()); 9310 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodTestCallbackInterfaceArg", "TestObject", info.Holder(), info.GetIs olate());
9309 if (UNLIKELY(info.Length() < 1)) { 9311 if (UNLIKELY(info.Length() < 1)) {
9310 setMinimumArityTypeError(exceptionState, 1, info.Length()); 9312 setMinimumArityTypeError(exceptionState, 1, info.Length());
9311 exceptionState.throwIfNeeded(); 9313 exceptionState.throwIfNeeded();
9312 return; 9314 return;
9313 } 9315 }
9314 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9316 TestObject* impl = V8TestObject::toImpl(info.Holder());
9315 OwnPtrWillBeRawPtr<TestCallbackInterface> testCallbackInterfaceArg = nullptr ;; 9317 TestCallbackInterface* testCallbackInterfaceArg;
9316 { 9318 {
9317 if (info.Length() <= 0 || !info[0]->IsFunction()) { 9319 if (info.Length() <= 0 || !info[0]->IsFunction()) {
9318 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function."); 9320 exceptionState.throwTypeError("The callback provided as parameter 1 is not a function.");
9319 exceptionState.throwIfNeeded(); 9321 exceptionState.throwIfNeeded();
9320 return; 9322 return;
9321 } 9323 }
9322 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 9324 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
9323 } 9325 }
9324 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg.release(), exceptionState); 9326 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac eArg, exceptionState);
9325 if (exceptionState.hadException()) { 9327 if (exceptionState.hadException()) {
9326 exceptionState.throwIfNeeded(); 9328 exceptionState.throwIfNeeded();
9327 return; 9329 return;
9328 } 9330 }
9329 } 9331 }
9330 9332
9331 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 9333 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
9332 { 9334 {
9333 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9334 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho d(info); 9336 TestObjectV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceArgMetho d(info);
9335 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9336 } 9338 }
9337 9339
9338 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 9340 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
9339 { 9341 {
9340 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in fo.GetIsolate()); 9342 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObject", info.Holder(), in fo.GetIsolate());
9341 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9343 TestObject* impl = V8TestObject::toImpl(info.Holder());
9342 OwnPtrWillBeRawPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg = nullptr;; 9344 TestCallbackInterface* optionalTestCallbackInterfaceArg;
9343 { 9345 {
9344 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { 9346 if (!isUndefinedOrNull(info[0])) {
9345 if (!info[0]->IsFunction()) { 9347 if (!info[0]->IsFunction()) {
9346 exceptionState.throwTypeError("The callback provided as paramete r 1 is not a function."); 9348 exceptionState.throwTypeError("The callback provided as paramete r 1 is not a function.");
9347 exceptionState.throwIfNeeded(); 9349 exceptionState.throwIfNeeded();
9348 return; 9350 return;
9349 } 9351 }
9350 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v 8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())) ; 9352 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v 8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())) ;
9353 } else {
9354 optionalTestCallbackInterfaceArg = nullptr;
9351 } 9355 }
9352 } 9356 }
9353 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest CallbackInterfaceArg.release(), exceptionState); 9357 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest CallbackInterfaceArg, exceptionState);
9354 if (exceptionState.hadException()) { 9358 if (exceptionState.hadException()) {
9355 exceptionState.throwIfNeeded(); 9359 exceptionState.throwIfNeeded();
9356 return; 9360 return;
9357 } 9361 }
9358 } 9362 }
9359 9363
9360 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 9364 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
9361 { 9365 {
9362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9363 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface ArgMethod(info); 9367 TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterface ArgMethod(info);
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
11058 return false; 11062 return false;
11059 11063
11060 ScriptState::Scope scope(scriptState); 11064 ScriptState::Scope scope(scriptState);
11061 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11065 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11062 11066
11063 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11067 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11064 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11068 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11065 } 11069 }
11066 11070
11067 } // namespace blink 11071 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestCallbackInterface.h ('k') | Source/bindings/tests/results/core/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698