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

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

Issue 656073002: IDL: Use ALLOW_ONLY_INLINE_ALLOCATION() in dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
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 6341 matching lines...) Expand 10 before | Expand all | Expand 10 after
6352 { 6352 {
6353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6354 TestObjectV8Internal::testInterfaceGarbageCollectedOrDOMStringMethodMethod(i nfo); 6354 TestObjectV8Internal::testInterfaceGarbageCollectedOrDOMStringMethodMethod(i nfo);
6355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6356 } 6356 }
6357 6357
6358 static void testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info) 6358 static void testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
6359 { 6359 {
6360 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6360 TestObject* impl = V8TestObject::toImpl(info.Holder());
6361 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> result0 = nullptr; 6361 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> result0 = nullptr;
6362 TestDictionary* result1 = nullptr; 6362 Nullable<TestDictionary> result1;
6363 impl->testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod(result0, res ult1); 6363 impl->testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod(result0, res ult1);
6364 if (result0) { 6364 if (result0) {
6365 v8SetReturnValue(info, result0.release()); 6365 v8SetReturnValue(info, result0.release());
6366 return; 6366 return;
6367 } 6367 }
6368 if (result1) { 6368 if (result1) {
6369 v8SetReturnValue(info, result1); 6369 v8SetReturnValue(info, result);
6370 return; 6370 return;
6371 } 6371 }
6372 v8SetReturnValueNull(info); 6372 v8SetReturnValueNull(info);
6373 } 6373 }
6374 6374
6375 static void testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info) 6375 static void testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
6376 { 6376 {
6377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6378 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMet hodMethod(info); 6378 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMet hodMethod(info);
6379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
6549 v8SetReturnValue(info, impl->dictionaryMethod()); 6549 v8SetReturnValue(info, impl->dictionaryMethod());
6550 } 6550 }
6551 6551
6552 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6552 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6553 { 6553 {
6554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6555 TestObjectV8Internal::dictionaryMethodMethod(info); 6555 TestObjectV8Internal::dictionaryMethodMethod(info);
6556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6557 } 6557 }
6558 6558
6559 static void testDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6560 {
6561 TestObject* impl = V8TestObject::toImpl(info.Holder());
6562 TestDictionary result;
6563 impl->testDictionaryMethod(result);
6564 v8SetReturnValue(info, result);
6565 }
6566
6567 static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6568 {
6569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6570 TestObjectV8Internal::testDictionaryMethodMethod(info);
6571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6572 }
6573
6559 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6574 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6560 { 6575 {
6561 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6576 TestObject* impl = V8TestObject::toImpl(info.Holder());
6562 v8SetReturnValue(info, impl->nodeFilterMethod()); 6577 v8SetReturnValue(info, impl->nodeFilterMethod());
6563 } 6578 }
6564 6579
6565 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6580 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6566 { 6581 {
6567 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6582 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6568 TestObjectV8Internal::nodeFilterMethodMethod(info); 6583 TestObjectV8Internal::nodeFilterMethodMethod(info);
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
8033 { 8048 {
8034 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 8049 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
8035 } 8050 }
8036 impl->overloadedMethodJ(stringArg); 8051 impl->overloadedMethodJ(stringArg);
8037 } 8052 }
8038 8053
8039 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8054 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8040 { 8055 {
8041 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8042 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8057 TestObject* impl = V8TestObject::toImpl(info.Holder());
8043 TestDictionary* testDictionaryArg; 8058 TestDictionary testDictionaryArg;
8044 { 8059 {
8045 if (!info[0]->IsUndefined()) { 8060 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
8046 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 8061 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is not an object.");
8047 exceptionState.throwTypeError("parameter 1 ('testDictionaryArg') is not an object."); 8062 exceptionState.throwIfNeeded();
8048 exceptionState.throwIfNeeded(); 8063 return;
8049 return;
8050 }
8051 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(testDictionaryArg, V8TestDicti onary::toImpl(info.GetIsolate(), info[0], exceptionState), exceptionState);
8052 } else {
8053 testDictionaryArg = TestDictionary::create();
8054 } 8064 }
8065 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G etIsolate(), info[0], testDictionaryArg, exceptionState), exceptionState);
8055 } 8066 }
8056 impl->overloadedMethodJ(*testDictionaryArg); 8067 impl->overloadedMethodJ(testDictionaryArg);
8057 } 8068 }
8058 8069
8059 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8070 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8060 { 8071 {
8061 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate()); 8072 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodJ", "TestObject", info.Holder(), info.GetIsolate());
8062 switch (std::min(1, info.Length())) { 8073 switch (std::min(1, info.Length())) {
8063 case 1: 8074 case 1:
8064 if (info[0]->IsObject()) { 8075 if (info[0]->IsObject()) {
8065 overloadedMethodJ2Method(info); 8076 overloadedMethodJ2Method(info);
8066 return; 8077 return;
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after
10355 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts}, 10366 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat ion::ExposedToAllScripts},
10356 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10367 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10357 {"longSequenceOrDOMStringArrayOrUnrestrictedDoubleMethod", TestObjectV8Inter nal::longSequenceOrDOMStringArrayOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10368 {"longSequenceOrDOMStringArrayOrUnrestrictedDoubleMethod", TestObjectV8Inter nal::longSequenceOrDOMStringArrayOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10358 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS cripts}, 10369 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS cripts},
10359 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10370 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10360 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts}, 10371 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts},
10361 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 10372 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
10362 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10373 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10363 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10374 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10364 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 10375 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
10376 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10365 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 10377 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
10366 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V 8DOMConfiguration::ExposedToAllScripts}, 10378 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V 8DOMConfiguration::ExposedToAllScripts},
10367 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10379 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10368 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10380 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10369 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10381 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10370 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10382 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10371 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10383 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10372 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10384 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10373 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10385 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10374 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10386 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
11151 return false; 11163 return false;
11152 11164
11153 ScriptState::Scope scope(scriptState); 11165 ScriptState::Scope scope(scriptState);
11154 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11166 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11155 11167
11156 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11168 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11157 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11169 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11158 } 11170 }
11159 11171
11160 } // namespace blink 11172 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestDictionary.cpp ('k') | Source/core/css/FontFaceDescriptors.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698