Title: [250264] trunk
Revision
250264
Author
[email protected]
Date
2019-09-23 16:33:36 -0700 (Mon, 23 Sep 2019)

Log Message

Lazy JSGlobalObject property materialization should not use putDirectWithoutTransition.
https://bugs.webkit.org/show_bug.cgi?id=202122
<rdar://problem/55535249>

Reviewed by Yusuke Suzuki.

JSTests:

* stress/lazy-global-object-property-materialization-should-not-putDirectWithoutTransition.js: Added.

Source/_javascript_Core:

* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):

Modified Paths

Added Paths

Diff

Modified: trunk/JSTests/ChangeLog (250263 => 250264)


--- trunk/JSTests/ChangeLog	2019-09-23 23:00:56 UTC (rev 250263)
+++ trunk/JSTests/ChangeLog	2019-09-23 23:33:36 UTC (rev 250264)
@@ -1,3 +1,13 @@
+2019-09-23  Mark Lam  <[email protected]>
+
+        Lazy JSGlobalObject property materialization should not use putDirectWithoutTransition.
+        https://bugs.webkit.org/show_bug.cgi?id=202122
+        <rdar://problem/55535249>
+
+        Reviewed by Yusuke Suzuki.
+
+        * stress/lazy-global-object-property-materialization-should-not-putDirectWithoutTransition.js: Added.
+
 2019-09-23  Caio Lima  <[email protected]>
 
         Skip stress/regexp-unicode-surrogate-pair-increment-should-involve-length-check.js into ARMv7 and MIPS

Added: trunk/JSTests/stress/lazy-global-object-property-materialization-should-not-putDirectWithoutTransition.js (0 => 250264)


--- trunk/JSTests/stress/lazy-global-object-property-materialization-should-not-putDirectWithoutTransition.js	                        (rev 0)
+++ trunk/JSTests/stress/lazy-global-object-property-materialization-should-not-putDirectWithoutTransition.js	2019-09-23 23:33:36 UTC (rev 250264)
@@ -0,0 +1,13 @@
+//@ runDefault("--useConcurrentJIT=0")
+
+const x = {};
+for (let i = 0; i < 100; i++) {
+    const o = createGlobalObject();
+    x.__proto__ = o;
+    for (let j = 0; j < 10000; j++) {
+        o.y = 0;
+    }
+    with (x) {
+        new Uint8Array();
+    }
+}

Modified: trunk/Source/_javascript_Core/ChangeLog (250263 => 250264)


--- trunk/Source/_javascript_Core/ChangeLog	2019-09-23 23:00:56 UTC (rev 250263)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-09-23 23:33:36 UTC (rev 250264)
@@ -1,5 +1,16 @@
 2019-09-23  Mark Lam  <[email protected]>
 
+        Lazy JSGlobalObject property materialization should not use putDirectWithoutTransition.
+        https://bugs.webkit.org/show_bug.cgi?id=202122
+        <rdar://problem/55535249>
+
+        Reviewed by Yusuke Suzuki.
+
+        * runtime/JSGlobalObject.cpp:
+        (JSC::JSGlobalObject::init):
+
+2019-09-23  Mark Lam  <[email protected]>
+
         Reduce the amount of memory needed to store Options.
         https://bugs.webkit.org/show_bug.cgi?id=202105
 

Modified: trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp (250263 => 250264)


--- trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp	2019-09-23 23:00:56 UTC (rev 250263)
+++ trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp	2019-09-23 23:33:36 UTC (rev 250264)
@@ -598,7 +598,7 @@
             init.setPrototype(JS ## type ## ArrayPrototype::create(init.vm, init.global, JS ## type ## ArrayPrototype::createStructure(init.vm, init.global, init.global->m_typedArrayProto.get(init.global)))); \
             init.setStructure(JS ## type ## Array::createStructure(init.vm, init.global, init.prototype)); \
             init.setConstructor(JS ## type ## ArrayConstructor::create(init.vm, init.global, JS ## type ## ArrayConstructor::createStructure(init.vm, init.global, init.global->m_typedArraySuperConstructor.get(init.global)), init.prototype, #type "Array"_s, typedArrayConstructorAllocate ## type ## ArrayCodeGenerator(init.vm))); \
-            init.global->putDirectWithoutTransition(init.vm, init.vm.propertyNames->builtinNames().type ## ArrayPrivateName(), init.constructor, static_cast<unsigned>(PropertyAttribute::DontEnum)); \
+            init.global->putDirect(init.vm, init.vm.propertyNames->builtinNames().type ## ArrayPrivateName(), init.constructor, static_cast<unsigned>(PropertyAttribute::DontEnum)); \
         });
     FOR_EACH_TYPED_ARRAY_TYPE_EXCLUDING_DATA_VIEW(INIT_TYPED_ARRAY_LATER)
 #undef INIT_TYPED_ARRAY_LATER
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to