Changeset 123147 in webkit for trunk/Source/JavaScriptCore/offlineasm/ast.rb
- Timestamp:
- Jul 19, 2012, 1:53:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/ast.rb
r122650 r123147 807 807 "\t" + opcode.to_s + " " + operands.collect{|v| v.dump}.join(", ") 808 808 end 809 810 def lowerDefault 811 case opcode 812 when "localAnnotation" 813 $asm.putLocalAnnotation 814 when "globalAnnotation" 815 $asm.putGlobalAnnotation 816 else 817 raise "Unhandled opcode #{opcode} at #{codeOriginString}" 818 end 819 end 809 820 end 810 821 … … 1181 1192 class Macro < Node 1182 1193 attr_reader :name, :variables, :body 1183 1194 1184 1195 def initialize(codeOrigin, name, variables, body) 1185 1196 super(codeOrigin) … … 1203 1214 1204 1215 class MacroCall < Node 1205 attr_reader :name, :operands 1206 1207 def initialize(codeOrigin, name, operands )1216 attr_reader :name, :operands, :annotation 1217 1218 def initialize(codeOrigin, name, operands, annotation) 1208 1219 super(codeOrigin) 1209 1220 @name = name … … 1211 1222 raise unless @operands 1212 1223 @operands.each{|v| raise unless v} 1224 @annotation = annotation 1213 1225 end 1214 1226 … … 1218 1230 1219 1231 def mapChildren(&proc) 1220 MacroCall.new(codeOrigin, @name, @operands.map(&proc) )1232 MacroCall.new(codeOrigin, @name, @operands.map(&proc), @annotation) 1221 1233 end 1222 1234
Note:
See TracChangeset
for help on using the changeset viewer.