[Refactoring][V8] Remove $indent from NativeToJSValue()
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 21:19:43 +0000 (21:19 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 21:19:43 +0000 (21:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=84077

Reviewed by Nate Chapin.

$indent in NativeToJSValue() in CodeGeneratorV8.pm is not used.
This patch removes it.

No new tests. No change in behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateNormalAttrGetter):
(GenerateFunctionCallString):
(NativeToJSValue):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114298 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/scripts/CodeGeneratorV8.pm

index 5f9ac4f..d748be9 100644 (file)
@@ -1,3 +1,20 @@
+2012-04-16  Kentaro Hara  <haraken@chromium.org>
+
+        [Refactoring][V8] Remove $indent from NativeToJSValue()
+        https://bugs.webkit.org/show_bug.cgi?id=84077
+
+        Reviewed by Nate Chapin.
+
+        $indent in NativeToJSValue() in CodeGeneratorV8.pm is not used.
+        This patch removes it.
+
+        No new tests. No change in behavior.
+
+        * bindings/scripts/CodeGeneratorV8.pm:
+        (GenerateNormalAttrGetter):
+        (GenerateFunctionCallString):
+        (NativeToJSValue):
+
 2012-04-16  Luiz Agostini  <luiz.agostini@palm.com>
 
         matchMedia() MediaQueryList not updating
index e968a73..09db806 100644 (file)
@@ -994,7 +994,7 @@ END
     return value;
 END
         } else {
-            push(@implContentDecls, "    " . ReturnNativeToJSValue($attribute->signature, $result, "    ").";\n");
+            push(@implContentDecls, "    " . ReturnNativeToJSValue($attribute->signature, $result).";\n");
         }
     }
 
@@ -3306,7 +3306,7 @@ sub GenerateFunctionCallString()
     }
 
     $return .= ".release()" if ($returnIsRef);
-    $result .= $indent . ReturnNativeToJSValue($function->signature, $return, $indent) . ";\n";
+    $result .= $indent . ReturnNativeToJSValue($function->signature, $return) . ";\n";
 
     return $result;
 }
@@ -3723,7 +3723,6 @@ sub NativeToJSValue
 {
     my $signature = shift;
     my $value = shift;
-    my $indent = shift;
     my $type = GetTypeFromSignature($signature);
 
     return "v8Boolean($value)" if $type eq "boolean";