Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add R15 line beam inns

For now, we simply ignore this instruction
  • Loading branch information...
commit 1f9e35445fe19731bacf05cdbd5b9c62d21deb93 1 parent bb2fed1
@krestenkrab krestenkrab authored
View
5 src/main/java/erjang/beam/BeamOpcode.java
@@ -147,7 +147,10 @@
recv_mark (0x96),
recv_set (0x97),
-
+ gc_bif3 (0x98),
+ line (0x99),
+
+
// Opcode groups
test,
View
6 src/main/java/erjang/beam/analysis/BeamTypeAnalysis.java
@@ -829,6 +829,7 @@ private void accept_2(BlockVisitor2 vis, BeamExceptionHandler exh) {
break;
}
+ case line: // TODO!
case on_load: // ignore
case trim:
break;
@@ -2025,6 +2026,11 @@ public void analyze0() {
continue next_insn;
}
+ case line: {
+ // TODO: Implement LINE instruction!
+ continue next_insn;
+ }
+
default: {
ETuple insn = insn_.toSymbolicTuple();
throw new Error("unhandled: " + insn + "::" + current);
View
1  src/main/java/erjang/beam/loader/BeamLoader.java
@@ -546,6 +546,7 @@ public Insn readInstruction() throws IOException {
case deallocate:
case call_fun:
case apply:
+ case line:
{
int i1 = readCodeInteger();
if (log.isLoggable(Level.FINE) && opcode==BeamOpcode.label) log.fine("DB| ### label "+i1+"###");
Please sign in to comment.
Something went wrong with that request. Please try again.