- case LazyOperand:
- return u.lazyOperand.codeBlock->lazyOperandValueProfiles().add(
- LazyOperandValueProfileKey(
- u.lazyOperand.bytecodeOffset, u.lazyOperand.operand))->specFailBucket(index);
+ case LazyOperand: {
+ LazyOperandValueProfileKey key(u.lazyOperand.bytecodeOffset, VirtualRegister(u.lazyOperand.operand));
+
+ ConcurrentJITLocker locker(u.lazyOperand.codeBlock->m_lock);
+ LazyOperandValueProfile* profile =
+ u.lazyOperand.codeBlock->lazyOperandValueProfiles().add(locker, key);
+ return profile->specFailBucket(index);
+ }