aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2015-02-27 12:17:05 +0100
committerBjörn Gustavsson <[email protected]>2015-03-09 09:41:18 +0100
commitc5e808c27beeef8cfc5eaa4ab37aeaaaef3db849 (patch)
treec662a184ce3d83c0ec478fb250848302d2b18c7d /lib/compiler/test
parent09dfc3ba50174c55733b11db70d444f62b029302 (diff)
downloadotp-c5e808c27beeef8cfc5eaa4ab37aeaaaef3db849.tar.gz
otp-c5e808c27beeef8cfc5eaa4ab37aeaaaef3db849.tar.bz2
otp-c5e808c27beeef8cfc5eaa4ab37aeaaaef3db849.zip
v3_core: Add is_map tests before map instructions
If we have a sequence of put_map_* instructions operating on the same map, it will be more efficient if we can have one is_map/2 instruction before put_map_* instructions, so that each put_map_* does not need to test whether the argument is a map.
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/warnings_SUITE.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compiler/test/warnings_SUITE.erl b/lib/compiler/test/warnings_SUITE.erl
index 6663985ad7..dcd3910926 100644
--- a/lib/compiler/test/warnings_SUITE.erl
+++ b/lib/compiler/test/warnings_SUITE.erl
@@ -580,11 +580,11 @@ maps(Config) when is_list(Config) ->
<<"
t() ->
M = {a,[]},
- {'EXIT',{badarg,_}} = (catch(M#{ a => 1})),
+ {'EXIT',{badarg,_}} = (catch(M#{ a => 1 })),
ok.
">>,
[],
- {warnings,[{4,v3_kernel,bad_map}]}},
+ {warnings,[{4,sys_core_fold,{eval_failure,badarg}}]}},
{bad_map_src2,
<<"
t() ->
@@ -594,7 +594,7 @@ maps(Config) when is_list(Config) ->
id(I) -> I.
">>,
[inline],
- {warnings,[{4,v3_kernel,bad_map}]}},
+ []},
{bad_map_src3,
<<"
t() ->