Changeset 117979 in webkit


Ignore:
Timestamp:
May 22, 2012 8:57:04 AM (12 years ago)
Author:
haraken@chromium.org
Message:

[V8] Remove GenerateSetDOMException() from CodeGeneratorV8.pm
https://bugs.webkit.org/show_bug.cgi?id=87114

Reviewed by Nate Chapin.

GenerateSetDOMException() is used by only one place. This patch removes it.

No tests. No change in behavior.

  • bindings/scripts/CodeGeneratorV8.pm:

(GenerateNormalAttrGetter):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117978 r117979  
     12012-05-22  Kentaro Hara  <haraken@chromium.org>
     2
     3        [V8] Remove GenerateSetDOMException() from CodeGeneratorV8.pm
     4        https://bugs.webkit.org/show_bug.cgi?id=87114
     5
     6        Reviewed by Nate Chapin.
     7
     8        GenerateSetDOMException() is used by only one place. This patch removes it.
     9
     10        No tests. No change in behavior.
     11
     12        * bindings/scripts/CodeGeneratorV8.pm:
     13        (GenerateNormalAttrGetter):
     14
    1152012-05-22  David Grogan  <dgrogan@chromium.org>
    216
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

    r117933 r117979  
    645645}
    646646
    647 sub GenerateSetDOMException
    648 {
    649     my $indent = shift;
    650     my $getIsolate = shift;
    651     my $result = "";
    652 
    653     $result .= $indent . "if (UNLIKELY(ec))\n";
    654     $result .= $indent . "    return V8Proxy::setDOMException(ec, $getIsolate);\n";
    655     return $result;
    656 }
    657 
    658647sub IsSubType
    659648{
     
    899888            push(@implContentDecls, "    $nativeType v = $getterString;\n");
    900889        }
    901         push(@implContentDecls, GenerateSetDOMException("    ", "info.GetIsolate()"));
     890        push(@implContentDecls, "    if (UNLIKELY(ec))\n");
     891        push(@implContentDecls, "        return V8Proxy::setDOMException(ec, info.GetIsolate());\n");
    902892
    903893        if ($codeGenerator->ExtendedAttributeContains($attribute->signature->extendedAttributes->{"CallWith"}, "ScriptState")) {
Note: See TracChangeset for help on using the changeset viewer.