Skip to content

Commit 5264075

Browse files
committed
Fix #53
1 parent 061c1d1 commit 5264075

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+73
-73
lines changed

src/Kernel/Core/Accumulator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ public function getOffset()
102102
}
103103

104104

105-
public function pushStack($value)
105+
public function pushToOperandStack($value)
106106
{
107107
$this->stacks[] = $value;
108108
}
109109

110-
public function pushStackByReference(&$value)
110+
public function pushToOperandStackByReference(&$value)
111111
{
112112
$this->stacks[] = &$value;
113113
}

src/Kernel/Mnemonics/_aconst_null.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ final class _aconst_null implements OperationInterface
1414
*/
1515
public function execute(): void
1616
{
17-
$this->pushStack(null);
17+
$this->pushToOperandStack(null);
1818
}
1919
}

src/Kernel/Mnemonics/_aload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ final class _aload implements OperationInterface
1515
public function execute(): void
1616
{
1717
$index = $this->readByte();
18-
$this->pushStack($this->getLocalStorage($index));
18+
$this->pushToOperandStack($this->getLocalStorage($index));
1919
}
2020
}

src/Kernel/Mnemonics/_aload_3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ final class _aload_3 implements OperationInterface
1414
*/
1515
public function execute(): void
1616
{
17-
$this->pushStack($this->getLocalStorage(3));
17+
$this->pushToOperandStack($this->getLocalStorage(3));
1818
}
1919
}

src/Kernel/Mnemonics/_anewarray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public function execute(): void
2323
$count = $this->getStack();
2424
// need reference
2525
$ref = new \ArrayIterator(array_fill(0, $count, null));
26-
$this->pushStackByReference($ref);
26+
$this->pushToOperandStackByReference($ref);
2727
}
2828
}

src/Kernel/Mnemonics/_arraylength.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public function execute(): void
1313
{
1414
$arrayref = $this->getStack();
1515

16-
$this->pushStack(sizeof($arrayref));
16+
$this->pushToOperandStack(sizeof($arrayref));
1717
}
1818
}

src/Kernel/Mnemonics/_bipush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ final class _bipush implements OperationInterface
1212

1313
public function execute(): void
1414
{
15-
$this->pushStack(new _Int($this->readByte()));
15+
$this->pushToOperandStack(new _Int($this->readByte()));
1616
}
1717
}

src/Kernel/Mnemonics/_dadd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public function execute(): void
1414
$value2 = $this->getStack();
1515
$value1 = $this->getStack();
1616

17-
$this->pushStack(BinaryTool::add($value1, $value2));
17+
$this->pushToOperandStack(BinaryTool::add($value1, $value2));
1818
}
1919
}

src/Kernel/Mnemonics/_daload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public function execute(): void
1717
$index = $this->getStack();
1818
$arrayref = $this->getStack();
1919

20-
$this->pushStack($arrayref[$index]);
20+
$this->pushToOperandStack($arrayref[$index]);
2121
}
2222
}

src/Kernel/Mnemonics/_dconst_0.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ final class _dconst_0 implements OperationInterface
1111

1212
public function execute(): void
1313
{
14-
$this->pushStack(0);
14+
$this->pushToOperandStack(0);
1515
}
1616
}

0 commit comments

Comments
 (0)