Title: [292657] branches/safari-613-branch/Source/_javascript_Core
- Revision
- 292657
- Author
- [email protected]
- Date
- 2022-04-08 17:13:54 -0700 (Fri, 08 Apr 2022)
Log Message
Cherry-pick r292009. rdar://problem/90918765
The lazy symbolObjectStructure should be realized before we allocate a SymbolObject.
https://bugs.webkit.org/show_bug.cgi?id=238474
<rdar://problem/90918765>
Reviewed by Yusuke Suzuki and Saam Barati.
We should not be allocating the symbolObjectStructure while in the middle of
initializing a SymbolObject.
* runtime/Symbol.cpp:
(JSC::Symbol::toObject const):
(JSC::SymbolObject::create): Deleted.
* runtime/SymbolObject.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/_javascript_Core/ChangeLog (292656 => 292657)
--- branches/safari-613-branch/Source/_javascript_Core/ChangeLog 2022-04-09 00:13:51 UTC (rev 292656)
+++ branches/safari-613-branch/Source/_javascript_Core/ChangeLog 2022-04-09 00:13:54 UTC (rev 292657)
@@ -1,5 +1,43 @@
2022-04-07 Alan Coon <[email protected]>
+ Cherry-pick r292009. rdar://problem/90918765
+
+ The lazy symbolObjectStructure should be realized before we allocate a SymbolObject.
+ https://bugs.webkit.org/show_bug.cgi?id=238474
+ <rdar://problem/90918765>
+
+ Reviewed by Yusuke Suzuki and Saam Barati.
+
+ We should not be allocating the symbolObjectStructure while in the middle of
+ initializing a SymbolObject.
+
+ * runtime/Symbol.cpp:
+ (JSC::Symbol::toObject const):
+ (JSC::SymbolObject::create): Deleted.
+ * runtime/SymbolObject.h:
+
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@292009 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-03-28 Mark Lam <[email protected]>
+
+ The lazy symbolObjectStructure should be realized before we allocate a SymbolObject.
+ https://bugs.webkit.org/show_bug.cgi?id=238474
+ <rdar://problem/90918765>
+
+ Reviewed by Yusuke Suzuki and Saam Barati.
+
+ We should not be allocating the symbolObjectStructure while in the middle of
+ initializing a SymbolObject.
+
+ * runtime/Symbol.cpp:
+ (JSC::Symbol::toObject const):
+ (JSC::SymbolObject::create): Deleted.
+ * runtime/SymbolObject.h:
+
+2022-04-07 Alan Coon <[email protected]>
+
Cherry-pick r291602. rdar://problem/89822922
Fix bug in Relationship::mergeImpl
Modified: branches/safari-613-branch/Source/_javascript_Core/runtime/Symbol.cpp (292656 => 292657)
--- branches/safari-613-branch/Source/_javascript_Core/runtime/Symbol.cpp 2022-04-09 00:13:51 UTC (rev 292656)
+++ branches/safari-613-branch/Source/_javascript_Core/runtime/Symbol.cpp 2022-04-09 00:13:54 UTC (rev 292657)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012-2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2012-2022 Apple Inc. All rights reserved.
* Copyright (C) 2015-2016 Yusuke Suzuki <[email protected]>.
*
* Redistribution and use in source and binary forms, with or without
@@ -60,13 +60,6 @@
vm.symbolImplToSymbolMap.set(&m_privateName.uid(), this);
}
-inline SymbolObject* SymbolObject::create(VM& vm, JSGlobalObject* globalObject, Symbol* symbol)
-{
- SymbolObject* object = new (NotNull, allocateCell<SymbolObject>(vm)) SymbolObject(vm, globalObject->symbolObjectStructure());
- object->finishCreation(vm, symbol);
- return object;
-}
-
JSValue Symbol::toPrimitive(JSGlobalObject*, PreferredPrimitiveType) const
{
return const_cast<Symbol*>(this);
@@ -74,7 +67,7 @@
JSObject* Symbol::toObject(JSGlobalObject* globalObject) const
{
- return SymbolObject::create(globalObject->vm(), globalObject, const_cast<Symbol*>(this));
+ return SymbolObject::create(globalObject->vm(), globalObject->symbolObjectStructure(), const_cast<Symbol*>(this));
}
double Symbol::toNumber(JSGlobalObject* globalObject) const
Modified: branches/safari-613-branch/Source/_javascript_Core/runtime/SymbolObject.h (292656 => 292657)
--- branches/safari-613-branch/Source/_javascript_Core/runtime/SymbolObject.h 2022-04-09 00:13:51 UTC (rev 292656)
+++ branches/safari-613-branch/Source/_javascript_Core/runtime/SymbolObject.h 2022-04-09 00:13:54 UTC (rev 292657)
@@ -49,7 +49,6 @@
object->finishCreation(vm, symbol);
return object;
}
- static SymbolObject* create(VM&, JSGlobalObject*, Symbol*);
DECLARE_EXPORT_INFO;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes