Ejemplo n.º 1
0
 def store(self, w_self, n0, w_value):
     AbstractGenericShadow.store(self, w_self, n0, w_value)
     if n0 == constants.METHODDICT_VALUES_INDEX:
         self.setup_notification()
     if n0 >= constants.METHODDICT_NAMES_INDEX:
         # the caller / user cannot be expected to add the compiledMethod to the observee next (as indicated above)
         # in case of clone / copyFrom the compiledMethod is already contained, so a sync is necessary here too
         self.sync_method_cache()
Ejemplo n.º 2
0
 def store(self, w_self, n0, w_value):
     AbstractGenericShadow.store(self, w_self, n0, w_value)
     if n0 == constants.METHODDICT_VALUES_INDEX:
         self.setup_notification()
     if n0 >= constants.METHODDICT_NAMES_INDEX:
         # the caller / user cannot be expected to add the compiledMethod to the observee next (as indicated above)
         # in case of clone / copyFrom the compiledMethod is already contained, so a sync is necessary here too
         self.sync_method_cache()