Sha256: 450bb6bc4322d0bfb200e28d48e168c68238cc59093fad28485fd5bc4873e769

Contents?: true

Size: 1.57 KB

Versions: 1694

Compression:

Stored size: 1.57 KB

Contents

/* -*-c-*- *********************************************************/
/*******************************************************************/
/*******************************************************************/
/**
  This file is for threaded code.

  ----
  This file is auto generated by insns2vm.rb
  DO NOT TOUCH!

  If you want to fix something, you must edit 'template/optinsn.inc.tmpl'
  or rb/insns2vm.rb
 */

static INSN *
insn_operands_unification(INSN *insnobj){
#ifdef OPT_OPERANDS_UNIFICATION
  /* optimize rule */
  switch(insnobj->insn_id){

case BIN(getlocal):
  if(
    insnobj->operands[1] == INT2FIX(0)
  ){
    insnobj->insn_id = BIN(getlocal_OP__WC__0);
    insnobj->operand_size = 1;
    break;
  }

  if(
    insnobj->operands[1] == INT2FIX(1)
  ){
    insnobj->insn_id = BIN(getlocal_OP__WC__1);
    insnobj->operand_size = 1;
    break;
  }

  break;
case BIN(setlocal):
  if(
    insnobj->operands[1] == INT2FIX(0)
  ){
    insnobj->insn_id = BIN(setlocal_OP__WC__0);
    insnobj->operand_size = 1;
    break;
  }

  if(
    insnobj->operands[1] == INT2FIX(1)
  ){
    insnobj->insn_id = BIN(setlocal_OP__WC__1);
    insnobj->operand_size = 1;
    break;
  }

  break;
case BIN(putobject):
  if(
    insnobj->operands[0] == INT2FIX(0)
  ){
    insnobj->insn_id = BIN(putobject_OP_INT2FIX_O_0_C_);
    insnobj->operand_size = 0;
    break;
  }

  if(
    insnobj->operands[0] == INT2FIX(1)
  ){
    insnobj->insn_id = BIN(putobject_OP_INT2FIX_O_1_C_);
    insnobj->operand_size = 0;
    break;
  }

  break;

  default:
    /* do nothing */;
    break;
  }
#endif
  return insnobj;
}

Version data entries

1,694 entries across 84 versions & 6 rubygems

Version Path
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.0.0-p481/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.0.0-p576/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.4-p265/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.0.0-p643/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.5-p273/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.7-p400/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.10-p492/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.1.2-p95/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.2-p95/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.3-p242/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.0.0-p353/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.1.3-p242/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.1.5-p273/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.1.6-p336/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-0.10.16/lib/debase/ruby_core_source/ruby-2.1.1-p76/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.8-p440/optinsn.inc
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.1/lib/debase/ruby_core_source/ruby-2.1.9-p490/optinsn.inc
debase-ruby_core_source-3.3.1 lib/debase/ruby_core_source/ruby-2.1.8-p440/optinsn.inc
debase-ruby_core_source-3.3.1 lib/debase/ruby_core_source/ruby-2.1.9-p490/optinsn.inc
debase-ruby_core_source-3.3.1 lib/debase/ruby_core_source/ruby-2.1.5-p273/optinsn.inc