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

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

Issue 299203002: Support per-overload [RuntimeEnabled] extended attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 6769 matching lines...) Expand 10 before | Expand all | Expand 10 after
6780 switch (std::min(2, info.Length())) { 6780 switch (std::min(2, info.Length())) {
6781 case 1: 6781 case 1:
6782 if (info[0]->IsNumber()) { 6782 if (info[0]->IsNumber()) {
6783 overloadedMethodB1Method(info); 6783 overloadedMethodB1Method(info);
6784 return; 6784 return;
6785 } 6785 }
6786 if (true) { 6786 if (true) {
6787 overloadedMethodB2Method(info); 6787 overloadedMethodB2Method(info);
6788 return; 6788 return;
6789 } 6789 }
6790 if (true) {
6791 overloadedMethodB1Method(info);
6792 return;
6793 }
6790 break; 6794 break;
6791 case 2: 6795 case 2:
6792 if (true) { 6796 if (true) {
6793 overloadedMethodB2Method(info); 6797 overloadedMethodB2Method(info);
6794 return; 6798 return;
6795 } 6799 }
6796 break; 6800 break;
6797 default: 6801 default:
6798 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 6802 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
6799 exceptionState.throwIfNeeded(); 6803 exceptionState.throwIfNeeded();
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
7018 return; 7022 return;
7019 } 7023 }
7020 if (info[0]->IsNumber()) { 7024 if (info[0]->IsNumber()) {
7021 overloadedMethodF2Method(info); 7025 overloadedMethodF2Method(info);
7022 return; 7026 return;
7023 } 7027 }
7024 if (true) { 7028 if (true) {
7025 overloadedMethodF1Method(info); 7029 overloadedMethodF1Method(info);
7026 return; 7030 return;
7027 } 7031 }
7032 if (true) {
7033 overloadedMethodF2Method(info);
7034 return;
7035 }
7028 break; 7036 break;
7029 default: 7037 default:
7030 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length())); 7038 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, i nfo.Length()));
7031 exceptionState.throwIfNeeded(); 7039 exceptionState.throwIfNeeded();
7032 return; 7040 return;
7033 } 7041 }
7034 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7042 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7035 exceptionState.throwIfNeeded(); 7043 exceptionState.throwIfNeeded();
7036 } 7044 }
7037 7045
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
7181 switch (std::min(1, info.Length())) { 7189 switch (std::min(1, info.Length())) {
7182 case 1: 7190 case 1:
7183 if (info[0]->IsNumber()) { 7191 if (info[0]->IsNumber()) {
7184 overloadedMethodI2Method(info); 7192 overloadedMethodI2Method(info);
7185 return; 7193 return;
7186 } 7194 }
7187 if (true) { 7195 if (true) {
7188 overloadedMethodI1Method(info); 7196 overloadedMethodI1Method(info);
7189 return; 7197 return;
7190 } 7198 }
7199 if (true) {
7200 overloadedMethodI2Method(info);
7201 return;
7202 }
7191 break; 7203 break;
7192 default: 7204 default:
7193 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length())); 7205 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
7194 exceptionState.throwIfNeeded(); 7206 exceptionState.throwIfNeeded();
7195 return; 7207 return;
7196 } 7208 }
7197 exceptionState.throwTypeError("No function was found that matched the signat ure provided."); 7209 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
7198 exceptionState.throwIfNeeded(); 7210 exceptionState.throwIfNeeded();
7199 } 7211 }
7200 7212
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
8598 impl->perWorldBindingsRuntimeEnabledVoidMethod(); 8610 impl->perWorldBindingsRuntimeEnabledVoidMethod();
8599 } 8611 }
8600 8612
8601 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info) 8613 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c onst v8::FunctionCallbackInfo<v8::Value>& info)
8602 { 8614 {
8603 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8604 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info); 8616 TestObjectV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodForMainW orld(info);
8605 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 8617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8606 } 8618 }
8607 8619
8620 static void runtimeEnabledOverloadedVoidMethod1Method(const v8::FunctionCallback Info<v8::Value>& info)
8621 {
8622 TestObject* impl = V8TestObject::toNative(info.Holder());
8623 V8StringResource<> stringArg;
8624 {
8625 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
8626 }
8627 impl->runtimeEnabledOverloadedVoidMethod(stringArg);
8628 }
8629
8630 static void runtimeEnabledOverloadedVoidMethod2Method(const v8::FunctionCallback Info<v8::Value>& info)
8631 {
8632 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate());
8633 TestObject* impl = V8TestObject::toNative(info.Holder());
8634 int longArg;
8635 {
8636 v8::TryCatch block;
8637 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8638 }
8639 impl->runtimeEnabledOverloadedVoidMethod(longArg);
8640 }
8641
8642 static void runtimeEnabledOverloadedVoidMethodMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
8643 {
8644 v8::Isolate* isolate = info.GetIsolate();
8645 ExceptionState exceptionState(ExceptionState::ExecutionContext, "runtimeEnab ledOverloadedVoidMethod", "TestObject", info.Holder(), isolate);
8646 switch (std::min(1, info.Length())) {
8647 case 1:
8648 if (info[0]->IsNumber()) {
8649 runtimeEnabledOverloadedVoidMethod2Method(info);
8650 return;
8651 }
8652 if (true) {
8653 runtimeEnabledOverloadedVoidMethod1Method(info);
8654 return;
8655 }
8656 if (true) {
8657 runtimeEnabledOverloadedVoidMethod2Method(info);
8658 return;
8659 }
8660 break;
8661 default:
8662 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8663 exceptionState.throwIfNeeded();
8664 return;
8665 }
8666 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8667 exceptionState.throwIfNeeded();
8668 }
8669
8670 static void runtimeEnabledOverloadedVoidMethodMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
8671 {
8672 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8673 TestObjectV8Internal::runtimeEnabledOverloadedVoidMethodMethod(info);
8674 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8675 }
8676
8677 static void partiallyRuntimeEnabledOverloadedVoidMethod1Method(const v8::Functio nCallbackInfo<v8::Value>& info)
8678 {
8679 TestObject* impl = V8TestObject::toNative(info.Holder());
8680 V8StringResource<> stringArg;
8681 {
8682 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
8683 }
8684 impl->partiallyRuntimeEnabledOverloadedVoidMethod(stringArg);
8685 }
8686
8687 static void partiallyRuntimeEnabledOverloadedVoidMethod2Method(const v8::Functio nCallbackInfo<v8::Value>& info)
8688 {
8689 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), info.GetIsolate( ));
8690 TestObject* impl = V8TestObject::toNative(info.Holder());
8691 int longArg;
8692 {
8693 v8::TryCatch block;
8694 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
8695 }
8696 impl->partiallyRuntimeEnabledOverloadedVoidMethod(longArg);
8697 }
8698
8699 static void partiallyRuntimeEnabledOverloadedVoidMethodMethod(const v8::Function CallbackInfo<v8::Value>& info)
8700 {
8701 v8::Isolate* isolate = info.GetIsolate();
8702 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partiallyRu ntimeEnabledOverloadedVoidMethod", "TestObject", info.Holder(), isolate);
8703 switch (std::min(1, info.Length())) {
8704 case 1:
8705 if (info[0]->IsNumber()) {
8706 partiallyRuntimeEnabledOverloadedVoidMethod2Method(info);
8707 return;
8708 }
8709 if (RuntimeEnabledFeatures::featureNameEnabled()) {
8710 if (true) {
8711 partiallyRuntimeEnabledOverloadedVoidMethod1Method(info);
8712 return;
8713 }
8714 }
8715 if (true) {
8716 partiallyRuntimeEnabledOverloadedVoidMethod2Method(info);
8717 return;
8718 }
8719 break;
8720 default:
8721 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i nfo.Length()));
8722 exceptionState.throwIfNeeded();
8723 return;
8724 }
8725 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
8726 exceptionState.throwIfNeeded();
8727 }
8728
8729 static void partiallyRuntimeEnabledOverloadedVoidMethodMethodCallback(const v8:: FunctionCallbackInfo<v8::Value>& info)
8730 {
8731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8732 TestObjectV8Internal::partiallyRuntimeEnabledOverloadedVoidMethodMethod(info );
8733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
8734 }
8735
8608 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 8736 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
8609 { 8737 {
8610 TestObject* impl = V8TestObject::toNative(info.Holder()); 8738 TestObject* impl = V8TestObject::toNative(info.Holder());
8611 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Method(), info.GetIsolate()); 8739 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Method(), info.GetIsolate());
8612 } 8740 }
8613 8741
8614 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 8742 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
8615 { 8743 {
8616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 8744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
8617 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info); 8745 TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethod(info);
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
9099 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, 9227 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1},
9100 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, 9228 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1},
9101 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, 9229 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1},
9102 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional DictionaryArgMethodCallback, 0, 0}, 9230 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional DictionaryArgMethodCallback, 0, 0},
9103 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri ngArgMethodCallback, 0, 1}, 9231 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri ngArgMethodCallback, 0, 1},
9104 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr ingArgVariadicStringArgMethodCallback, 0, 2}, 9232 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr ingArgVariadicStringArgMethodCallback, 0, 2},
9105 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod VariadicTestInterfaceEmptyArgMethodCallback, 0, 1}, 9233 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod VariadicTestInterfaceEmptyArgMethodCallback, 0, 1},
9106 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV 8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal lback, 0, 2}, 9234 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV 8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal lback, 0, 2},
9107 {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal: :voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 1}, 9235 {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal: :voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 1},
9108 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0 , 1}, 9236 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0 , 1},
9109 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback, 0, 1}, 9237 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback, 0, 2},
Jens Widell 2014/05/27 13:55:25 These length changes are incorrect and will go awa
9110 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1}, 9238 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1},
9111 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback, 0, 1}, 9239 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback, 0, 1},
9112 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback, 0, 1}, 9240 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback, 0, 1},
9113 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1}, 9241 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1},
9114 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 0}, 9242 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 1},
9115 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 1}, 9243 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 1},
9116 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1}, 9244 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 1},
9117 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1}, 9245 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1},
9118 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0}, 9246 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 1},
9119 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1}, 9247 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1},
9120 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1}, 9248 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1},
9121 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0}, 9249 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0},
9122 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0}, 9250 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0},
9123 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0}, 9251 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0},
9124 {"voidMethodDefaultNullStringStringArg", TestObjectV8Internal::voidMethodDef aultNullStringStringArgMethodCallback, 0, 0}, 9252 {"voidMethodDefaultNullStringStringArg", TestObjectV8Internal::voidMethodDef aultNullStringStringArgMethodCallback, 0, 0},
9125 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1}, 9253 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1},
9126 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1}, 9254 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1},
9127 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1}, 9255 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1},
9128 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0}, 9256 {"activityLoggingAccessForAllWorldsMethod", TestObjectV8Internal::activityLo ggingAccessForAllWorldsMethodMethodCallback, 0, 0},
(...skipping 13 matching lines...) Expand all
9142 {"conditionalCondition1AndCondition2VoidMethod", TestObjectV8Internal::condi tionalCondition1AndCondition2VoidMethodMethodCallback, 0, 0}, 9270 {"conditionalCondition1AndCondition2VoidMethod", TestObjectV8Internal::condi tionalCondition1AndCondition2VoidMethodMethodCallback, 0, 0},
9143 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 9271 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
9144 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0 , 0}, 9272 {"customVoidMethod", TestObjectV8Internal::customVoidMethodMethodCallback, 0 , 0},
9145 #if ENABLE(CONDITION) 9273 #if ENABLE(CONDITION)
9146 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo nditionCustomVoidMethodMethodCallback, 0, 0}, 9274 {"conditionalConditionCustomVoidMethod", TestObjectV8Internal::conditionalCo nditionCustomVoidMethodMethodCallback, 0, 0},
9147 #endif // ENABLE(CONDITION) 9275 #endif // ENABLE(CONDITION)
9148 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall backsVoidMethodMethodCallback, 0, 0}, 9276 {"customElementCallbacksVoidMethod", TestObjectV8Internal::customElementCall backsVoidMethodMethodCallback, 0, 0},
9149 {"deprecatedVoidMethod", TestObjectV8Internal::deprecatedVoidMethodMethodCal lback, 0, 0}, 9277 {"deprecatedVoidMethod", TestObjectV8Internal::deprecatedVoidMethodMethodCal lback, 0, 0},
9150 {"implementedAsVoidMethod", TestObjectV8Internal::implementedAsVoidMethodMet hodCallback, 0, 0}, 9278 {"implementedAsVoidMethod", TestObjectV8Internal::implementedAsVoidMethodMet hodCallback, 0, 0},
9151 {"measureAsVoidMethod", TestObjectV8Internal::measureAsVoidMethodMethodCallb ack, 0, 0}, 9279 {"measureAsVoidMethod", TestObjectV8Internal::measureAsVoidMethodMethodCallb ack, 0, 0},
9152 {"DeprecateAsOverloadedMethod", TestObjectV8Internal::DeprecateAsOverloadedM ethodMethodCallback, 0, 0}, 9280 {"DeprecateAsOverloadedMethod", TestObjectV8Internal::DeprecateAsOverloadedM ethodMethodCallback, 0, 1},
9153 {"DeprecateAsSameValueOverloadedMethod", TestObjectV8Internal::DeprecateAsSa meValueOverloadedMethodMethodCallback, 0, 0}, 9281 {"DeprecateAsSameValueOverloadedMethod", TestObjectV8Internal::DeprecateAsSa meValueOverloadedMethodMethodCallback, 0, 1},
9154 {"measureAsOverloadedMethod", TestObjectV8Internal::measureAsOverloadedMetho dMethodCallback, 0, 0}, 9282 {"measureAsOverloadedMethod", TestObjectV8Internal::measureAsOverloadedMetho dMethodCallback, 0, 1},
9155 {"measureAsSameValueOverloadedMethod", TestObjectV8Internal::measureAsSameVa lueOverloadedMethodMethodCallback, 0, 0}, 9283 {"measureAsSameValueOverloadedMethod", TestObjectV8Internal::measureAsSameVa lueOverloadedMethodMethodCallback, 0, 1},
9156 {"deprecateAsMeasureAsSameValueOverloadedMethod", TestObjectV8Internal::depr ecateAsMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0}, 9284 {"deprecateAsMeasureAsSameValueOverloadedMethod", TestObjectV8Internal::depr ecateAsMeasureAsSameValueOverloadedMethodMethodCallback, 0, 1},
9157 {"deprecateAsSameValueMeasureAsOverloadedMethod", TestObjectV8Internal::depr ecateAsSameValueMeasureAsOverloadedMethodMethodCallback, 0, 0}, 9285 {"deprecateAsSameValueMeasureAsOverloadedMethod", TestObjectV8Internal::depr ecateAsSameValueMeasureAsOverloadedMethodMethodCallback, 0, 1},
9158 {"deprecateAsSameValueMeasureAsSameValueOverloadedMethod", TestObjectV8Inter nal::deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback, 0, 0} , 9286 {"deprecateAsSameValueMeasureAsSameValueOverloadedMethod", TestObjectV8Inter nal::deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethodCallback, 0, 1} ,
9159 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac kForMainWorld, 0}, 9287 {"perWorldBindingsVoidMethod", TestObjectV8Internal::perWorldBindingsVoidMet hodMethodCallback, TestObjectV8Internal::perWorldBindingsVoidMethodMethodCallbac kForMainWorld, 0},
9160 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1} , 9288 {"perWorldBindingsVoidMethodTestInterfaceEmptyArg", TestObjectV8Internal::pe rWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback, TestObjectV8Interna l::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMainWorld, 1} ,
9161 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba ckForMainWorld, 0}, 9289 {"activityLoggingForAllWorldsPerWorldBindingsVoidMethod", TestObjectV8Intern al::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback, TestObj ectV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallba ckForMainWorld, 0},
9162 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet hodMethodCallbackForMainWorld, 0}, 9290 {"activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod", TestObjectV8I nternal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCallbac k, TestObjectV8Internal::activityLoggingForIsolatedWorldsPerWorldBindingsVoidMet hodMethodCallbackForMainWorld, 0},
9163 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0}, 9291 {"raisesExceptionVoidMethod", TestObjectV8Internal::raisesExceptionVoidMetho dMethodCallback, 0, 0},
9164 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0}, 9292 {"raisesExceptionStringMethod", TestObjectV8Internal::raisesExceptionStringM ethodMethodCallback, 0, 0},
9165 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, 9293 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0},
9166 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, 9294 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1},
9167 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, 9295 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0},
9168 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, 9296 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0},
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
9239 COMPILE_ASSERT(0X20 == TestObject::CONST_VALUE_13, TheValueOfTestObject_CONS T_VALUE_13DoesntMatchWithImplementation); 9367 COMPILE_ASSERT(0X20 == TestObject::CONST_VALUE_13, TheValueOfTestObject_CONS T_VALUE_13DoesntMatchWithImplementation);
9240 COMPILE_ASSERT(0x1abc == TestObject::CONST_VALUE_14, TheValueOfTestObject_CO NST_VALUE_14DoesntMatchWithImplementation); 9368 COMPILE_ASSERT(0x1abc == TestObject::CONST_VALUE_14, TheValueOfTestObject_CO NST_VALUE_14DoesntMatchWithImplementation);
9241 COMPILE_ASSERT(010 == TestObject::CONST_VALUE_15, TheValueOfTestObject_CONST _VALUE_15DoesntMatchWithImplementation); 9369 COMPILE_ASSERT(010 == TestObject::CONST_VALUE_15, TheValueOfTestObject_CONST _VALUE_15DoesntMatchWithImplementation);
9242 COMPILE_ASSERT(-010 == TestObject::CONST_VALUE_16, TheValueOfTestObject_CONS T_VALUE_16DoesntMatchWithImplementation); 9370 COMPILE_ASSERT(-010 == TestObject::CONST_VALUE_16, TheValueOfTestObject_CONS T_VALUE_16DoesntMatchWithImplementation);
9243 COMPILE_ASSERT(-0x1A == TestObject::CONST_VALUE_16, TheValueOfTestObject_CON ST_VALUE_16DoesntMatchWithImplementation); 9371 COMPILE_ASSERT(-0x1A == TestObject::CONST_VALUE_16, TheValueOfTestObject_CON ST_VALUE_16DoesntMatchWithImplementation);
9244 COMPILE_ASSERT(-0X1a == TestObject::CONST_VALUE_17, TheValueOfTestObject_CON ST_VALUE_17DoesntMatchWithImplementation); 9372 COMPILE_ASSERT(-0X1a == TestObject::CONST_VALUE_17, TheValueOfTestObject_CON ST_VALUE_17DoesntMatchWithImplementation);
9245 COMPILE_ASSERT(1 == TestObject::DEPRECATED_CONSTANT, TheValueOfTestObject_DE PRECATED_CONSTANTDoesntMatchWithImplementation); 9373 COMPILE_ASSERT(1 == TestObject::DEPRECATED_CONSTANT, TheValueOfTestObject_DE PRECATED_CONSTANTDoesntMatchWithImplementation);
9246 COMPILE_ASSERT(1 == TestObject::FEATURE_ENABLED_CONST, TheValueOfTestObject_ FEATURE_ENABLED_CONSTDoesntMatchWithImplementation); 9374 COMPILE_ASSERT(1 == TestObject::FEATURE_ENABLED_CONST, TheValueOfTestObject_ FEATURE_ENABLED_CONSTDoesntMatchWithImplementation);
9247 COMPILE_ASSERT(1 == TestObject::CONST_IMPL, TheValueOfTestObject_CONST_IMPLD oesntMatchWithImplementation); 9375 COMPILE_ASSERT(1 == TestObject::CONST_IMPL, TheValueOfTestObject_CONST_IMPLD oesntMatchWithImplementation);
9248 functionTemplate->Set(v8AtomicString(isolate, "staticVoidMethod"), v8::Funct ionTemplate::New(isolate, TestObjectV8Internal::staticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 9376 functionTemplate->Set(v8AtomicString(isolate, "staticVoidMethod"), v8::Funct ionTemplate::New(isolate, TestObjectV8Internal::staticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
9249 functionTemplate->Set(v8AtomicString(isolate, "overloadedStaticMethod"), v8: :FunctionTemplate::New(isolate, TestObjectV8Internal::overloadedStaticMethodMeth odCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); 9377 functionTemplate->Set(v8AtomicString(isolate, "overloadedStaticMethod"), v8: :FunctionTemplate::New(isolate, TestObjectV8Internal::overloadedStaticMethodMeth odCallback, v8Undefined(), v8::Local<v8::Signature>(), 2));
9250 #if ENABLE(CONDITION) 9378 #if ENABLE(CONDITION)
9251 functionTemplate->Set(v8AtomicString(isolate, "conditionalConditionStaticVoi dMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::conditionalC onditionStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>( ), 0)); 9379 functionTemplate->Set(v8AtomicString(isolate, "conditionalConditionStaticVoi dMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::conditionalC onditionStaticVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>( ), 0));
9252 #endif // ENABLE(CONDITION) 9380 #endif // ENABLE(CONDITION)
9253 prototypeTemplate->Set(v8AtomicString(isolate, "doNotCheckSignatureVoidMetho d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::doNotCheckSignatur eVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 9381 prototypeTemplate->Set(v8AtomicString(isolate, "doNotCheckSignatureVoidMetho d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::doNotCheckSignatur eVoidMethodMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
9254 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableVoidMethod"), v 8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableVoidMethodM ethodCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttr ibute>(v8::DontDelete | v8::DontEnum)); 9382 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableVoidMethod"), v 8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableVoidMethodM ethodCallback, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttr ibute>(v8::DontDelete | v8::DontEnum));
9255 prototypeTemplate->Set(v8AtomicString(isolate, "readOnlyVoidMethod"), v8::Fu nctionTemplate::New(isolate, TestObjectV8Internal::readOnlyVoidMethodMethodCallb ack, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8: :DontDelete | v8::ReadOnly)); 9383 prototypeTemplate->Set(v8AtomicString(isolate, "readOnlyVoidMethod"), v8::Fu nctionTemplate::New(isolate, TestObjectV8Internal::readOnlyVoidMethodMethodCallb ack, v8Undefined(), defaultSignature, 0), static_cast<v8::PropertyAttribute>(v8: :DontDelete | v8::ReadOnly));
9256 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableReadOnlyVoidMet hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableRea dOnlyVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0), static_cast< v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8::ReadOnly)); 9384 prototypeTemplate->Set(v8AtomicString(isolate, "notEnumerableReadOnlyVoidMet hod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::notEnumerableRea dOnlyVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0), static_cast< v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum | v8::ReadOnly));
9257 if (RuntimeEnabledFeatures::featureNameEnabled()) 9385 if (RuntimeEnabledFeatures::featureNameEnabled()) {
9258 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledVoidMethod "), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEnabledVoidM ethodMethodCallback, v8Undefined(), defaultSignature, 0)); 9386 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledVoidMethod "), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEnabledVoidM ethodMethodCallback, v8Undefined(), defaultSignature, 0));
9387 }
9259 if (DOMWrapperWorld::current(isolate).isMainWorld()) { 9388 if (DOMWrapperWorld::current(isolate).isMainWorld()) {
9260 if (RuntimeEnabledFeatures::featureNameEnabled()) 9389 if (RuntimeEnabledFeatures::featureNameEnabled()) {
9261 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal: :perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, v8Undefined (), defaultSignature, 0)); 9390 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal: :perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld, v8Undefined (), defaultSignature, 0));
9391 }
9262 } else { 9392 } else {
9263 if (RuntimeEnabledFeatures::featureNameEnabled()) 9393 if (RuntimeEnabledFeatures::featureNameEnabled()) {
9264 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal: :perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, v8Undefined(), defaultS ignature, 0)); 9394 prototypeTemplate->Set(v8AtomicString(isolate, "perWorldBindingsRunt imeEnabledVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal: :perWorldBindingsRuntimeEnabledVoidMethodMethodCallback, v8Undefined(), defaultS ignature, 0));
9395 }
9265 } 9396 }
9397 if (RuntimeEnabledFeatures::featureNameEnabled()) {
9398 prototypeTemplate->Set(v8AtomicString(isolate, "runtimeEnabledOverloaded VoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::runtimeEn abledOverloadedVoidMethodMethodCallback, v8Undefined(), defaultSignature, 1));
9399 }
9400 prototypeTemplate->Set(v8AtomicString(isolate, "partiallyRuntimeEnabledOverl oadedVoidMethod"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::part iallyRuntimeEnabledOverloadedVoidMethodMethodCallback, v8Undefined(), defaultSig nature, 1));
9266 instanceTemplate->Set(v8AtomicString(isolate, "unforgeableVoidMethod"), v8:: FunctionTemplate::New(isolate, TestObjectV8Internal::unforgeableVoidMethodMethod Callback, v8Undefined(), defaultSignature, 0)); 9401 instanceTemplate->Set(v8AtomicString(isolate, "unforgeableVoidMethod"), v8:: FunctionTemplate::New(isolate, TestObjectV8Internal::unforgeableVoidMethodMethod Callback, v8Undefined(), defaultSignature, 0));
9267 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback , TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8 ::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 9402 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestObjectV8Internal::staticStringAttributeAttributeGetterCallback , TestObjectV8Internal::staticStringAttributeAttributeSetterCallback, v8::Extern al::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8 ::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
9268 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 9403 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticLongA ttribute"), TestObjectV8Internal::staticLongAttributeAttributeGetterCallback, Te stObjectV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::Ne w(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acce ssorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
9269 9404
9270 // Custom toString template 9405 // Custom toString template
9271 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 9406 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
9272 } 9407 }
9273 9408
9274 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate) 9409 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate)
9275 { 9410 {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
9349 fromInternalPointer(object)->deref(); 9484 fromInternalPointer(object)->deref();
9350 } 9485 }
9351 9486
9352 template<> 9487 template<>
9353 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9488 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9354 { 9489 {
9355 return toV8(impl, creationContext, isolate); 9490 return toV8(impl, creationContext, isolate);
9356 } 9491 }
9357 9492
9358 } // namespace WebCore 9493 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698