This class represents a CALL_METHOD instruction STYLE: dynamic / static(StaticInstance) Stack: ...:ref:arg1:arg2:...:argn ->: ...:result
This class represents a CALL_METHOD instruction STYLE: dynamic / static(StaticInstance) Stack: ...:ref:arg1:arg2:...:argn ->: ...:result
STYLE: static(StaticClass) Stack: ...:arg1:arg2:...:argn ->: ...:result
Call a primitive function.
Call a primitive function. Stack: ...:arg1:arg2:...:argn ->: ...:result
This class represents a CHECK_CAST instruction Stack: ...:ref(oldtype) ->: ...:ref(typ <=: oldtype)
This class represents a CJUMP instruction It compares the two values on the stack with the 'cond' test operator Stack: ...:value1:value2 ->: ...
Loads a constant on the stack.
Loads a constant on the stack. Stack: ... ->: ...:constant
This class represents a CREATE_ARRAY instruction Stack: ...:size_1:size_2:..:size_n ->: ...:arrayref
This class represents a CZJUMP instruction It compares the one value on the stack and zero with the 'cond' test operator Stack: ...:value: ->: ...
This class represents a DROP instruction Stack: ...:something ->: ...
This class represents a DUP instruction Stack: ...:something ->: ...:something:something
A place holder entry that allows us to parse class files with invoke dynamic instructions.
A place holder entry that allows us to parse class files with invoke dynamic instructions. Because the compiler doesn't yet really understand the behavior of invokeDynamic, this op acts as a poison pill. Any attempt to analyze this instruction will cause a failure. The only optimization that should ever look at non-Scala generated icode is the inliner, and it has been modified to not examine any method with invokeDynamic instructions. So if this poison pill ever causes problems then there's been a serious misunderstanding
This class represents a IS_INSTANCE instruction Stack: ...:ref ->: ...:result(boolean)
This class represents a method invocation style.
This class represents a JUMP instruction Stack: ...
This class represents a JUMP instruction Stack: ... ->: ...
Loads an element of an array.
Loads an element of an array. The array and the index should be on top of the stack. Stack: ...:array[a](Ref):index(Int) ->: ...:element(a)
Fake instruction.
Fake instruction. It designates the VM who pushes an exception on top of the /empty/ stack at the beginning of each exception handler. Note: Unlike other instructions, it consumes all elements on the stack! then pushes one exception instance.
Load a field on the stack.
Load a field on the stack. The object to which it refers should be on the stack. Stack: ...:ref (assuming isStatic = false) ->: ...:value
Load a local variable on the stack.
Load a local variable on the stack. It can be a method argument. Stack: ... ->: ...:value
This class represents a MONITOR_ENTER instruction Stack: ...:object(ref) ->: ...:
This class represents a MONITOR_EXIT instruction Stack: ...:object(ref) ->: ...:
Create a new instance of a class through the specified constructor Stack: ...:arg1:arg2:...:argn ->: ...:ref
This class represents a RETURN instruction Stack: ...
This class represents a RETURN instruction Stack: ... ->: ...
A local variable becomes visible at this point in code.
A local variable becomes visible at this point in code. Used only for generating precise local variable tables as debugging information.
A local variable leaves its scope at this point in code.
A local variable leaves its scope at this point in code. Used only for generating precise local variable tables as debugging information.
Store a value into an array at a specified index.
Store a value into an array at a specified index. Stack: ...:array[a](Ref):index(Int):value(a) ->: ...
Store a value into a field.
Store a value into a field. Stack: ...:ref:value (assuming isStatic=false) ->: ...
Store a value into a local variable.
Store a value into a local variable. It can be an argument. Stack: ...:value ->: ...
Store a value into the 'this' pointer.
Store a value into the 'this' pointer. Stack: ...:ref ->: ...
This class represents a SWITCH instruction Stack: ...:index(int) ->: ...:
This class represents a SWITCH instruction Stack: ...:index(int) ->: ...:
The tags array contains one entry per label, each entry consisting of an array of ints, any of which will trigger the jump to the corresponding label. labels should contain an extra label, which is the 'default' jump.
Special invoke:
Static(true) is used for calls to private members, ie invokespecial
on JVM.
Special invoke:
Static(true) is used for calls to private members, ie invokespecial
on JVM.
Static(false) is used for calls to class-level instance-less static methods, ie invokestatic
on JVM.
Call through super[mix].
Call through super[mix].
On JVM, translated to invokespecial
.
Loads "this" on top of the stack.
Loads "this" on top of the stack. Stack: ... ->: ...:ref
This class represents a THROW instruction Stack: ...:Throwable(Ref) ->: ...:
Test two objects for inequality.
Test two objects for inequality.
true
if !(this == that), false otherwise.
Equivalent to x.hashCode
except for boxed numeric types and null
.
Equivalent to x.hashCode
except for boxed numeric types and null
.
For numerics, it returns a hash value which is consistent
with value equality: if two value type instances compare
as true, then ## will produce the same hash value for each
of them.
For null
returns a hashcode where null.hashCode
throws a
NullPointerException
.
a hash value consistent with ==
The expression x == that
is equivalent to if (x eq null) that eq null else x.equals(that)
.
The expression x == that
is equivalent to if (x eq null) that eq null else x.equals(that)
.
true
if the receiver object is equivalent to the argument; false
otherwise.
Virtual calls.
Virtual calls.
On JVM, translated to either invokeinterface
or invokevirtual
.
Cast the receiver object to be of type T0
.
Cast the receiver object to be of type T0
.
Note that the success of a cast at runtime is modulo Scala's erasure semantics.
Therefore the expression 1.asInstanceOf[String]
will throw a ClassCastException
at
runtime, while the expression List(1).asInstanceOf[List[String]]
will not.
In the latter example, because the type argument is erased as part of compilation it is
not possible to check whether the contents of the list are of the requested type.
the receiver object.
ClassCastException
if the receiver object is not an instance of the erasure of type T0
.
Create a copy of the receiver object.
Create a copy of the receiver object.
The default implementation of the clone
method is platform dependent.
a copy of the receiver object.
not specified by SLS as a member of AnyRef
Tests whether the argument (that
) is a reference to the receiver object (this
).
Tests whether the argument (that
) is a reference to the receiver object (this
).
The eq
method implements an equivalence relation on
non-null instances of AnyRef
, and has three additional properties:
x
and y
of type AnyRef
, multiple invocations of
x.eq(y)
consistently returns true
or consistently returns false
.x
of type AnyRef
, x.eq(null)
and null.eq(x)
returns false
.null.eq(null)
returns true
. When overriding the equals
or hashCode
methods, it is important to ensure that their behavior is
consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2
), they
should be equal to each other (o1 == o2
) and they should hash to the same value (o1.hashCode == o2.hashCode
).
true
if the argument is a reference to the receiver object; false
otherwise.
The equality method for reference types.
Called by the garbage collector on the receiver object when there are no more references to the object.
Called by the garbage collector on the receiver object when there are no more references to the object.
The details of when and if the finalize
method is invoked, as
well as the interaction between finalize
and non-local returns
and exceptions, are all platform dependent.
not specified by SLS as a member of AnyRef
A representation that corresponds to the dynamic class of the receiver object.
A representation that corresponds to the dynamic class of the receiver object.
The nature of the representation is platform dependent.
a representation that corresponds to the dynamic class of the receiver object.
not specified by SLS as a member of AnyRef
The hashCode method for reference types.
Test whether the dynamic type of the receiver object is T0
.
Test whether the dynamic type of the receiver object is T0
.
Note that the result of the test is modulo Scala's erasure semantics.
Therefore the expression 1.isInstanceOf[String]
will return false
, while the
expression List(1).isInstanceOf[List[String]]
will return true
.
In the latter example, because the type argument is erased as part of compilation it is
not possible to check whether the contents of the list are of the specified type.
true
if the receiver object is an instance of erasure of type T0
; false
otherwise.
Equivalent to !(this eq that)
.
Equivalent to !(this eq that)
.
true
if the argument is not a reference to the receiver object; false
otherwise.
Wakes up a single thread that is waiting on the receiver object's monitor.
Wakes up a single thread that is waiting on the receiver object's monitor.
not specified by SLS as a member of AnyRef
Wakes up all threads that are waiting on the receiver object's monitor.
Wakes up all threads that are waiting on the receiver object's monitor.
not specified by SLS as a member of AnyRef
Creates a String representation of this object.
Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.
a String representation of the object.