Chromium Code Reviews
DescriptionStreamline the CPS IR Visitor interface.
Previously, the visitor interface combined two things: (1) the
interface for visiting concrete IR instruction classes and (2) a
default implementation that called the visit function for the
superclass explicitly (but not through super). For most classes that
extended Visitor this inherited implementation was used to throw an
exception if a visit method for a new class was forgotten.
Instead, it's better to make this class purely an interface which will
give a static warning when a visit method is forgotten. This change
forces us to implement methods that previously had an inherited (not
necessary correct) implementation.
BUG=
R=asgerf@google.com, karlklose@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44235
Patch Set 1 #Patch Set 2 : Signal an error in visit methods that should not be called. #Messages
Total messages: 7 (2 generated)
|