Skip to content

Commit

Permalink
Move primitive 'allocate' to 'class_allocate'
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Aug 4, 2008
1 parent 2de5b48 commit 9e815fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kernel/bootstrap/class.rb
Expand Up @@ -3,8 +3,8 @@ class Class
ivar_as_index :method_table => 1, :superclass => 6, :instance_fields => 7, :has_ivars => 8, :needs_cleanup => 9, :object_type => 10

def allocate
Ruby.primitive :allocate
raise RuntimeError, "primitive 'allocate' failed on #{self.inspect}"
Ruby.primitive :class_allocate
raise RuntimeError, "primitive 'class_allocate' failed on #{self.inspect}"
end

def new(*args)
Expand Down
Binary file modified runtime/stable/bootstrap.rba
Binary file not shown.
Binary file modified runtime/stable/compiler.rba
Binary file not shown.
4 changes: 2 additions & 2 deletions shotgun/lib/primitives.rb
Expand Up @@ -484,8 +484,8 @@ def fields
CODE
end

defprim :allocate
def allocate
defprim :class_allocate
def class_allocate
<<-CODE
ARITY(0);
OBJECT t1, t2;
Expand Down

0 comments on commit 9e815fe

Please sign in to comment.