Title: [164935] trunk
Revision
164935
Author
[email protected]
Date
2014-03-01 19:45:06 -0800 (Sat, 01 Mar 2014)

Log Message

Source/_javascript_Core: This shouldn't have been a layout test since it runs only under jsc. Moving it to JSC
stress tests.

* tests/stress/generational-opaque-roots.js: Copied from LayoutTests/js/script-tests/generational-opaque-roots.js.

LayoutTests: This shouldn't be a layout test since it runs only under jsc. Moving it to JSC
stress tests.

* js/script-tests/generational-opaque-roots.js: Removed.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (164934 => 164935)


--- trunk/LayoutTests/ChangeLog	2014-03-02 00:35:13 UTC (rev 164934)
+++ trunk/LayoutTests/ChangeLog	2014-03-02 03:45:06 UTC (rev 164935)
@@ -1,3 +1,10 @@
+2014-03-01  Filip Pizlo  <[email protected]>
+
+        This shouldn't be a layout test since it runs only under jsc. Moving it to JSC
+        stress tests.
+
+        * js/script-tests/generational-opaque-roots.js: Removed.
+
 2014-03-01  David Kilzer  <[email protected]>
 
         Ensure keySplines is valid in SMIL animations

Deleted: trunk/LayoutTests/js/script-tests/generational-opaque-roots.js (164934 => 164935)


--- trunk/LayoutTests/js/script-tests/generational-opaque-roots.js	2014-03-02 00:35:13 UTC (rev 164934)
+++ trunk/LayoutTests/js/script-tests/generational-opaque-roots.js	2014-03-02 03:45:06 UTC (rev 164935)
@@ -1,29 +0,0 @@
-description("Tests that opaque roots behave correctly during young generation collections.");
-
-// Create the primary Root.
-var root = new Root();
-// This secondary root is for allocating a second Element without overriding 
-// the primary Root's Element.
-var otherRoot = new Root();
-
-// Run an Eden collection so that the Root will be in the old gen (and won't be rescanned).
-edenGC();
-
-// Create a new Element and set a custom property on it.
-var elem = new Element(root);
-elem.customProperty = "hello";
-
-// Make the Element unreachable except through the ephemeron with the Root.
-elem = null;
-
-// Create another Element so that we process the weak handles in block of the original Element.
-var test = new Element(otherRoot);
-
-// Run another Eden collection to process the weak handles in the Element's block. If opaque roots
-// are cleared then we'll think that the original Element is dead because the Root won't be in the 
-// set of opaque roots.
-edenGC();
-
-// Check if the primary Root's Element exists and has our custom property.
-var elem = getElement(root);
-shouldBe("elem.customProperty", "\"hello\"");

Modified: trunk/Source/_javascript_Core/ChangeLog (164934 => 164935)


--- trunk/Source/_javascript_Core/ChangeLog	2014-03-02 00:35:13 UTC (rev 164934)
+++ trunk/Source/_javascript_Core/ChangeLog	2014-03-02 03:45:06 UTC (rev 164935)
@@ -1,3 +1,10 @@
+2014-03-01  Filip Pizlo  <[email protected]>
+
+        This shouldn't have been a layout test since it runs only under jsc. Moving it to JSC
+        stress tests.
+
+        * tests/stress/generational-opaque-roots.js: Copied from LayoutTests/js/script-tests/generational-opaque-roots.js.
+
 2014-03-01  Andreas Kling  <[email protected]>
 
         JSCell::fastGetOwnProperty() should get the Structure more efficiently.

Copied: trunk/Source/_javascript_Core/tests/stress/generational-opaque-roots.js (from rev 164934, trunk/LayoutTests/js/script-tests/generational-opaque-roots.js) (0 => 164935)


--- trunk/Source/_javascript_Core/tests/stress/generational-opaque-roots.js	                        (rev 0)
+++ trunk/Source/_javascript_Core/tests/stress/generational-opaque-roots.js	2014-03-02 03:45:06 UTC (rev 164935)
@@ -0,0 +1,30 @@
+// Tests that opaque roots behave correctly during young generation collections
+
+// Create the primary Root.
+var root = new Root();
+// This secondary root is for allocating a second Element without overriding 
+// the primary Root's Element.
+var otherRoot = new Root();
+
+// Run an Eden collection so that the Root will be in the old gen (and won't be rescanned).
+edenGC();
+
+// Create a new Element and set a custom property on it.
+var elem = new Element(root);
+elem.customProperty = "hello";
+
+// Make the Element unreachable except through the ephemeron with the Root.
+elem = null;
+
+// Create another Element so that we process the weak handles in block of the original Element.
+var test = new Element(otherRoot);
+
+// Run another Eden collection to process the weak handles in the Element's block. If opaque roots
+// are cleared then we'll think that the original Element is dead because the Root won't be in the 
+// set of opaque roots.
+edenGC();
+
+// Check if the primary Root's Element exists and has our custom property.
+var elem = getElement(root);
+if (elem.customProperty != "hello")
+    throw new Error("bad value of customProperty: " + elem.customProperty);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to