Scala primitive operations are represented as methods in
AnyVal subclasses. Here we demultiplex them by providing a mapping
from their symbols to integers. Different methods exist for
different value types, but with the same meaning (like plus, minus,
etc.). They will all be mapped to the same int.
Note: The three equal methods have the following semantics:
"==" checks for
null, and if non-null, calls
(class: Any; modifier: final). Primitive:
"eq" usual reference comparison
(class: AnyRef; modifier: final). Primitive:
"equals" user-defined equality (Java semantics)
(class: Object; modifier: none). Primitive:
Inspired from the
Return the code for the given symbol.
Return the primitive code of the given operation. If the operation is an array get/set, we inspect the type of the receiver to demux the operation.
Initialize the primitive map