Changeset 209532 in webkit


Ignore:
Timestamp:
Dec 8, 2016, 1:04:29 AM (9 years ago)
Author:
pvollan@apple.com
Message:

[Win] Some versions of Cygwin Perl generate incorrect C++ code.
https://bugs.webkit.org/show_bug.cgi?id=165524
rdar://problem/29508043

Reviewed by Daniel Bates.

Perl strings with variables seems to be handled differently, depending on which version of
Cygwin Perl you are running. To make sure they are handled identically, specify variables
in strings as "${var}" instead of "$var".

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateHeader):
(GenerateImplementation):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209531 r209532  
     12016-12-08  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win] Some versions of Cygwin Perl generate incorrect C++ code.
     4        https://bugs.webkit.org/show_bug.cgi?id=165524
     5        rdar://problem/29508043
     6
     7        Reviewed by Daniel Bates.
     8
     9        Perl strings with variables seems to be handled differently, depending on which version of
     10        Cygwin Perl you are running. To make sure they are handled identically, specify variables
     11        in strings as "${var}" instead of "$var".
     12
     13        * bindings/scripts/CodeGeneratorJS.pm:
     14        (GenerateHeader):
     15        (GenerateImplementation):
     16
    1172016-12-08  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r209424 r209532  
    19081908            push(@headerContent, "JSC::DOMJIT::GetterSetter* domJITGetterSetterFor$className(void);\n");
    19091909
    1910             push(@headerContent, "class $domJITClassName : public JSC::DOMJIT::GetterSetter {\n");
     1910            push(@headerContent, "class ${domJITClassName} : public JSC::DOMJIT::GetterSetter {\n");
    19111911            push(@headerContent, "public:\n");
    1912             push(@headerContent, "    $domJITClassName();\n");
     1912            push(@headerContent, "    ${domJITClassName}();\n");
    19131913            push(@headerContent, "#if ENABLE(JIT)\n");
    19141914            push(@headerContent, "    Ref<JSC::DOMJIT::Patchpoint> checkDOM() override;\n");
     
    34423442                my $setter = IsReadonly($attribute) ? "nullptr" : GetAttributeSetterName($interface, $generatorName, $attribute);
    34433443                my $resultType = GetResultTypeFilter($interface, $attribute->type);
    3444                 push(@implContent, "$domJITClassName::$domJITClassName()\n");
     3444                push(@implContent, "${domJITClassName}::${domJITClassName}()\n");
    34453445                push(@implContent, "    : JSC::DOMJIT::GetterSetter($getter, $setter, ${className}::info(), $resultType)\n");
    34463446                push(@implContent, "{\n");
     
    34493449                push(@implContent, "JSC::DOMJIT::GetterSetter* domJITGetterSetterFor" . $generatorName . "()\n");
    34503450                push(@implContent, "{\n");
    3451                 push(@implContent, "    static NeverDestroyed<$domJITClassName> compiler;\n");
     3451                push(@implContent, "    static NeverDestroyed<${domJITClassName}> compiler;\n");
    34523452                push(@implContent, "    return &compiler.get();\n");
    34533453                push(@implContent, "}\n\n");
Note: See TracChangeset for help on using the changeset viewer.