Permalink
Browse files

Make various 6model type ops decont the first arg.

Some Rakudo code was accidentally trying to tweak the method cache on
Scalar, in turn triggering a bogus STable repossession. This fixes
that particular issue, and also marks up other ops in hope of avoiding
other similar ones.
  • Loading branch information...
1 parent 81e634a commit 28b9c297dd6b5585d7140ca5aae1cb3b553e6997 @jnthn jnthn committed Feb 17, 2014
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/vm/moar/QAST/QASTOperationsMAST.nqp
@@ -2190,14 +2190,14 @@ QAST::MASTOperations.add_core_moarop_mapping('can', 'can_s', :decont(0));
QAST::MASTOperations.add_core_moarop_mapping('reprname', 'reprname', :decont(0));
QAST::MASTOperations.add_core_moarop_mapping('newtype', 'newtype', :decont(0));
QAST::MASTOperations.add_core_moarop_mapping('composetype', 'composetype');
-QAST::MASTOperations.add_core_moarop_mapping('setboolspec', 'setboolspec', 0);
-QAST::MASTOperations.add_core_moarop_mapping('setmethcache', 'setmethcache', 0);
-QAST::MASTOperations.add_core_moarop_mapping('setmethcacheauth', 'setmethcacheauth', 0);
-QAST::MASTOperations.add_core_moarop_mapping('settypecache', 'settypecache', 0);
-QAST::MASTOperations.add_core_moarop_mapping('settypecheckmode', 'settypecheckmode', 0);
+QAST::MASTOperations.add_core_moarop_mapping('setboolspec', 'setboolspec', 0, :decont(0));
+QAST::MASTOperations.add_core_moarop_mapping('setmethcache', 'setmethcache', 0, :decont(0));
+QAST::MASTOperations.add_core_moarop_mapping('setmethcacheauth', 'setmethcacheauth', 0, :decont(0));
+QAST::MASTOperations.add_core_moarop_mapping('settypecache', 'settypecache', 0, :decont(0));
+QAST::MASTOperations.add_core_moarop_mapping('settypecheckmode', 'settypecheckmode', 0, :decont(0));
QAST::MASTOperations.add_core_moarop_mapping('isinvokable', 'isinvokable');
-QAST::MASTOperations.add_core_moarop_mapping('setinvokespec', 'setinvokespec', 0);
-QAST::MASTOperations.add_core_moarop_mapping('setcontspec', 'setcontspec', 0);
+QAST::MASTOperations.add_core_moarop_mapping('setinvokespec', 'setinvokespec', 0, :decont(0));
+QAST::MASTOperations.add_core_moarop_mapping('setcontspec', 'setcontspec', 0, :decont(0));
QAST::MASTOperations.add_core_moarop_mapping('assign', 'assign', 0, :decont(1));
QAST::MASTOperations.add_core_moarop_mapping('assignunchecked', 'assignunchecked', 0, :decont(1));

0 comments on commit 28b9c29

Please sign in to comment.