@@ -160,7 +160,6 @@ def reachable_exceptions_str(symtab, effective_xlen=nil)
160160 if @data [ "operation()" ] . nil?
161161 [ ]
162162 else
163- # RubyProf.start
164163 etype = symtab . get ( "ExceptionCode" )
165164 if effective_xlen . nil?
166165 if symtab . archdef . multi_xlen?
@@ -174,49 +173,41 @@ def reachable_exceptions_str(symtab, effective_xlen=nil)
174173 puts "done"
175174 pruned_ast = pruned_operation_ast ( symtab , 64 )
176175 print "Determining reachable exceptions from #{ name } #RV64..."
177- e64 = mask_to_array ( prunted_ast . reachable_exceptions ( fill_symtab ( symtab , 64 , pruned_ast ) ) ) . map { |code |
176+ e64 = mask_to_array ( pruned_ast . reachable_exceptions ( fill_symtab ( symtab , 64 , pruned_ast ) ) ) . map { |code |
178177 etype . element_name ( code )
179178 }
180- puts done
179+ puts " done"
181180 e32 + e64
182181 ) . uniq
183182 else
184183 pruned_ast = pruned_operation_ast ( symtab , base )
185184 print "Determining reachable exceptions from #{ name } ..."
186- result = RubyProf . profile do
187- e = mask_to_array ( pruned_ast . reachable_exceptions ( fill_symtab ( symtab , base , pruned_ast ) ) ) . map { |code |
188- etype . element_name ( code )
189- }
190- end
191- RubyProf ::CallStackPrinter . new ( result ) . print ( File . open ( "#{ name } -profile.html" , "w+" ) , { } )
185+ e = mask_to_array ( pruned_ast . reachable_exceptions ( fill_symtab ( symtab , base , pruned_ast ) ) ) . map { |code |
186+ etype . element_name ( code )
187+ }
192188 puts "done"
193189 e
194190 end
195191 else
196192 effective_xlen = symtab . archdef . mxlen
197193 pruned_ast = pruned_operation_ast ( symtab , effective_xlen )
198194 print "Determining reachable exceptions from #{ name } ..."
199- # result = RubyProf.profile do
200- e = mask_to_array ( pruned_ast . reachable_exceptions ( fill_symtab ( symtab , effective_xlen , pruned_ast ) ) ) . map { |code |
201- etype . element_name ( code )
202- }
203- # end
204- # RubyProf::FlameGraphPrinter.new(result).print(File.open("#{name}-profile.html", "w+"), {})
195+ e = mask_to_array ( pruned_ast . reachable_exceptions ( fill_symtab ( symtab , effective_xlen , pruned_ast ) ) ) . map { |code |
196+ etype . element_name ( code )
197+ }
205198 puts "done"
206199 e
207200 end
208201 else
209202 pruned_ast = pruned_operation_ast ( symtab , effective_xlen )
210203
211204 print "Determining reachable exceptions from #{ name } ..."
212- e = mask_to_array ( prunted_ast . reachable_exceptions ( fill_symtab ( symtab , effective_xlen , pruned_ast ) ) ) . map { |code |
205+ e = mask_to_array ( pruned_ast . reachable_exceptions ( fill_symtab ( symtab , effective_xlen , pruned_ast ) ) ) . map { |code |
213206 etype . element_name ( code )
214207 }
215208 puts "done"
216209 e
217210 end
218- # result = RubyProf.stop
219- # RubyProf::FlatPrinter.new(result).print(STDOUT)
220211 end
221212 end
222213
0 commit comments