Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 23, 2010
  1. @ko1

    * vm_dump.c (rb_vm_bugreport): fix to add bug outputs.

    ko1 authored
      - loaded script ($0)
      - loaded features ($")
      - process memory map on Linux (/proc/self/maps)
    * vm_dump.c (rb_vmdebug_stack_dump_raw): fix header message.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 15, 2009
  1. @ko1

    * method.h, vm_core.h: add rb_method_entry_t. Remove nodes around

    ko1 authored
      method management.  This change affect some VM control stack structure.
    * vm.c, vm_insnhelper.c, vm_method.c, vm_eval.c: ditto.  and make some
      refactoring.
    * insns.def, class.c, eval.c, proc.c, vm_dump.c : ditto.
    * vm_core.h, compile.c (iseq_specialized_instruction): remove
      VM_CALL_SEND_BIT.  use another optimization tech for Kernel#send.
    * node.h: remove unused node types.
    * ext/objspace/objspace.c (count_nodes): ditto.
    * gc.c: add mark/free functions for method entry.
    * include/ruby/intern.h: remove decl of
      rb_define_notimplement_method_id().  nobody can use it
      because noex is not opend.
    * iseq.c (iseq_mark): fix to check ic_method is available.
    * iseq.c (rb_iseq_disasm): fix to use rb_method_get_iseq().
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 19, 2009
  1. @ko1

    * vm.c: add a prefix "rb_" to exposed functions

    ko1 authored
      vm_get_ruby_level_next_cfp(), rb_vm_make_env_object(),
      vm_stack_to_heap(), vm_make_proc(), vm_invoke_proc(),
      vm_get_sourceline(), vm_cref(), vm_localjump_error(),
      vm_make_jump_tag_but_local_jump(), vm_jump_tag_but_local_jump().
      This changes may affect only core because most of renamed functions
      require a pointer of not-exposed struct such as rb_thread_t or NODE.
      In short, they are core functions.
    * cont.c, eval.c, eval_intern.h, load.c, proc.c, thread.c,
      vm_core.h, vm_dump.c, vm_eval.c, vm_exec.c, vm_insnhelper.c:
      ditto.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @ko1

    * vm_dump.c: add a prefix "rb_vmdebug_" to

    ko1 authored
      vm_stack_dump_raw(), vm_stack_dump_raw_current(),
      vm_env_dump_raw(), vm_proc_dump_raw(), vm_stack_dump_th(),
      vm_debug_print_register(), vm_thread_dump_regs(),
      vm_debug_print_pre(), vm_debug_print_post(),
      vm_thread_dump_state().
      This change also may affect core (in fact, user of
      above functions may be only ko1).
    * vm_core.h: ditto.
    * vm_exec.h (SDR2): remove duplicate definition.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @ko1

    * iseq.c:

    ko1 authored
      rename ruby_iseq_disasm_insn() -> rb_iseq_disasm_insn().
      rename ruby_iseq_disasm() -> rb_iseq_disasm().
    * compile.c:
      rename ruby_iseq_compile() -> rb_iseq_compile_node().
      rename ruby_iseq_translate_threaded_code() ->
      rb_iseq_translate_threaded_code().
      rename ruby_insns_name_array() -> rb_insns_name_array().
      rename ruby_iseq_build_from_ary() -> rb_iseq_build_from_ary().
    * iseq.c, compile.c: remove ruby_insn_make_insn_table() and make
      static function insn_make_insn_table().
    * iseq.h, ruby.c, vm.c, vm_core.h, vm_eval.c, vm_dump.c,
      blockinlining.c: ditto.
      Rename strange "ruby_" prefix to "rb_" prefix.
      This changes may affect only core because renamed functions
      require a pointer of rb_iseq_t which is not exposed.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 24, 2008
  1. @ko1

    * error.c, vm_dump.c: change message by rb_bug().

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 23, 2008
  1. @ko1

    * include/ruby/node.h, node.h: move node.h from include path.

    ko1 authored
      This change stop to install node.h beacuase of saving ABI
      (node.h will be changed. Extensions should not depends on
      this file).
    * blockinlining.c, class.c, compile.c, debug.h, enum.c,
      gc.c, iseq.c, parse.y, ruby.c, signal.c, variable.c,
      vm.c, vm_core.h, vm_dump.c: ditto.
    * ext/ripper/depend: ditto.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @ko1

    * common.mk: clean up

    ko1 authored
      - remove blockinlining.$(OBJEXT) to built
      - make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
      - make VM_CORE_H_INCLUDES variable (vm_core.h)
      - simplify rules.
      - make depends rule to output depend status using gcc -MM.
    * include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
    * include/ruby.h: ditto.
    * load.c: add inclusion explicitly.
    * enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
      remove useless inclusion.
    * eval_intern.h: cleanup inclusion.
    * vm_core.h: rb_thread_t should be defined in this file.
    * vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
    * vm.h, vm_exec.h: rename vm.h to vm_exec.h.
    * insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
    * vm.c, vm_insnhelper.c, vm_insnhelper.h:
      - rename vm_eval() to vm_exec_core().
      - rename vm_eval_body() to vm_exec().
      - cleanup include order.
    * vm_method.c: fix comment.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Sep 4, 2008
  1. @ko1

    * vm_dump.c: rename some debug functions.

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 29, 2008
  1. @ko1

    * vm.c, vm_core.h,vm_core.h, vm_dump.c, iseq.c: rename class name

    ko1 authored
      VM -> RubyVM, and rename rb_cVM -> rb_cRubyVM.
      "VM" is too short name for class.
    * test/ruby/test_method.rb, test/ruby/test_settracefunc.rb: ditto.
    * include/ruby/ruby.h: rb_cRubyVM, rb_cEnv, rb_cISeq should not be
      exposed.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 15, 2008
  1. @ko1

    * vm_dump.c (vm_stack_dump_raw): disable verbose debug output.

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 10, 2008
  1. @ko1

    * vm.c, eval_intern.h (PASS_PASSED_BLOCK):

    ko1 authored
      set a VM_FRAME_FLAG_PASSED flag to skip this frame when
      searching ruby-level-cfp.
    * eval.c, eval_intern.h, proc.c: fix to check cfp.  if there is
      no valid ruby-level-cfp, cause RuntimeError exception.
      [ruby-dev:34128]
    * vm_core.h, vm_evalbody.c, vm.c, vm_dump.c, vm_insnhelper.c,
      insns.def: rename FRAME_MAGIC_* to VM_FRAME_MAGIC_*.
    * KNOWNBUGS.rb, bootstraptest/test*.rb: move solved bugs.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 24, 2008
  1. @ko1

    * eval_method.c: renamed from vm_method.c. "vm_method.c" is included

    ko1 authored
      by "vm.c".
    * vm_eval.c: added.  Some codes are moved from "eval.c"
    * common.mk: fix for above changes.
    * compile.c: make a vm_eval(0)
    * eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c,
      id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c,
      blockinlining.c: fix for above changes.  and do some refactoring.
      this changes improve rb_yield() performance.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 19, 2008
  1. @ko1

    * vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.

    ko1 authored
      VM value stack frame of block contains cref information.
      (dfp[-1] points CREF)
    * compile.c, eval_intern.h, eval_method.c, load.c, proc.c,
      vm_dump.h, vm_core.h: ditto.
    * include/ruby/ruby.h, gc.c: remove T_VALUES because of above
      changes.
    * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 21, 2007
  1. @ko1

    * vm.c, vm_dump.c: fix typo.

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 13, 2007
  1. @ko1

    * blockinlining.c, compile.c, compile.h, debug.c, debug.h,

    ko1 authored
      id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci,
      thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h,
      vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and
      copyright year.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 12, 2007
  1. @ko1

    * vm_dump.c (debug_print_pre): fix to show control frame count.

    ko1 authored
    * insns.def (opt_call_c_function): fix operand type.
    * lib/vm/instruction.rb: ditto.
    * insnhelper.ci (vm_push_frame, vm_pop_frame): fix to show
      control stack status on if VMDEBUG == 2.
    * vm.h: add a comment about VMDEBUG.
    * iseq.c (find_prev_line_no): fix to skip bug report if
      line is not found.
    * lib/vm/instruction.rb: fix to use build_string() on
      source code generators.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 12, 2007
  1. @ko1

    * blockinlining.c: remove "yarv" prefix.

    ko1 authored
    * array.c, numeric.c: ditto.
    * insnhelper.ci, insns.def, vm_evalbody.ci: ditto.
    * yarvcore.c: removed.
    * yarvcore.h: renamed to core.h.
    * cont.c, debug.c, error.c, process.c, signal.c : ditto.
    * ext/probeprofiler/probeprofiler.c: ditto.
    * id.c, id.h: added.
    * inits.c: ditto.
    * compile.c: rename internal functions.
    * compile.h: fix debug flag.
    * eval.c, object.c, vm.c: remove ruby_top_self.
      use rb_vm_top_self() instead.
    * eval_intern.h, eval_load: ditto.
    * gc.c: rename yarv_machine_stack_mark() to
      rb_gc_mark_machine_stack().
    * insnhelper.h: remove unused macros.
    * iseq.c: add iseq_compile() to create iseq object
      from source string.
    * proc.c: rename a internal function.
    * template/insns.inc.tmpl: remove YARV prefix.
    * thread.c:
    * vm.c (rb_iseq_eval): added.
    * vm.c: move some functions from yarvcore.c.
    * vm_dump.c: fix to remove compiler warning.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jul 5, 2007
  1. @ko1

    * yarvcore.h: rename rb_control_frame_t#magic to flag.

    ko1 authored
    * vm.h: add VM_FRAME_TYPE() and VM_FRAME_FLAG().
    * cont.c, insnhelper.ci, insns.def, vm.c, vm_dump.c,
      vm_evalbody.ci, yarvcore.c: apply above changes.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 24, 2007
  1. @ko1

    * call_cfunc.ci: removed.

    ko1 authored
    * insnhelper.ci: added. this function includes all functions that
      vm insns need.
    * common.mk: ditto.
    * insnhelper.h, vm.h, vm.c: move some declaration.
    * gc.h: remove GC_CHECK() macro because GC.stress is more useful.
    * compile.c, iseq.c, vm_dump: ditto.
    * gc.h, thread.c: move a prototype decalaration.
    * debug.c, debug.h: rename some functions.
    * compile.h: ditto.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @ko1

    * vm.c: some refactoring.

    ko1 authored
      * rename th_* to vm_*.
      * remove unused variables functions.
      * add prototypes.
    * blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
      eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
      proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
      vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 17, 2007
  1. @ko1

    * vm_dump.c (vm_stack_dump_raw): hide VM stack trace.

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 1, 2007
  1. @ko1

    * yarvcore.h, compile.c (set_arguments): support post arguments.

    ko1 authored
    * test/ruby/test_method.rb: add tests for above.
    * test/ruby/test_proc.rb: ditto.
    * proc.c: fix an arity bug ([ruby-core:11029]).
    * vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process.
    * vm.c: support block argument on block parameter.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 25, 2007
  1. @ko1

    * yarvcore.h:

    ko1 authored
      rename:
      rb_iseq_t#file_name -> filename
      rb_iseq_t#local_tbl -> local_table
      add:
      rb_iseq_t#local_table_size
    * compile.c: separate local_table_size and local_size
      (local variable size)
    * blockinlining.c: apply above rename.
    * compile.h: ditto.
    * eval.c: ditto.
    * iseq.c: ditto.
    * proc.c: ditto.
    * vm.c: ditto.
    * vm_dump.c: ditto.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 8, 2007
  1. @ko1

    * blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,

    ko1 authored
      eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
      thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
      vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
      fix typo (rb_thead_t -> rb_thread_t).
    
    * eval_intern.h: remove unused definitions.
    
    * common.mk: fix around vm_opts.h path
      and remove harmful argument passed to insns2vm.rb.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 7, 2007
  1. @ko1

    * this commit is a result of refactoring. only renaming functions,

    ko1 authored
      moving definitions place, add/remove prototypes, deleting
      unused variables and removing yarv.h.
      This commit doesn't change any behavior of ruby/vm.
    * yarv.h, common.mk: remove yarv.h (contents are moved to yarvcore.h).
    * error.c, eval_intern.h: include yarvcore.h instead yarv.h
    * rename some functions:
      * debug.[ch]: debug_*() -> ruby_debug_*()
      * iseq.c: iseq_*() -> rb_iseq_*(), ruby_iseq_disasm()
      * iseq.c: node_name() -> ruby_node_name()
      * vm.c: yarv_check_redefinition_opt_method() ->
        rb_vm_check_redefinition_opt_method()
    * some refactoring with checking -Wall.
    * array.c: remove rb_ary_ptr() (unused) and remove unused
      local variables.
    * object.c: add a prototype of rb_mod_module_exec().
    * eval_intern.h (ruby_cref): set it inline.
    * eval_load.c (rb_load), yarvcore.c: yarv_load() -> rb_load_internal().
    * parse.y: add a prototype of rb_parse_in_eval() (in eval.c).
    * process.c: add a prototype of rb_thread_stop_timer_thread() (in thread.c).
    * thread.c: remove raw_gets() function (unused) and fix some format
      mismatch (format mismatchs have remained yet. this is todo).
    * thread.c (rb_thread_wait_fd_rw): fix typo on label name.
    * thread_pthread.ci: comment out codes with USE_THREAD_CACHE.
    * vm.c (rb_svar, rb_backref_get, rb_backref_get,
      rb_lastline_get, rb_lastline_set) : moved from yarvcore.c.
    * vm.c (yarv_init_redefined_flag): add a prototype and rename
      yarv_opt_method_table to vm_opt_method_table.
    * vm.c (rb_thread_eval): moved from yarvcore.c.
    * yarvcore.c: remove unused global variables and fix to use nsdr().
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 6, 2007
  1. @ko1

    * blockinlining.c, compile.c, compile.h, error.c, eval.c,

    ko1 authored
      eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
      eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
      process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
      vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
      yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
      * yarv_*_t -> rb_*_t
      * yarv_*_struct -> rb_*_struct
      * yarv_tag -> rb_vm_tag
      * YARV_* -> RUBY_VM_*
    * proc.c, vm.c: move functions about env object creation
      from proc.c to vm.c.
    * proc.c, yarvcore.c: fix rb_cVM initialization place.
    * inits.c: change Init_ISeq() order (after Init_VM).
    * ruby.h, proc.c: change declaration place of rb_cEnv
      from proc.c to ruby.c.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 31, 2006
  1. @ko1

    * Merge YARV

    ko1 authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.