File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ public function execute(): void
2121 if (!isset ($ arrayref [$ index ])) {
2222 throw new \PHPJava \Imitation \java \lang \ArrayIndexOutOfBoundsException ('Array index ' . $ index . ' out of bounds. (Program Counter: ' . $ this ->getProgramCounter () . ') ' );
2323 }
24- $ this ->pushStack ($ arrayref [$ index ]);
24+ $ this ->pushToOperandStack ($ arrayref [$ index ]);
2525 }
2626}
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ final class _aload_0 implements OperationInterface
1515 */
1616 public function execute (): void
1717 {
18- $ this ->pushStack ($ this ->getLocalStorage (0 ));
18+ $ this ->pushToOperandStack ($ this ->getLocalStorage (0 ));
1919 }
2020}
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ final class _aload_1 implements OperationInterface
1515 */
1616 public function execute (): void
1717 {
18- $ this ->pushStack ($ this ->getLocalStorage (1 ));
18+ $ this ->pushToOperandStack ($ this ->getLocalStorage (1 ));
1919 }
2020}
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ final class _aload_2 implements OperationInterface
1515 */
1616 public function execute (): void
1717 {
18- $ this ->pushStack ($ this ->getLocalStorage (2 ));
18+ $ this ->pushToOperandStack ($ this ->getLocalStorage (2 ));
1919 }
2020}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public function execute(): void
5353 }
5454
5555 if ($ signature [0 ]['type ' ] !== 'void ' ) {
56- $ this ->pushStack ($ result );
56+ $ this ->pushToOperandStack ($ result );
5757 }
5858 }
5959}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function execute(): void
1919 $ rightOperand = Extractor::realValue ($ this ->popFromOperandStack ());
2020 $ leftOperand = Extractor::realValue ($ this ->popFromOperandStack ());
2121
22- $ this ->pushStack (
22+ $ this ->pushToOperandStack (
2323 new _Int (
2424 $ leftOperand % $ rightOperand
2525 )
You can’t perform that action at this time.
0 commit comments