Changeset 268656 in webkit for trunk/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp
- Timestamp:
- Oct 18, 2020, 6:24:38 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llint/LLIntSlowPaths.cpp
r268247 r268656 1088 1088 ASSERT(subscript.isSymbol()); 1089 1089 1090 baseValue.requireObjectCoercible(globalObject);1090 JSObject* baseObject = baseValue.toObject(globalObject); 1091 1091 LLINT_CHECK_EXCEPTION(); 1092 1092 auto property = subscript.toPropertyKey(globalObject); … … 1094 1094 ASSERT(property.isPrivateName()); 1095 1095 1096 PropertySlot slot(base Value, PropertySlot::InternalMethodType::GetOwnProperty);1097 asObject(baseValue)->getPrivateField(globalObject, property, slot);1096 PropertySlot slot(baseObject, PropertySlot::InternalMethodType::GetOwnProperty); 1097 baseObject->getPrivateField(globalObject, property, slot); 1098 1098 LLINT_CHECK_EXCEPTION(); 1099 1099 1100 if (!LLINT_ALWAYS_ACCESS_SLOW && slot.isCacheable() && !slot.isUnset()) {1100 if (!LLINT_ALWAYS_ACCESS_SLOW && baseValue.isCell() && slot.isCacheable() && !slot.isUnset()) { 1101 1101 auto& metadata = bytecode.metadata(codeBlock); 1102 1102 { … … 1208 1208 JSValue value = getOperand(callFrame, bytecode.m_value); 1209 1209 1210 JSObject* baseObject = baseValue.toObject(globalObject); 1211 LLINT_CHECK_EXCEPTION(); 1212 1210 1213 auto property = subscript.toPropertyKey(globalObject); 1211 1214 LLINT_CHECK_EXCEPTION(); … … 1217 1220 // and class methods are always in strict mode 1218 1221 const bool isStrictMode = true; 1219 auto baseObject = asObject(baseValue);1220 1222 PutPropertySlot slot(baseObject, isStrictMode); 1221 1223 if (bytecode.m_putKind.isDefine())
Note:
See TracChangeset
for help on using the changeset viewer.