2 # A SendSite exists in the InstructionSequence wherever you would call a
3 # method (send a message). When searching for an Executable to run, the
4 # SendSite is examined first. If there is an Executable stored inside it, it
5 # is used. Otherwise the MethodTable is consulted (see MethodTable) and the
6 # SendSite is filled in with that Executable.
14 Ruby.primitive :sendsite_create
15 raise PrimitiveFailure, "primitive failed"
19 Ruby.primitive :sendsite_at
20 raise PrimitiveFailure, "primitive failed"
52 # Sets the sender field on the SendSite.
53 # +cm+ must be a CompiledMethod object
55 Ruby.primitive :sendsite_set_sender
56 raise PrimitiveFailure, "primitive failed"
60 "#<SendSite:0x#{object_id.to_s(16)} name=#{name} hits=#{hits} misses=#{misses}>"