Changeset 122650 in webkit for trunk/Source/JavaScriptCore/offlineasm/ast.rb
- Timestamp:
- Jul 13, 2012, 5:44:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/ast.rb
r110383 r122650 21 21 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 22 22 # THE POSSIBILITY OF SUCH DAMAGE. 23 24 require "config" 23 25 24 26 # … … 785 787 786 788 class Instruction < Node 787 attr_reader :opcode, :operands 788 789 def initialize(codeOrigin, opcode, operands )789 attr_reader :opcode, :operands, :annotation 790 791 def initialize(codeOrigin, opcode, operands, annotation=nil) 790 792 super(codeOrigin) 791 793 @opcode = opcode 792 794 @operands = operands 795 @annotation = annotation 793 796 end 794 797 … … 798 801 799 802 def mapChildren(&proc) 800 Instruction.new(codeOrigin, @opcode, @operands.map(&proc) )803 Instruction.new(codeOrigin, @opcode, @operands.map(&proc), @annotation) 801 804 end 802 805
Note:
See TracChangeset
for help on using the changeset viewer.