Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method call in method body (e.g: attr_accessor) causes "nested" calls #9

Open
vidarh opened this issue May 27, 2009 · 1 comment
Open

Comments

@vidarh
Copy link
Owner

vidarh commented May 27, 2009

class Foo
  attr_accessor :seq
end

the attr_accessor bit turns into:

    # callm :self.:attr_accessor
    subl    $20, %esp
    movl    $2, %ebx
    movl    Foo, %eax
    movl    %eax, (%esp)
    movl    $3481, 4(%esp)
    movl    (%eax), %edx
    movl    12(%edx), %eax
    call    *%eax
    addl    $20, %esp
    # callm self.attr_accessor END
    call    *%eax
@vidarh
Copy link
Owner Author

vidarh commented May 27, 2009

(notice the second call &%eax)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant