Use latest aebytecode. (#36)

* Use latest aebytecode.

* Fix argument to dup instruction.
This commit is contained in:
Erik Stenman 2019-03-04 14:22:36 +01:00 committed by GitHub
parent fadf3378b4
commit 85a014958d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{erl_opts, [debug_info]}. {erl_opts, [debug_info]}.
{deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git", {deps, [ {aebytecode, {git, "https://github.com/aeternity/aebytecode.git",
{tag,"v2.0.1"}}} {ref,"2369533"}}}
, {getopt, "1.0.1"} , {getopt, "1.0.1"}
]}. ]}.

View File

@ -1,7 +1,7 @@
{"1.1.0", {"1.1.0",
[{<<"aebytecode">>, [{<<"aebytecode">>,
{git,"https://github.com/aeternity/aebytecode.git", {git,"https://github.com/aeternity/aebytecode.git",
{ref,"01ae99f7e8be7917d213e1ef04dc6d613a046b98"}}, {ref,"23695330ef1767c78193f330c3c3effdb76d4045"}},
0}, 0},
{<<"aeserialization">>, {<<"aeserialization">>,
{git,"https://github.com/aeternity/aeserialization.git", {git,"https://github.com/aeternity/aeserialization.git",

View File

@ -95,7 +95,7 @@ to_scode(_Env, #integer{ value = N }) ->
to_scode(Env, #var_ref{name = X}) -> to_scode(Env, #var_ref{name = X}) ->
case lookup_var(Env, X) of case lookup_var(Env, X) of
false -> error({unbound_variable, X, Env}); false -> error({unbound_variable, X, Env});
{stack, N} -> [aeb_fate_code:dup(N)]; {stack, N} -> [aeb_fate_code:dup(?i(N))];
{arg, N} -> [aeb_fate_code:push({arg, N})] {arg, N} -> [aeb_fate_code:push({arg, N})]
end; end;
to_scode(Env, #binop{ op = Op, left = A, right = B }) -> to_scode(Env, #binop{ op = Op, left = A, right = B }) ->