Title: [246837] trunk/Source/_javascript_Core
Revision
246837
Author
[email protected]
Date
2019-06-26 09:49:13 -0700 (Wed, 26 Jun 2019)

Log Message

remove unneeded didBecomePrototype() calls
https://bugs.webkit.org/show_bug.cgi?id=199221

Reviewed by Saam Barati.

Since we now set didBecomePrototype in Structure::create we don't
need to set it expliticly in most of our finishCreation
methods. The only exception to this is object prototype, which we
set as the prototype of function prototype late (via
setPrototypeWithoutTransition).

* inspector/JSInjectedScriptHostPrototype.cpp:
(Inspector::JSInjectedScriptHostPrototype::finishCreation):
* inspector/JSJavaScriptCallFramePrototype.cpp:
(Inspector::JSJavaScriptCallFramePrototype::finishCreation):
* runtime/ArrayIteratorPrototype.cpp:
(JSC::ArrayIteratorPrototype::finishCreation):
* runtime/ArrayPrototype.cpp:
(JSC::ArrayPrototype::finishCreation):
* runtime/AsyncFromSyncIteratorPrototype.cpp:
(JSC::AsyncFromSyncIteratorPrototype::finishCreation):
* runtime/AsyncFunctionPrototype.cpp:
(JSC::AsyncFunctionPrototype::finishCreation):
* runtime/AsyncGeneratorFunctionPrototype.cpp:
(JSC::AsyncGeneratorFunctionPrototype::finishCreation):
* runtime/AsyncGeneratorPrototype.cpp:
(JSC::AsyncGeneratorPrototype::finishCreation):
* runtime/AsyncIteratorPrototype.cpp:
(JSC::AsyncIteratorPrototype::finishCreation):
* runtime/GeneratorFunctionPrototype.cpp:
(JSC::GeneratorFunctionPrototype::finishCreation):
* runtime/GeneratorPrototype.cpp:
(JSC::GeneratorPrototype::finishCreation):
* runtime/IteratorPrototype.cpp:
(JSC::IteratorPrototype::finishCreation):
* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
* runtime/MapIteratorPrototype.cpp:
(JSC::MapIteratorPrototype::finishCreation):
* runtime/MapPrototype.cpp:
(JSC::MapPrototype::finishCreation):
* runtime/ObjectPrototype.cpp:
(JSC::ObjectPrototype::finishCreation):
* runtime/RegExpStringIteratorPrototype.cpp:
(JSC::RegExpStringIteratorPrototype::finishCreation):
* runtime/SetIteratorPrototype.cpp:
(JSC::SetIteratorPrototype::finishCreation):
* runtime/SetPrototype.cpp:
(JSC::SetPrototype::finishCreation):
* runtime/StringIteratorPrototype.cpp:
(JSC::StringIteratorPrototype::finishCreation):
* runtime/WeakMapPrototype.cpp:
(JSC::WeakMapPrototype::finishCreation):
* runtime/WeakObjectRefPrototype.cpp:
(JSC::WeakObjectRefPrototype::finishCreation):
* runtime/WeakSetPrototype.cpp:
(JSC::WeakSetPrototype::finishCreation):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (246836 => 246837)


--- trunk/Source/_javascript_Core/ChangeLog	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-06-26 16:49:13 UTC (rev 246837)
@@ -1,3 +1,63 @@
+2019-06-26  Keith Miller  <[email protected]>
+
+        remove unneeded didBecomePrototype() calls
+        https://bugs.webkit.org/show_bug.cgi?id=199221
+
+        Reviewed by Saam Barati.
+
+        Since we now set didBecomePrototype in Structure::create we don't
+        need to set it expliticly in most of our finishCreation
+        methods. The only exception to this is object prototype, which we
+        set as the prototype of function prototype late (via
+        setPrototypeWithoutTransition).
+
+        * inspector/JSInjectedScriptHostPrototype.cpp:
+        (Inspector::JSInjectedScriptHostPrototype::finishCreation):
+        * inspector/JSJavaScriptCallFramePrototype.cpp:
+        (Inspector::JSJavaScriptCallFramePrototype::finishCreation):
+        * runtime/ArrayIteratorPrototype.cpp:
+        (JSC::ArrayIteratorPrototype::finishCreation):
+        * runtime/ArrayPrototype.cpp:
+        (JSC::ArrayPrototype::finishCreation):
+        * runtime/AsyncFromSyncIteratorPrototype.cpp:
+        (JSC::AsyncFromSyncIteratorPrototype::finishCreation):
+        * runtime/AsyncFunctionPrototype.cpp:
+        (JSC::AsyncFunctionPrototype::finishCreation):
+        * runtime/AsyncGeneratorFunctionPrototype.cpp:
+        (JSC::AsyncGeneratorFunctionPrototype::finishCreation):
+        * runtime/AsyncGeneratorPrototype.cpp:
+        (JSC::AsyncGeneratorPrototype::finishCreation):
+        * runtime/AsyncIteratorPrototype.cpp:
+        (JSC::AsyncIteratorPrototype::finishCreation):
+        * runtime/GeneratorFunctionPrototype.cpp:
+        (JSC::GeneratorFunctionPrototype::finishCreation):
+        * runtime/GeneratorPrototype.cpp:
+        (JSC::GeneratorPrototype::finishCreation):
+        * runtime/IteratorPrototype.cpp:
+        (JSC::IteratorPrototype::finishCreation):
+        * runtime/JSGlobalObject.cpp:
+        (JSC::JSGlobalObject::init):
+        * runtime/MapIteratorPrototype.cpp:
+        (JSC::MapIteratorPrototype::finishCreation):
+        * runtime/MapPrototype.cpp:
+        (JSC::MapPrototype::finishCreation):
+        * runtime/ObjectPrototype.cpp:
+        (JSC::ObjectPrototype::finishCreation):
+        * runtime/RegExpStringIteratorPrototype.cpp:
+        (JSC::RegExpStringIteratorPrototype::finishCreation):
+        * runtime/SetIteratorPrototype.cpp:
+        (JSC::SetIteratorPrototype::finishCreation):
+        * runtime/SetPrototype.cpp:
+        (JSC::SetPrototype::finishCreation):
+        * runtime/StringIteratorPrototype.cpp:
+        (JSC::StringIteratorPrototype::finishCreation):
+        * runtime/WeakMapPrototype.cpp:
+        (JSC::WeakMapPrototype::finishCreation):
+        * runtime/WeakObjectRefPrototype.cpp:
+        (JSC::WeakObjectRefPrototype::finishCreation):
+        * runtime/WeakSetPrototype.cpp:
+        (JSC::WeakSetPrototype::finishCreation):
+
 2019-06-25  Keith Miller  <[email protected]>
 
         Structure::create should call didBecomePrototype()

Modified: trunk/Source/_javascript_Core/inspector/JSInjectedScriptHostPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/inspector/JSInjectedScriptHostPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/inspector/JSInjectedScriptHostPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -61,8 +61,7 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
-
+    
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("subtype", jsInjectedScriptHostPrototypeFunctionSubtype, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("functionDetails", jsInjectedScriptHostPrototypeFunctionFunctionDetails, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("getInternalProperties", jsInjectedScriptHostPrototypeFunctionGetInternalProperties, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);

Modified: trunk/Source/_javascript_Core/inspector/JSJavaScriptCallFramePrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/inspector/JSJavaScriptCallFramePrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/inspector/JSJavaScriptCallFramePrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -57,8 +57,7 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
-
+    
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("evaluateWithScopeExtension", jsJavaScriptCallFramePrototypeFunctionEvaluateWithScopeExtension, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("scopeDescriptions", jsJavaScriptCallFramePrototypeFunctionScopeDescriptions, static_cast<unsigned>(PropertyAttribute::DontEnum), 0);
 

Modified: trunk/Source/_javascript_Core/runtime/ArrayIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/ArrayIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/ArrayIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -45,7 +45,6 @@
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "Array Iterator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
     JSC_BUILTIN_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->next, arrayIteratorPrototypeNextCodeGenerator, static_cast<unsigned>(PropertyAttribute::DontEnum));
-    didBecomePrototype();
 }
 
 // ------------------------------ Array Functions ----------------------------

Modified: trunk/Source/_javascript_Core/runtime/ArrayPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/ArrayPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/ArrayPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -81,7 +81,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     putDirectWithoutTransition(vm, vm.propertyNames->toString, globalObject->arrayProtoToStringFunction(), static_cast<unsigned>(PropertyAttribute::DontEnum));
     putDirectWithoutTransition(vm, vm.propertyNames->builtinNames().valuesPublicName(), globalObject->arrayProtoValuesFunction(), static_cast<unsigned>(PropertyAttribute::DontEnum));

Modified: trunk/Source/_javascript_Core/runtime/AsyncFromSyncIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/AsyncFromSyncIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/AsyncFromSyncIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -54,7 +54,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 }
 
 AsyncFromSyncIteratorPrototype* AsyncFromSyncIteratorPrototype::create(VM& vm, JSGlobalObject*, Structure* structure)

Modified: trunk/Source/_javascript_Core/runtime/AsyncFunctionPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/AsyncFunctionPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/AsyncFunctionPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -50,7 +50,6 @@
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), PropertyAttribute::DontDelete | PropertyAttribute::ReadOnly | PropertyAttribute::DontEnum);
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "AsyncFunction"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/AsyncGeneratorFunctionPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/AsyncGeneratorFunctionPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/AsyncGeneratorFunctionPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -50,7 +50,6 @@
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), PropertyAttribute::DontDelete | PropertyAttribute::ReadOnly | PropertyAttribute::DontEnum);
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "AsyncGeneratorFunction"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/AsyncGeneratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/AsyncGeneratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/AsyncGeneratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -49,7 +49,6 @@
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "AsyncGenerator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/AsyncIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/AsyncIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/AsyncIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -39,7 +39,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSFunction* asyncIteratorPrototypeFunction = JSFunction::create(vm, asyncIteratorPrototypeSymbolAsyncIteratorGetterCodeGenerator(vm), globalObject);
     putDirectWithoutTransition(vm, vm.propertyNames->asyncIteratorSymbol, asyncIteratorPrototypeFunction, static_cast<unsigned>(PropertyAttribute::DontEnum));

Modified: trunk/Source/_javascript_Core/runtime/GeneratorFunctionPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/GeneratorFunctionPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/GeneratorFunctionPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -52,7 +52,6 @@
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(0), PropertyAttribute::ReadOnly | PropertyAttribute::DontEnum);
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "GeneratorFunction"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/GeneratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/GeneratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/GeneratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -49,7 +49,6 @@
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "Generator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/IteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/IteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/IteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -39,7 +39,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSC_BUILTIN_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->iteratorSymbol, iteratorPrototypeSymbolIteratorGetterCodeGenerator, static_cast<unsigned>(PropertyAttribute::DontEnum));
 }

Modified: trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/JSGlobalObject.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -533,6 +533,8 @@
     m_nullGetterFunction.set(vm, this, NullGetterFunction::create(vm, NullGetterFunction::createStructure(vm, this, m_functionPrototype.get())));
     m_nullSetterFunction.set(vm, this, NullSetterFunction::create(vm, NullSetterFunction::createStructure(vm, this, m_functionPrototype.get())));
     m_objectPrototype.set(vm, this, ObjectPrototype::create(vm, this, ObjectPrototype::createStructure(vm, this, jsNull())));
+    // We have to manually set this here because we make it a prototype without transition below.
+    m_objectPrototype.get()->didBecomePrototype();
     GetterSetter* protoAccessor = GetterSetter::create(vm, this,
         JSFunction::create(vm, this, 0, makeString("get ", vm.propertyNames->underscoreProto.string()), globalFuncProtoGetter, UnderscoreProtoIntrinsic),
         JSFunction::create(vm, this, 0, makeString("set ", vm.propertyNames->underscoreProto.string()), globalFuncProtoSetter));

Modified: trunk/Source/_javascript_Core/runtime/MapIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/MapIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/MapIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -37,7 +37,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "Map Iterator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
     JSC_BUILTIN_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->next, mapIteratorPrototypeNextCodeGenerator, static_cast<unsigned>(PropertyAttribute::DontEnum));

Modified: trunk/Source/_javascript_Core/runtime/MapPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/MapPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/MapPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -60,7 +60,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->clear, mapProtoFuncClear, static_cast<unsigned>(PropertyAttribute::DontEnum), 0);
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->deleteKeyword, mapProtoFuncDelete, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);

Modified: trunk/Source/_javascript_Core/runtime/ObjectPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/ObjectPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/ObjectPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -56,7 +56,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
     
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->toString, objectProtoFuncToString, static_cast<unsigned>(PropertyAttribute::DontEnum), 0);
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->toLocaleString, objectProtoFuncToLocaleString, static_cast<unsigned>(PropertyAttribute::DontEnum), 0);

Modified: trunk/Source/_javascript_Core/runtime/RegExpStringIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/RegExpStringIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/RegExpStringIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -45,7 +45,6 @@
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "RegExp String Iterator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
     JSC_BUILTIN_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->next, regExpStringIteratorPrototypeNextCodeGenerator, static_cast<unsigned>(PropertyAttribute::DontEnum));
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/SetIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/SetIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/SetIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -37,7 +37,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSC_BUILTIN_FUNCTION_WITHOUT_TRANSITION("next", setIteratorPrototypeNextCodeGenerator, static_cast<unsigned>(PropertyAttribute::DontEnum));
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "Set Iterator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);

Modified: trunk/Source/_javascript_Core/runtime/SetPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/SetPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/SetPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -59,7 +59,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSC_NATIVE_INTRINSIC_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->add, setProtoFuncAdd, static_cast<unsigned>(PropertyAttribute::DontEnum), 1, JSSetAddIntrinsic);
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->clear, setProtoFuncClear, static_cast<unsigned>(PropertyAttribute::DontEnum), 0);

Modified: trunk/Source/_javascript_Core/runtime/StringIteratorPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/StringIteratorPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/StringIteratorPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -43,7 +43,6 @@
     ASSERT(inherits(vm, info()));
     putDirectWithoutTransition(vm, vm.propertyNames->toStringTagSymbol, jsString(&vm, "String Iterator"), PropertyAttribute::DontEnum | PropertyAttribute::ReadOnly);
     JSC_BUILTIN_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->next, stringIteratorPrototypeNextCodeGenerator, static_cast<unsigned>(PropertyAttribute::DontEnum));
-    didBecomePrototype();
 }
 
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/runtime/WeakMapPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/WeakMapPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/WeakMapPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -42,7 +42,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->deleteKeyword, protoFuncWeakMapDelete, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
     JSC_NATIVE_INTRINSIC_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->get, protoFuncWeakMapGet, static_cast<unsigned>(PropertyAttribute::DontEnum), 1, JSWeakMapGetIntrinsic);

Modified: trunk/Source/_javascript_Core/runtime/WeakObjectRefPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/WeakObjectRefPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/WeakObjectRefPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -40,7 +40,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     // FIXME: It wouldn't be hard to make this an intrinsic.
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->deref, protoFuncWeakRefDeref, static_cast<unsigned>(PropertyAttribute::DontEnum), 0);

Modified: trunk/Source/_javascript_Core/runtime/WeakSetPrototype.cpp (246836 => 246837)


--- trunk/Source/_javascript_Core/runtime/WeakSetPrototype.cpp	2019-06-26 16:01:22 UTC (rev 246836)
+++ trunk/Source/_javascript_Core/runtime/WeakSetPrototype.cpp	2019-06-26 16:49:13 UTC (rev 246837)
@@ -41,7 +41,6 @@
 {
     Base::finishCreation(vm);
     ASSERT(inherits(vm, info()));
-    didBecomePrototype();
 
     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->deleteKeyword, protoFuncWeakSetDelete, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
     JSC_NATIVE_INTRINSIC_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->has, protoFuncWeakSetHas, static_cast<unsigned>(PropertyAttribute::DontEnum), 1, JSWeakSetHasIntrinsic);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to