Skip to content

Commit

Permalink
JACOBIN-592 Ported last of interpreter unit tests to new interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Nov 4, 2024
1 parent f1083c9 commit ec7cd0f
Show file tree
Hide file tree
Showing 3 changed files with 1,442 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/buildno.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

package config

var BuildNo = 3190
var BuildNo = 3191
4 changes: 2 additions & 2 deletions src/jvm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ func doIstore(fr *frames.Frame, _ int64) int {
}

popped := pop(fr)
fr.Locals[index] = convertInterfaceToInt64(popped) // TODO: conversion needed?
fr.Locals[index] = convertInterfaceToInt64(popped)
return PCadvance + 1
}

Expand Down Expand Up @@ -1164,7 +1164,7 @@ func doIinc(fr *frames.Frame, _ int64) int {
var PCtoSkip int
if fr.WideInEffect { // if wide is in effect, index and increment are two bytes wide, otherwise one byte each
index = (int(fr.Meth[fr.PC+1]) * 256) + int(fr.Meth[fr.PC+2])
increment = int64(fr.Meth[fr.PC+1])*256 + int64(fr.Meth[fr.PC+2])
increment = int64(fr.Meth[fr.PC+3])*256 + int64(fr.Meth[fr.PC+4])
PCtoSkip = 4
fr.WideInEffect = false
} else {
Expand Down
Loading

0 comments on commit ec7cd0f

Please sign in to comment.