Commits

Alex Gaynor committed bbc7904

Fix jitviwer for regex.

  • Participants
  • Parent commits 1e04185

Comments (0)

Files changed (1)

File pypy/tool/jitlogparser/parser.py

 
 class Op(object):
     bridge = None
-    
+
     def __init__(self, name, args, res, descr):
         self.name = name
         self.args = args
     def parse_from_input(cls, input):
         return cls(input, None, {}, 'lltype', None,
                    nonstrict=True).parse()
-    
+
     def parse_args(self, opname, argspec):
         if not argspec.strip():
             return [], None
     bytecode_name = None
     is_bytecode = True
     inline_level = None
-    
+
     def __init__(self, operations, storage):
         if operations[0].name == 'debug_merge_point':
             self.inline_level = int(operations[0].args[1])
         self.operations = operations
         self.storage = storage
         self.code = storage.disassemble_code(self.filename, self.startlineno)
-        assert self.code is not None, 'could not find source file'
+        assert self.filename is None or self.code is not None, 'could not find source file'
 
     def repr(self):
         if self.filename is None:
 
     # factory method
     TraceForOpcode = TraceForOpcode
-    
+
     def __init__(self, chunks, path, storage):
         self.path = path
         self.chunks = chunks
             return "Unknown"
         return "%s, file '%s', line %d" % (self.name, self.filename,
                                            self.startlineno)
-        
+
     def __repr__(self):
         return "[%s]" % ", ".join([repr(chunk) for chunk in self.chunks])