You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used for implementing native methods. Allows for purely arbitrary modification to the control, stash, and environment via an external handler function.
7
+
8
+
All native functions are expected to respect Java method call preconditions and postconditions, with the exception of returning. When a native function is called, it can expect the following.
9
+
10
+
Preconditions: environment has been initialised for the current function call.
11
+
12
+
Postconditions: returned result must be pushed onto the top of the stash.
13
+
14
+
The current implementation automatically injects a return instruction after the external handler function call ends.
// for native methods (uses new proposed format) with parameter names
187
+
// because native functions must retrieve variables from the environment by identifier, this descriptor type also includes parameter names for convenience
0 commit comments