class CodeTools::AST::GlobalVariableAssignment
Public Instance Methods
bytecode(g)
click to toggle source
# File lib/rubinius/code/ast/variables.rb, line 310 def bytecode(g) # @value can be nil if this is coming via an masgn, which means # the value is already on the stack. if @name == :$! g.push_self @value.bytecode(g) if @value pos(g) g.send :raise, 1, true else pos(g) g.push_rubinius g.find_const :Globals if @value g.push_literal @name @value.bytecode(g) else g.swap g.push_literal @name g.swap end pos(g) g.send :[]=, 2 end end
sexp_name()
click to toggle source
# File lib/rubinius/code/ast/variables.rb, line 335 def sexp_name :gasgn end