Class: Rubycc::IR::Generator::ObjectRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/ir/generator.rb

Overview

The merged state of a file-scope object's tentative/real definitions (6.9.2), one per name in @object_records. type and linkage are the agreed type and linkage of the run, initialized records whether any declaration has supplied an initializer (so a second one is a redefinition), and index locates the object's single IR::Global entry in @globals, which an initializer arriving after a tentative .bss definition rewrites in place to .data. Mutable, since a later declaration in the run updates it.

Instance Attribute Summary collapse

Instance Attribute Details

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



56
57
58
# File 'lib/rubycc/ir/generator.rb', line 56

def index
  @index
end

#initializedObject

Returns the value of attribute initialized

Returns:

  • (Object)

    the current value of initialized



56
57
58
# File 'lib/rubycc/ir/generator.rb', line 56

def initialized
  @initialized
end

#linkageObject

Returns the value of attribute linkage

Returns:

  • (Object)

    the current value of linkage



56
57
58
# File 'lib/rubycc/ir/generator.rb', line 56

def linkage
  @linkage
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



56
57
58
# File 'lib/rubycc/ir/generator.rb', line 56

def type
  @type
end