Changeset 135115 in webkit
- Timestamp:
- Nov 18, 2012, 11:35:06 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r135114 r135115 1 2012-11-18 Kentaro Hara <haraken@chromium.org> 2 3 [V8] Remove unused variables from CodeGeneratorV8.pm 4 https://bugs.webkit.org/show_bug.cgi?id=102648 5 6 Reviewed by Adam Barth. 7 8 No tests. No change in generated code. 9 10 * bindings/scripts/CodeGeneratorV8.pm: 11 (GenerateInterface): 12 (GenerateHeader): 13 (GetInternalFields): 14 (GenerateNormalAttrGetter): 15 (GenerateSingleBatchedAttribute): 16 (GenerateImplementationCustomCall): 17 (GenerateFunctionCallString): 18 (CreateCustomSignature): 19 (GetContextEnableFunction): 20 1 21 2012-11-18 Kentaro Hara <haraken@chromium.org> 2 22 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r135113 r135115 38 38 my @headerContent = (); 39 39 my @implContentHeader = (); 40 my @implFixedHeader = ();41 40 my @implContent = (); 42 41 my @implContentDecls = (); … … 86 85 my $object = shift; 87 86 my $dataNode = shift; 88 my $defines = shift;89 87 90 88 # Start actual generation … … 509 507 my $noToV8 = $dataNode->extendedAttributes->{"SuppressToJSObject"}; 510 508 my $noWrap = $dataNode->extendedAttributes->{"V8NoWrapperCache"} || $noToV8; 511 my $createWrapperArgumentType = GetPassRefPtrType($nativeType);512 509 if (!$noWrap) { 513 510 my $createWrapperArgumentType = GetPassRefPtrType($nativeType); … … 623 620 { 624 621 my $dataNode = shift; 625 my $name = $dataNode->name;626 622 627 623 my @customInternalFields = (); … … 995 991 996 992 my $result; 997 my $wrapper;998 999 993 if ($attribute->signature->type eq "EventListener" && $dataNode->name eq "DOMWindow") { 1000 994 push(@implContentDecls, " if (!imp->document())\n"); … … 2270 2264 my $setter; 2271 2265 my $propAttr = "v8::None"; 2272 my $hasCustomSetter = 0;2273 2266 2274 2267 # Check attributes. … … 2311 2304 # Custom Setter 2312 2305 if ($attrExt->{"CustomSetter"} || $attrExt->{"V8CustomSetter"} || $attrExt->{"Custom"} || $attrExt->{"V8Custom"}) { 2313 $hasCustomSetter = 1;2314 2306 $setter = "V8${customAccessor}AccessorSetter"; 2315 2307 } … … 2593 2585 my $dataNode = shift; 2594 2586 my $interfaceName = $dataNode->name; 2595 my $hasCustomCall = $dataNode->extendedAttributes->{"CustomCall"}; 2596 2597 if ($hasCustomCall) { 2587 2588 if ($dataNode->extendedAttributes->{"CustomCall"}) { 2598 2589 push(@implContent, " desc->InstanceTemplate()->SetCallAsFunctionHandler(V8${interfaceName}::callAsFunctionCallback);\n"); 2599 2590 } … … 2619 2610 2620 2611 # - Add default header template 2621 push(@impl FixedHeader, GenerateImplementationContentHeader($dataNode));2612 push(@implContentHeader, GenerateImplementationContentHeader($dataNode)); 2622 2613 2623 2614 AddToImplIncludes("BindingState.h"); … … 3197 3188 my $conditionalString = $codeGenerator->GenerateConditionalString($dataNode); 3198 3189 push(@implContent, "\n#endif // ${conditionalString}\n") if $conditionalString; 3199 3200 # We've already added the header for this file in impl FixedHeader, so remove3190 3191 # We've already added the header for this file in implContentHeader, so remove 3201 3192 # it from implIncludes to ensure we don't #include it twice. 3202 3193 delete $implIncludes{"${v8InterfaceName}.h"}; … … 3316 3307 3317 3308 # - Add default header template 3318 push(@impl FixedHeader, GenerateImplementationContentHeader($dataNode));3309 push(@implContentHeader, GenerateImplementationContentHeader($dataNode)); 3319 3310 3320 3311 AddToImplIncludes("ScriptExecutionContext.h"); … … 3519 3510 3520 3511 my $index = 0; 3521 my $hasScriptState = 0;3522 3512 3523 3513 my @arguments; … … 3882 3872 AddToImplIncludes("$sequenceType.h"); 3883 3873 } else { 3884 my $header = GetV8HeaderName($type); 3885 AddToImplIncludes($header); 3874 AddToImplIncludes(GetV8HeaderName($type)); 3886 3875 } 3887 3876 $result .= "V8${type}::GetRawTemplate()"; … … 4123 4112 4124 4113 # Update a .cpp file if the contents are changed. 4125 my $contents = join "", @implContentHeader , @implFixedHeader;4114 my $contents = join "", @implContentHeader; 4126 4115 4127 4116 my @includes = (); … … 4161 4150 4162 4151 %implIncludes = (); 4163 @impl FixedHeader = ();4152 @implContentHeader = (); 4164 4153 @implContentDecls = (); 4165 4154 @implContent = (); … … 4213 4202 4214 4203 # Or it fallbacks to the attribute name if the parameter value is missing. 4215 my $attributeName = $signature->name; 4216 return "ContextFeatures::" . $codeGenerator->WK_lcfirst($attributeName) . "Enabled"; 4204 return "ContextFeatures::" . $codeGenerator->WK_lcfirst($signature->name) . "Enabled"; 4217 4205 } 4218 4206
Note:
See TracChangeset
for help on using the changeset viewer.