3 raise TypeError, "MethodContext doesn't support #new"
7 cur = Rubinius.asm { push_context }
12 Ruby.primitive :activate_context
13 raise PrimitiveFailure, "primitive failed"
25 _set_field(1, num.to_i)
73 Ruby.primitive :fastctx_dup
74 raise PrimitiveFailure, "primitive failed"
78 Ruby.primitive :fastctx_get_field
79 raise PrimitiveFailure, "primitive failed"
82 def _set_field(int, val)
83 Ruby.primitive :fastctx_set_field
84 raise PrimitiveFailure, "primitive failed"
87 # Reloads the compiled method instruction sequence into the method context.
88 # Required so that the debugger can add breakpoints to a currently executing
91 Ruby.primitive :fastctx_reload_method
92 raise PrimitiveFailure, "primitive failed"
95 # Modifies the context to use the specified instruction sequence.
96 # This method exists to support debugging; it should only be used to modify
97 # the task instruction sequence to add/remove temporary breakpoints that are
98 # only for the current thread, e.g. when stepping or restoring a persistent
101 Ruby.primitive :fastctx_set_iseq
102 raise PrimitiveFailure, "primitive failed"
112 class BlockEnvironment
114 Ruby.primitive :block_call
115 raise PrimitiveFailure, "primitive failed"