repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix up Rubinius specific library specs.
[rbx.git]
/
lib
/
compiler
/
garnet
/
test.rbo
blob
30102369aedae21796a484784be7d9466860de6d
1
2
class Primitives
3
4
def add(x, y)
5
x.fixnum!
6
y.fixnum!
7
stack_push fixnum_add(@state, x, y)
8
end
9
10
def bignum_add(x, y)
11
x.bignum!
12
y.bignum!
13
14
15
end
16
17
end
18
19
20
class Object
21
def equal(other)
22
Ruby.primitive do
23
if self == other
24
stack_push true
25
else
26
stack_push false
27
end
28
end
29
end
30
end