aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/v3_codegen.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-03-16 15:27:01 +0100
committerBjörn Gustavsson <[email protected]>2010-03-22 18:18:13 +0100
commit2dc5a17b550e37b41410ad09ee636d877ca1f106 (patch)
tree9dfe997baf734c58afacd5593af6eeb997241824 /lib/compiler/src/v3_codegen.erl
parenteeff53be2a9e3c5f48b5abbb30c90817f1ed83cb (diff)
downloadotp-2dc5a17b550e37b41410ad09ee636d877ca1f106.tar.gz
otp-2dc5a17b550e37b41410ad09ee636d877ca1f106.tar.bz2
otp-2dc5a17b550e37b41410ad09ee636d877ca1f106.zip
compiler: Don't support the no_constant_pool option
The no_constant_pool option was implied by the r11 option. It turns off the usage of the constant (literal) pool, so that BEAM instructions that use constants can be loaded in an R11 system. Since the r11 option has been removed, there is no need to retain the no_constant_pool option.
Diffstat (limited to 'lib/compiler/src/v3_codegen.erl')
-rw-r--r--lib/compiler/src/v3_codegen.erl3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/compiler/src/v3_codegen.erl b/lib/compiler/src/v3_codegen.erl
index 83113d1652..64a53c400e 100644
--- a/lib/compiler/src/v3_codegen.erl
+++ b/lib/compiler/src/v3_codegen.erl
@@ -209,7 +209,6 @@ need_heap_1(#l{ke={set,_,Val}}, H) ->
{[],H + case Val of
{cons,_} -> 2;
{tuple,Es} -> 1 + length(Es);
- {string,S} -> 2 * length(S);
_Other -> 0
end};
need_heap_1(#l{ke={bif,dsetelement,_As,_Rs},i=I}, H) ->
@@ -1424,8 +1423,6 @@ set_cg([{var,R}], Con, Le, Vdb, Bef, St) ->
[{put_tuple,length(Es),Ret}] ++ cg_build_args(Es, Bef);
{var,V} -> % Normally removed by kernel optimizer.
[{move,fetch_var(V, Int),Ret}];
- {string,Str} = String ->
- [{put_string,length(Str),String,Ret}];
Other ->
[{move,Other,Ret}]
end,