diff options
author | Björn Gustavsson <[email protected]> | 2010-04-29 05:59:53 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-05-20 12:20:50 +0200 |
commit | 0ebf76849e220033b26985fc25e5b2842a1dcc5b (patch) | |
tree | 60c5acb26e7c57578c67254ecfb0ef0e2db2b092 /lib/hipe/icode/hipe_beam_to_icode.erl | |
parent | ed80dcf76968bcb039d3d5ea273421916a007454 (diff) | |
download | otp-0ebf76849e220033b26985fc25e5b2842a1dcc5b.tar.gz otp-0ebf76849e220033b26985fc25e5b2842a1dcc5b.tar.bz2 otp-0ebf76849e220033b26985fc25e5b2842a1dcc5b.zip |
Remove stray support for the put_literal/2 instruction
put_literal/2 was an experimental instruction added in R11 to
support literals, but before the R12 release support for literals
was implemented for all instruction, making the put_literal/2
instruction redundant. Although the beam_disasm module supports
dissambley of instructions in older releases, there is
no reason to have it support experimental instructions.
Diffstat (limited to 'lib/hipe/icode/hipe_beam_to_icode.erl')
-rw-r--r-- | lib/hipe/icode/hipe_beam_to_icode.erl | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/hipe/icode/hipe_beam_to_icode.erl b/lib/hipe/icode/hipe_beam_to_icode.erl index fd9ba4432b..1f8be4040e 100644 --- a/lib/hipe/icode/hipe_beam_to_icode.erl +++ b/lib/hipe/icode/hipe_beam_to_icode.erl @@ -1124,13 +1124,6 @@ trans_fun([{gc_bif,Name,Fail,_Live,SrcRs,DstR}|Instructions], Env) -> trans_fun([{bif,Name,Fail,SrcRs,DstR}|Instructions], Env) end; %%-------------------------------------------------------------------- -%% Instruction for constant pool added in February 2007 for R11B-4. -%%-------------------------------------------------------------------- -trans_fun([{put_literal,{literal,Literal},DstR}|Instructions], Env) -> - DstV = mk_var(DstR), - Move = hipe_icode:mk_move(DstV, hipe_icode:mk_const(Literal)), - [Move | trans_fun(Instructions, Env)]; -%%-------------------------------------------------------------------- %% New test instruction added in July 2007 for R12. %%-------------------------------------------------------------------- %%--- is_bitstr --- |