Changeset 190785 in webkit
- Timestamp:
- Oct 9, 2015 6:44:42 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r190784 r190785 1 2015-10-09 Youenn Fablet <youenn.fablet@crf.canon.fr> 2 3 Rationalize JSXXConstructor class definition 4 https://bugs.webkit.org/show_bug.cgi?id=149923 5 6 Reviewed by Darin Adler. 7 8 Declaration of JSXXConstructor::construct and JSXXConstructor::getConstructData 9 as long as JSXX is constructable from JavaScript. 10 11 Previously, JSXXConstructor::construct was not generated in case of CustomConstructor. 12 It is now generated and directly calls the custom constructor function. 13 14 getConstructData was declared conditionally with #if in case of ConstructorConditional. 15 The #if are now within getConstructData body. 16 17 Covered by binding tests. 18 19 * bindings/scripts/CodeGeneratorJS.pm: 20 (GenerateConstructorDeclaration): 21 (GenerateOverloadedConstructorDefinition): 22 (GenerateConstructorDefinition): 23 (GenerateConstructorHelperMethods): 24 (GenerateConstructorDefinitions):. 25 * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp: 26 (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::construct): 27 (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::getConstructData): 28 (WebCore::JSTestCustomConstructorWithNoInterfaceObjectConstructor::finishCreation):. 29 * bindings/scripts/test/JS/JSTestEventConstructor.cpp: 30 (WebCore::JSTestEventConstructorConstructor::construct): 31 (WebCore::JSTestEventConstructorConstructor::getConstructData): 32 * bindings/scripts/test/JS/JSTestInterface.cpp: 33 (WebCore::JSTestInterfaceConstructor::construct): 34 (WebCore::JSTestInterfaceConstructor::getConstructData): 35 * bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp: 36 (WebCore::JSTestJSBuiltinConstructorConstructor::construct): 37 (WebCore::JSTestJSBuiltinConstructorConstructor::getConstructData): 38 * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: 39 (WebCore::JSTestNamedConstructorNamedConstructor::construct): 40 (WebCore::JSTestNamedConstructorNamedConstructor::getConstructData): 41 * bindings/scripts/test/JS/JSTestNode.cpp: 42 (WebCore::JSTestNodeConstructor::construct): 43 (WebCore::JSTestNodeConstructor::getConstructData): 44 * bindings/scripts/test/JS/JSTestObj.cpp: 45 (WebCore::JSTestObjConstructor::construct): 46 (WebCore::JSTestObjConstructor::getConstructData): 47 * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: 48 (WebCore::constructJSTestOverloadedConstructors1): 49 (WebCore::constructJSTestOverloadedConstructors2): 50 (WebCore::constructJSTestOverloadedConstructors3): 51 (WebCore::constructJSTestOverloadedConstructors4): 52 (WebCore::constructJSTestOverloadedConstructors5): 53 (WebCore::JSTestOverloadedConstructorsConstructor::construct): 54 (WebCore::JSTestOverloadedConstructorsConstructor::getConstructData): 55 * bindings/scripts/test/JS/JSTestTypedefs.cpp: 56 (WebCore::JSTestTypedefsConstructor::construct): 57 (WebCore::JSTestTypedefsConstructor::getConstructData): 58 1 59 2015-10-07 Sergio Villar Senin <svillar@igalia.com> 2 60 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r190714 r190785 4627 4627 4628 4628 if (IsConstructable($interface) && !$interface->extendedAttributes->{"NamedConstructor"}) { 4629 if (!HasCustomConstructor($interface)) { 4630 push(@$outputArray, "protected:\n"); 4631 push(@$outputArray, " static JSC::EncodedJSValue JSC_HOST_CALL construct${className}(JSC::ExecState*);\n"); 4632 my @constructors = @{$interface->constructors}; 4633 if (@constructors > 1) { 4634 foreach my $constructor (@constructors) { 4635 my $overloadedIndex = "" . $constructor->{overloadedIndex}; 4636 push(@$outputArray, " static JSC::EncodedJSValue JSC_HOST_CALL construct${className}${overloadedIndex}(JSC::ExecState*);\n"); 4637 } 4638 } 4639 } 4640 4641 my $conditionalString = $codeGenerator->GenerateConstructorConditionalString($interface); 4642 push(@$outputArray, "#if $conditionalString\n") if $conditionalString; 4629 push(@$outputArray, "protected:\n"); 4630 push(@$outputArray, " static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*);\n"); 4643 4631 push(@$outputArray, " static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);\n"); 4644 push(@$outputArray, "#endif // $conditionalString\n") if $conditionalString;4645 4632 } 4646 4633 push(@$outputArray, "};\n\n"); … … 4668 4655 private: 4669 4656 JS${interfaceName}NamedConstructor(JSC::Structure*, JSDOMGlobalObject&); 4670 static JSC::EncodedJSValue JSC_HOST_CALL construct JS${interfaceName}(JSC::ExecState*);4657 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 4671 4658 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 4672 4659 void finishCreation(JSC::VM&, JSDOMGlobalObject&); … … 4710 4697 my $interface = shift; 4711 4698 4712 my $functionName = "${className}Constructor::construct${className}";4713 4714 4699 # FIXME: Implement support for overloaded constructors with variadic arguments. 4715 4700 my $lengthOfLongestOverloadedConstructorParameterList = LengthOfLongestFunctionParameterList($interface->constructors); 4716 4701 4717 4702 push(@$outputArray, <<END); 4718 EncodedJSValue JSC_HOST_CALL ${ functionName}(ExecState* state)4703 EncodedJSValue JSC_HOST_CALL ${className}Constructor::construct(ExecState* state) 4719 4704 { 4720 4705 size_t argsCount = std::min<size_t>($lengthOfLongestOverloadedConstructorParameterList, state->argumentCount()); … … 4726 4711 my @constructors = @{$interface->constructors}; 4727 4712 foreach my $overload (@constructors) { 4713 my $functionName = "construct${className}"; 4728 4714 my ($numMandatoryParams, $parametersCheck, @neededArguments) = GenerateFunctionParametersCheck($overload); 4729 4715 $leastNumMandatoryParams = $numMandatoryParams if ($numMandatoryParams < $leastNumMandatoryParams); … … 4769 4755 4770 4756 push(@$outputArray, <<END); 4771 EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct ${className}(ExecState* state)4757 EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct(ExecState* state) 4772 4758 { 4773 4759 auto* jsConstructor = jsCast<${constructorClassName}*>(state->callee()); … … 4833 4819 4834 4820 END 4835 } elsif ($interface->extendedAttributes->{"JSBuiltinConstructor"}) { 4836 push(@$outputArray, "JSC::EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct${className}(JSC::ExecState* state)\n"); 4821 } elsif ($interface->extendedAttributes->{"CustomConstructor"}) { 4822 push(@$outputArray, "JSC::EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct(JSC::ExecState* state)\n"); 4823 push(@$outputArray, "{\n"); 4824 push(@$outputArray, " return construct${className}(state);\n"); 4825 push(@$outputArray, "}\n\n"); 4826 } elsif ($interface->extendedAttributes->{"JSBuiltinConstructor"}) { 4827 push(@$outputArray, "JSC::EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct(JSC::ExecState* state)\n"); 4837 4828 push(@$outputArray, "{\n"); 4838 4829 … … 4842 4833 push(@$outputArray, "}\n\n"); 4843 4834 } elsif (!HasCustomConstructor($interface) && (!$interface->extendedAttributes->{"NamedConstructor"} || $generatingNamedConstructor)) { 4844 my $overloadedIndexString = "";4845 4835 if ($function->{overloadedIndex} && $function->{overloadedIndex} > 0) { 4846 $overloadedIndexString .= $function->{overloadedIndex}; 4847 } 4848 4849 push(@$outputArray, "EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct${className}${overloadedIndexString}(ExecState* state)\n"); 4836 push(@$outputArray, "static inline EncodedJSValue construct${className}$function->{overloadedIndex}(ExecState* state)\n"); 4837 } 4838 else { 4839 push(@$outputArray, "EncodedJSValue JSC_HOST_CALL ${constructorClassName}::construct(ExecState* state)\n"); 4840 } 4841 4850 4842 push(@$outputArray, "{\n"); 4851 4843 push(@$outputArray, " auto* castedThis = jsCast<${constructorClassName}*>(state->callee());\n"); … … 5018 5010 if (!$interface->extendedAttributes->{"NamedConstructor"} || $generatingNamedConstructor) { 5019 5011 my $conditionalString = $codeGenerator->GenerateConstructorConditionalString($interface); 5020 push(@$outputArray, "#if $conditionalString\n") if $conditionalString;5021 5012 push(@$outputArray, "ConstructType ${constructorClassName}::getConstructData(JSCell*, ConstructData& constructData)\n"); 5022 5013 push(@$outputArray, "{\n"); 5023 push(@$outputArray, " constructData.native.function = construct${className};\n"); 5024 push(@$outputArray, " return ConstructTypeHost;\n"); 5014 if ($conditionalString) { 5015 push(@$outputArray, "#if $conditionalString\n"); 5016 push(@$outputArray, " constructData.native.function = construct;\n"); 5017 push(@$outputArray, " return ConstructTypeHost;\n"); 5018 push(@$outputArray, "#else\n"); 5019 push(@$outputArray, " return Base::getConstructData(cell, constructData);\n"); 5020 push(@$outputArray, "#endif\n"); 5021 } else { 5022 push(@$outputArray, " constructData.native.function = construct;\n"); 5023 push(@$outputArray, " return ConstructTypeHost;\n"); 5024 } 5025 5025 push(@$outputArray, "}\n"); 5026 push(@$outputArray, "#endif // $conditionalString\n") if $conditionalString;5027 5026 push(@$outputArray, "\n"); 5028 5027 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp
r190714 r190785 77 77 return JSC::Structure::create(vm, &globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); 78 78 } 79 protected: 80 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 79 81 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 80 82 }; 83 84 JSC::EncodedJSValue JSC_HOST_CALL JSTestCustomConstructorWithNoInterfaceObjectConstructor::construct(JSC::ExecState* state) 85 { 86 return constructJSTestCustomConstructorWithNoInterfaceObject(state); 87 } 81 88 82 89 const ClassInfo JSTestCustomConstructorWithNoInterfaceObjectConstructor::s_info = { "TestCustomConstructorWithNoInterfaceObjectConstructor", &Base::s_info, 0, CREATE_METHOD_TABLE(JSTestCustomConstructorWithNoInterfaceObjectConstructor) }; … … 98 105 ConstructType JSTestCustomConstructorWithNoInterfaceObjectConstructor::getConstructData(JSCell*, ConstructData& constructData) 99 106 { 100 constructData.native.function = construct JSTestCustomConstructorWithNoInterfaceObject;107 constructData.native.function = construct; 101 108 return ConstructTypeHost; 102 109 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp
r190714 r190785 84 84 } 85 85 protected: 86 static JSC::EncodedJSValue JSC_HOST_CALL construct JSTestEventConstructor(JSC::ExecState*);86 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 87 87 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 88 88 }; 89 89 90 EncodedJSValue JSC_HOST_CALL JSTestEventConstructorConstructor::construct JSTestEventConstructor(ExecState* state)90 EncodedJSValue JSC_HOST_CALL JSTestEventConstructorConstructor::construct(ExecState* state) 91 91 { 92 92 auto* jsConstructor = jsCast<JSTestEventConstructorConstructor*>(state->callee()); … … 147 147 ConstructType JSTestEventConstructorConstructor::getConstructData(JSCell*, ConstructData& constructData) 148 148 { 149 constructData.native.function = construct JSTestEventConstructor;149 constructData.native.function = construct; 150 150 return ConstructTypeHost; 151 151 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
r190714 r190785 164 164 } 165 165 protected: 166 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestInterface(JSC::ExecState*); 167 #if ENABLE(TEST_INTERFACE) 166 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 168 167 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 169 #endif // ENABLE(TEST_INTERFACE)170 168 }; 171 169 … … 265 263 #endif 266 264 267 EncodedJSValue JSC_HOST_CALL JSTestInterfaceConstructor::construct JSTestInterface(ExecState* state)265 EncodedJSValue JSC_HOST_CALL JSTestInterfaceConstructor::construct(ExecState* state) 268 266 { 269 267 auto* castedThis = jsCast<JSTestInterfaceConstructor*>(state->callee()); … … 305 303 } 306 304 305 ConstructType JSTestInterfaceConstructor::getConstructData(JSCell*, ConstructData& constructData) 306 { 307 307 #if ENABLE(TEST_INTERFACE) 308 ConstructType JSTestInterfaceConstructor::getConstructData(JSCell*, ConstructData& constructData) 309 { 310 constructData.native.function = constructJSTestInterface; 308 constructData.native.function = construct; 311 309 return ConstructTypeHost; 312 } 313 #endif // ENABLE(TEST_INTERFACE) 310 #else 311 return Base::getConstructData(cell, constructData); 312 #endif 313 } 314 314 315 315 /* Hash table for prototype */ -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestJSBuiltinConstructor.cpp
r190714 r190785 79 79 } 80 80 protected: 81 static JSC::EncodedJSValue JSC_HOST_CALL construct JSTestJSBuiltinConstructor(JSC::ExecState*);81 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 82 82 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 83 83 }; 84 84 85 JSC::EncodedJSValue JSC_HOST_CALL JSTestJSBuiltinConstructorConstructor::construct JSTestJSBuiltinConstructor(JSC::ExecState* state)85 JSC::EncodedJSValue JSC_HOST_CALL JSTestJSBuiltinConstructorConstructor::construct(JSC::ExecState* state) 86 86 { 87 87 auto* castedThis = jsCast<JSTestJSBuiltinConstructorConstructor*>(state->callee()); … … 108 108 ConstructType JSTestJSBuiltinConstructorConstructor::getConstructData(JSCell*, ConstructData& constructData) 109 109 { 110 constructData.native.function = construct JSTestJSBuiltinConstructor;110 constructData.native.function = construct; 111 111 return ConstructTypeHost; 112 112 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp
r190714 r190785 102 102 private: 103 103 JSTestNamedConstructorNamedConstructor(JSC::Structure*, JSDOMGlobalObject&); 104 static JSC::EncodedJSValue JSC_HOST_CALL construct JSTestNamedConstructor(JSC::ExecState*);104 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 105 105 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 106 106 void finishCreation(JSC::VM&, JSDOMGlobalObject&); … … 123 123 } 124 124 125 EncodedJSValue JSC_HOST_CALL JSTestNamedConstructorNamedConstructor::construct JSTestNamedConstructor(ExecState* state)125 EncodedJSValue JSC_HOST_CALL JSTestNamedConstructorNamedConstructor::construct(ExecState* state) 126 126 { 127 127 auto* castedThis = jsCast<JSTestNamedConstructorNamedConstructor*>(state->callee()); … … 164 164 ConstructType JSTestNamedConstructorNamedConstructor::getConstructData(JSCell*, ConstructData& constructData) 165 165 { 166 constructData.native.function = construct JSTestNamedConstructor;166 constructData.native.function = construct; 167 167 return ConstructTypeHost; 168 168 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp
r190714 r190785 84 84 } 85 85 protected: 86 static JSC::EncodedJSValue JSC_HOST_CALL construct JSTestNode(JSC::ExecState*);86 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 87 87 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 88 88 }; 89 89 90 EncodedJSValue JSC_HOST_CALL JSTestNodeConstructor::construct JSTestNode(ExecState* state)90 EncodedJSValue JSC_HOST_CALL JSTestNodeConstructor::construct(ExecState* state) 91 91 { 92 92 auto* castedThis = jsCast<JSTestNodeConstructor*>(state->callee()); … … 113 113 ConstructType JSTestNodeConstructor::getConstructData(JSCell*, ConstructData& constructData) 114 114 { 115 constructData.native.function = construct JSTestNode;115 constructData.native.function = construct; 116 116 return ConstructTypeHost; 117 117 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r190714 r190785 366 366 } 367 367 protected: 368 static JSC::EncodedJSValue JSC_HOST_CALL construct JSTestObj(JSC::ExecState*);368 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 369 369 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 370 370 }; … … 469 469 COMPILE_ASSERT(0 == TestObj::readonly, TestObjEnumreadonlyIsWrongUseDoNotCheckConstants); 470 470 471 EncodedJSValue JSC_HOST_CALL JSTestObjConstructor::construct JSTestObj(ExecState* state)471 EncodedJSValue JSC_HOST_CALL JSTestObjConstructor::construct(ExecState* state) 472 472 { 473 473 auto* castedThis = jsCast<JSTestObjConstructor*>(state->callee()); … … 503 503 ConstructType JSTestObjConstructor::getConstructData(JSCell*, ConstructData& constructData) 504 504 { 505 constructData.native.function = construct JSTestObj;505 constructData.native.function = construct; 506 506 return ConstructTypeHost; 507 507 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp
r190714 r190785 81 81 } 82 82 protected: 83 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestOverloadedConstructors(JSC::ExecState*); 84 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestOverloadedConstructors1(JSC::ExecState*); 85 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestOverloadedConstructors2(JSC::ExecState*); 86 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestOverloadedConstructors3(JSC::ExecState*); 87 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestOverloadedConstructors4(JSC::ExecState*); 88 static JSC::EncodedJSValue JSC_HOST_CALL constructJSTestOverloadedConstructors5(JSC::ExecState*); 83 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 89 84 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 90 85 }; 91 86 92 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(ExecState* state)87 static inline EncodedJSValue constructJSTestOverloadedConstructors1(ExecState* state) 93 88 { 94 89 auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee()); … … 102 97 } 103 98 104 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(ExecState* state)99 static inline EncodedJSValue constructJSTestOverloadedConstructors2(ExecState* state) 105 100 { 106 101 auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee()); … … 114 109 } 115 110 116 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(ExecState* state)111 static inline EncodedJSValue constructJSTestOverloadedConstructors3(ExecState* state) 117 112 { 118 113 auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee()); … … 126 121 } 127 122 128 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(ExecState* state)123 static inline EncodedJSValue constructJSTestOverloadedConstructors4(ExecState* state) 129 124 { 130 125 auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee()); … … 138 133 } 139 134 140 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors5(ExecState* state)135 static inline EncodedJSValue constructJSTestOverloadedConstructors5(ExecState* state) 141 136 { 142 137 auto* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(state->callee()); … … 148 143 } 149 144 150 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::construct JSTestOverloadedConstructors(ExecState* state)145 EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::construct(ExecState* state) 151 146 { 152 147 size_t argsCount = std::min<size_t>(1, state->argumentCount()); 153 148 JSValue arg0(state->argument(0)); 154 149 if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSArrayBuffer::info()))))) 155 return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(state);150 return constructJSTestOverloadedConstructors1(state); 156 151 if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSArrayBufferView::info()))))) 157 return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(state);152 return constructJSTestOverloadedConstructors2(state); 158 153 if ((argsCount == 1 && ((arg0.isObject() && asObject(arg0)->inherits(JSBlob::info()))))) 159 return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(state);154 return constructJSTestOverloadedConstructors3(state); 160 155 if (argsCount == 1) 161 return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(state);156 return constructJSTestOverloadedConstructors4(state); 162 157 if () 163 return JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors5(state);158 return constructJSTestOverloadedConstructors5(state); 164 159 if (argsCount < 1) 165 160 return throwVMError(state, createNotEnoughArgumentsError(state)); … … 185 180 ConstructType JSTestOverloadedConstructorsConstructor::getConstructData(JSCell*, ConstructData& constructData) 186 181 { 187 constructData.native.function = construct JSTestOverloadedConstructors;182 constructData.native.function = construct; 188 183 return ConstructTypeHost; 189 184 } -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp
r190714 r190785 118 118 } 119 119 protected: 120 static JSC::EncodedJSValue JSC_HOST_CALL construct JSTestTypedefs(JSC::ExecState*);120 static JSC::EncodedJSValue JSC_HOST_CALL construct(JSC::ExecState*); 121 121 static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&); 122 122 }; … … 143 143 }; 144 144 145 EncodedJSValue JSC_HOST_CALL JSTestTypedefsConstructor::construct JSTestTypedefs(ExecState* state)145 EncodedJSValue JSC_HOST_CALL JSTestTypedefsConstructor::construct(ExecState* state) 146 146 { 147 147 auto* castedThis = jsCast<JSTestTypedefsConstructor*>(state->callee()); … … 177 177 ConstructType JSTestTypedefsConstructor::getConstructData(JSCell*, ConstructData& constructData) 178 178 { 179 constructData.native.function = construct JSTestTypedefs;179 constructData.native.function = construct; 180 180 return ConstructTypeHost; 181 181 }
Note: See TracChangeset
for help on using the changeset viewer.