maTe Virtual Machine Native Method Indices
Methods of
predefined
types in maTe
are implemented natively and
invoked via the
invokenative instruction.
This instruction takes a native method index as an operand.
These indices are static, determined at the the time the VM is constructed.
The following provides the mapping of native methods to indices.
The methods are listed using their "munged" names.
The munged name consists of the class name, followed by the method name,
followed by the types of the parameters.
Dollar signs separate the components of the name.
- index 00: Object_constructor
- index 01: Object$equals$Object
- index 02: Object$hashCode
- index 03: Object$toString
- index 04: Integer_constructor
- index 05: Integer_constructor$Integer
- index 06: Integer$add$Integer
- index 07: Integer$subtract$Integer
- index 08: Integer$multiply$Integer
- index 09: Integer$divide$Integer
- index 10: Integer$greaterThan$Integer
- index 11: Integer$lessThan$Integer
- index 12: Integer$not
- index 13: Integer$minus
- index 14: Integer$operator+$Integer
- index 15: Integer$operator-$Integer
- index 16: Integer$operator*$Integer
- index 17: Integer$operator/$Integer
- index 18: Integer$operator>$Integer
- index 19: Integer$operator<$Integer
- index 20: Integer$operator!
- index 21: Integer$operator-
- index 22: Integer$equals$Object
- index 23: Integer$hashCode
- index 24: Integer$toString
- index 25: String_constructor$String
- index 26: String$length
- index 27: String$substr$Integer$Integer
- index 28: String$toInteger
- index 29: String$concat$String
- index 30: String$operator+$String
- index 31: String$operator>$String
- index 32: String$operator<$String
- index 33: String$hashCode
- index 34: String$equals$Object
- index 35: String$toString
- index 36: Table_constructor
- index 37: Table_constructor$Integer
- index 38: Table$get$Object
- index 39: Table$put$Object$Object
- index 40: Table$remove$Object
- index 41: Table$firstKey
- index 42: Table$nextKey
Last modified on March 16, 2010.
Comments and questions should be directed to
hatcher@unh.edu