예제 #1
0
 @Specialization
 protected void doObject(
     VirtualFrame frame, Object value, MaterializedFrame enclosingFrame, FrameSlot frameSlot) {
   MaterializedFrame profiledFrame = enclosingFrameProfile.profile(enclosingFrame);
   Object newValue =
       shareObjectValue(
           profiledFrame, frameSlot, storedObjectProfile.profile(value), getMode(), true);
   FrameSlotChangeMonitor.setObjectAndInvalidate(
       profiledFrame, frameSlot, newValue, true, invalidateProfile);
 }
예제 #2
0
 @Specialization(guards = "isIntegerKind(frame, frameSlot)")
 protected void doInteger(
     VirtualFrame frame, int value, MaterializedFrame enclosingFrame, FrameSlot frameSlot) {
   FrameSlotChangeMonitor.setIntAndInvalidate(
       enclosingFrameProfile.profile(enclosingFrame), frameSlot, value, true, invalidateProfile);
 }
예제 #3
0
 @Specialization(guards = "isDoubleKind(frame, frameSlot)")
 protected void doDouble(
     VirtualFrame frame, double value, MaterializedFrame enclosingFrame, FrameSlot frameSlot) {
   FrameSlotChangeMonitor.setDoubleAndInvalidate(
       enclosingFrameProfile.profile(enclosingFrame), frameSlot, value, true, invalidateProfile);
 }
예제 #4
0
 @Specialization(guards = "isLogicalKind(frame, frameSlot)")
 protected void doLogical(
     VirtualFrame frame, byte value, MaterializedFrame enclosingFrame, FrameSlot frameSlot) {
   FrameSlotChangeMonitor.setByteAndInvalidate(
       enclosingFrameProfile.profile(enclosingFrame), frameSlot, value, true, invalidateProfile);
 }