Example #1
0
static int
TimesNumAndResetOriginal(BasicValue& aValue, int aNum)
{
  int tag = aValue.GetTag();
  aValue.SetTag(1);
  return tag * aNum;
}
Example #2
0
static int
TimesTwoAndResetOriginal(BasicValue& aValue)
{
  int tag = aValue.GetTag();
  aValue.SetTag(1);
  return tag * 2;
}
Example #3
0
 void operator()(BasicValue& aValue)
 {
   aValue.SetTag(aValue.GetTag() + mBy.GetTag());
 }
Example #4
0
static void
IncrementTag(BasicValue& aValue)
{
  gFunctionWasApplied = true;
  aValue.SetTag(aValue.GetTag() + 1);
}
Example #5
0
 void operator()(BasicValue& aValue, BasicValue&& aArg)
 {
   mArgMoved = true;
   aValue.SetTag(aValue.GetTag() + aArg.GetTag());
 }
Example #6
0
 void operator()(BasicValue& aValue, const BasicValue& aArg)
 {
   mArgMoved = false;
   aValue.SetTag(aValue.GetTag() + aArg.GetTag());
 }
Example #7
0
static void
IncrementTagBy(BasicValue& aValue, int aAmount)
{
  gFunctionWasApplied = true;
  aValue.SetTag(aValue.GetTag() + aAmount);
}