Title: [187349] trunk/Source/_javascript_Core
Revision
187349
Author
[email protected]
Date
2015-07-24 11:36:03 -0700 (Fri, 24 Jul 2015)

Log Message

Remove JS Promise constructor unused piece of code
https://bugs.webkit.org/show_bug.cgi?id=147262

Reviewed by Geoffrey Garen.

* runtime/JSPromiseConstructor.cpp:
(JSC::constructPromise): Deleted.
* runtime/JSPromiseConstructor.h: Removed JSC::constructPromise.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (187348 => 187349)


--- trunk/Source/_javascript_Core/ChangeLog	2015-07-24 18:32:18 UTC (rev 187348)
+++ trunk/Source/_javascript_Core/ChangeLog	2015-07-24 18:36:03 UTC (rev 187349)
@@ -1,3 +1,14 @@
+2015-07-24  Xabier Rodriguez Calvar  <[email protected]>
+
+        Remove JS Promise constructor unused piece of code
+        https://bugs.webkit.org/show_bug.cgi?id=147262
+
+        Reviewed by Geoffrey Garen.
+
+        * runtime/JSPromiseConstructor.cpp:
+        (JSC::constructPromise): Deleted.
+        * runtime/JSPromiseConstructor.h: Removed JSC::constructPromise.
+
 2015-07-24  Mark Lam  <[email protected]>
 
         Add WASM files to vcxproj files.

Modified: trunk/Source/_javascript_Core/runtime/JSPromiseConstructor.cpp (187348 => 187349)


--- trunk/Source/_javascript_Core/runtime/JSPromiseConstructor.cpp	2015-07-24 18:32:18 UTC (rev 187348)
+++ trunk/Source/_javascript_Core/runtime/JSPromiseConstructor.cpp	2015-07-24 18:36:03 UTC (rev 187349)
@@ -119,18 +119,4 @@
     return getStaticFunctionSlot<InternalFunction>(exec, promiseConstructorTable, jsCast<JSPromiseConstructor*>(object), propertyName, slot);
 }
 
-JSPromise* constructPromise(ExecState* exec, JSGlobalObject* globalObject, JSFunction* resolver)
-{
-    JSPromiseConstructor* promiseConstructor = globalObject->promiseConstructor();
-
-    ConstructData constructData;
-    ConstructType constructType = getConstructData(promiseConstructor, constructData);
-    ASSERT(constructType != ConstructTypeNone);
-
-    MarkedArgumentBuffer arguments;
-    arguments.append(resolver);
-
-    return jsCast<JSPromise*>(construct(exec, promiseConstructor, constructType, constructData, arguments));
-}
-
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/JSPromiseConstructor.h (187348 => 187349)


--- trunk/Source/_javascript_Core/runtime/JSPromiseConstructor.h	2015-07-24 18:32:18 UTC (rev 187348)
+++ trunk/Source/_javascript_Core/runtime/JSPromiseConstructor.h	2015-07-24 18:36:03 UTC (rev 187349)
@@ -53,8 +53,6 @@
     static bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&);
 };
 
-JSPromise* constructPromise(ExecState*, JSGlobalObject*, JSFunction*);
-
 } // namespace JSC
 
 #endif // JSPromiseConstructor_h
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to