rubyspec (owner)

Revisions

gist: 1565 Download_button fork
public
Public Clone URL: git://gist.github.com/1565.git
Text only
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
euler:vm brian$ cat ../bench.rb
class Object
  def show
    Ruby.primitive :object_show
  end
end
 
i = 0
while i < 10_000
  j = 0
  while j < 10_000
    j += 1
    m = i + 1
  end
  i += 1
end
 
m.show
euler:vm brian$ rm ../bench.rbc
euler:vm brian$ ruby ../lib/compiler/mri_compile.rb -frbx-kernel ../bench.rb ../bench.rbc
../lib/compiler/../../vm/gen/simple_field.rb:331: warning: already initialized constant Slots
Compiling ../bench.rb
euler:vm brian$ ./vm ../bench.rbc
Loading: ../bench.rbc
resolving: :object_show
[Added method '__class_init__']
[Unable to find: '__class_init__']
terminate called after throwing an instance of 'rubinius::Assertion*'
Abort trap