update collector to estimate bootstrap size

This commit is contained in:
Torsten Ruger 2017-01-19 09:08:59 +02:00
parent aa79e41d1c
commit b756d275e4

View File

@ -1,10 +1,13 @@
require_relative '../helper'
require "register/interpreter"
require "risc/interpreter"
require "parser/ruby22"
require "yaml"
# An experiment to find out how much ruby there is to achieve bootstrap
#
# currently (jan/2017) just under 150 classes, 1.5k methods , 10k sends, only 10 yields
# 1 retry and redo (to be avoided), 4 ensure , 5 rescue
#
class Walker < AST::Processor
def initialize collector
@collector = collector
@ -69,7 +72,7 @@ class Collector
end
def run
load "salama.rb"
load "rubyx.rb"
load "parser/ruby22.rb"
# load "../../../.rbenv/versions/2.2.3/lib/ruby/2.2.0/racc/parser.rb"
print