From 4e6b3a206fa4ad8bb0b664f7674c9a70376d6e26 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 16 Jul 2012 14:51:15 +0200 Subject: Imported WebKit commit 953baa67aa07087b6ecd4199351ec554c724e27d (http://svn.webkit.org/repository/webkit/trunk@122676) --- Source/JavaScriptCore/offlineasm/ast.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Source/JavaScriptCore/offlineasm/ast.rb') diff --git a/Source/JavaScriptCore/offlineasm/ast.rb b/Source/JavaScriptCore/offlineasm/ast.rb index e555b5d98..86ad6bcb2 100644 --- a/Source/JavaScriptCore/offlineasm/ast.rb +++ b/Source/JavaScriptCore/offlineasm/ast.rb @@ -21,6 +21,8 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF # THE POSSIBILITY OF SUCH DAMAGE. +require "config" + # # Base utility types for the AST. # @@ -784,12 +786,13 @@ class AbsoluteAddress < NoChildren end class Instruction < Node - attr_reader :opcode, :operands + attr_reader :opcode, :operands, :annotation - def initialize(codeOrigin, opcode, operands) + def initialize(codeOrigin, opcode, operands, annotation=nil) super(codeOrigin) @opcode = opcode @operands = operands + @annotation = annotation end def children @@ -797,7 +800,7 @@ class Instruction < Node end def mapChildren(&proc) - Instruction.new(codeOrigin, @opcode, @operands.map(&proc)) + Instruction.new(codeOrigin, @opcode, @operands.map(&proc), @annotation) end def dump -- cgit v1.2.1