Sha256: 450bb6bc4322d0bfb200e28d48e168c68238cc59093fad28485fd5bc4873e769

Contents?: true

Size: 1.57 KB

Versions: 1810

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,810 entries across 89 versions & 6 rubygems

Version Path
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.0.0-p195/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.0.0-p0/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.1.3-p242/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.1.2-p95/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.1.1-p76/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.1.0-p0/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.0.0-p481/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.0.0-p451/optinsn.inc
debase-ruby_core_source-0.1.0 /Users/user/work/tests/github/os97673/debase-ruby_core_source/lib/debase/ruby_core_source/ruby-2.0.0-p247/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.0.0-p451/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.1.2-p95/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.1.1-p76/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.1.0-p0/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.0.0-p481/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.0.0-p353/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.0.0-p247/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.0.0-p195/optinsn.inc
debugger-ruby_core_source-1.3.5 ./lib/debugger/ruby_core_source/ruby-2.0.0-p0/optinsn.inc
debugger-ruby_core_source-1.3.4 ./lib/debugger/ruby_core_source/ruby-2.0.0-p481/optinsn.inc
debugger-ruby_core_source-1.3.4 ./lib/debugger/ruby_core_source/ruby-2.0.0-p451/optinsn.inc