Returns the value of a global variable based on its index in this module ({@see getIndexOfGlobal}.) Returns null if the variable has not been assigned a value.
(int i)
| 275 | * getIndexOfGlobal}.) Returns null if the variable has not been assigned a value. |
| 276 | */ |
| 277 | @Nullable |
| 278 | Object getGlobalByIndex(int i) { |
| 279 | Preconditions.checkArgument(i < globalIndex.size()); |
| 280 | return this.globals[i]; |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * Returns the index within this Module of a global variable, given its name, creating a new slot |
no test coverage detected