Modified: trunk/Source/_javascript_Core/bytecode/ObjectPropertyConditionSet.cpp (292681 => 292682)
--- trunk/Source/_javascript_Core/bytecode/ObjectPropertyConditionSet.cpp 2022-04-09 20:26:16 UTC (rev 292681)
+++ trunk/Source/_javascript_Core/bytecode/ObjectPropertyConditionSet.cpp 2022-04-09 22:25:24 UTC (rev 292682)
@@ -102,7 +102,7 @@
if (!isValid() || !other.isValid())
return invalid();
- Vector<ObjectPropertyCondition> result;
+ Vector<ObjectPropertyCondition, 16> result;
if (!isEmpty())
result.append(m_data->begin(), m_data->size());
@@ -121,7 +121,7 @@
result.append(newCondition);
}
- return create(WTFMove(result));
+ return ObjectPropertyConditionSet::create(WTFMove(result));
}
bool ObjectPropertyConditionSet::structuresEnsureValidity() const
@@ -247,7 +247,7 @@
ObjectPropertyConditionSet generateConditions(
VM& vm, JSGlobalObject* globalObject, Structure* structure, JSObject* prototype, const Functor& functor)
{
- Vector<ObjectPropertyCondition> conditions;
+ Vector<ObjectPropertyCondition, 8> conditions;
for (;;) {
if (ObjectPropertyConditionSetInternal::verbose)
@@ -315,7 +315,7 @@
{
return generateConditions(
vm, globalObject, headStructure, nullptr,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
ObjectPropertyCondition result =
generateCondition(vm, owner, object, uid, PropertyCondition::Absence, Concurrency::MainThread);
if (!result)
@@ -330,7 +330,7 @@
{
return generateConditions(
vm, globalObject, headStructure, nullptr,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
ObjectPropertyCondition result =
generateCondition(vm, owner, object, uid, PropertyCondition::AbsenceOfSetEffect, Concurrency::MainThread);
if (!result)
@@ -346,7 +346,7 @@
{
return generateConditions(
vm, globalObject, headStructure, prototype,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
PropertyCondition::Kind kind =
object == prototype ? PropertyCondition::Presence : PropertyCondition::Absence;
ObjectPropertyCondition result =
@@ -364,7 +364,7 @@
{
return generateConditions(
vm, globalObject, headStructure, prototype,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
auto kind = PropertyCondition::Absence;
if (object == prototype) {
Structure* structure = object->structure(vm);
@@ -415,7 +415,7 @@
dataLog("Searching for prototype ", JSValue(prototype), " starting with structure ", RawPointer(headStructure), " with shouldHit = ", shouldHit, "\n");
ObjectPropertyConditionSet result = generateConditions(
vm, globalObject, headStructure, shouldHit ? prototype : nullptr,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
if (ObjectPropertyConditionSetInternal::verbose)
dataLog("Encountered object: ", RawPointer(object), "\n");
if (object == prototype) {
@@ -444,7 +444,7 @@
VM& vm, JSGlobalObject* globalObject, Structure* headStructure, JSObject* prototype, UniquedStringImpl* uid)
{
return generateConditions(vm, globalObject, headStructure, prototype,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
PropertyCondition::Kind kind =
object == prototype ? PropertyCondition::Equivalence : PropertyCondition::Absence;
ObjectPropertyCondition result = generateCondition(vm, nullptr, object, uid, kind, Concurrency::ConcurrentThread);
@@ -460,7 +460,7 @@
{
return generateConditions(
vm, globalObject, headStructure, nullptr,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
ObjectPropertyCondition result = generateCondition(vm, nullptr, object, uid, PropertyCondition::Absence, Concurrency::ConcurrentThread);
if (!result)
return false;
@@ -474,7 +474,7 @@
{
return generateConditions(
vm, globalObject, headStructure, nullptr,
- [&] (Vector<ObjectPropertyCondition>& conditions, JSObject* object) -> bool {
+ [&](auto& conditions, JSObject* object) -> bool {
ObjectPropertyCondition result =
generateCondition(vm, nullptr, object, uid, PropertyCondition::AbsenceOfSetEffect, Concurrency::ConcurrentThread);
if (!result)