Skip to content
  • oliver@apple.com's avatar
    Autogenerate Opcode definitions · 340e1c18
    oliver@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=94840
    
    Reviewed by Gavin Barraclough.
    
    Start the process of autogenerating the code emission for the bytecode.
    We'll just start with automatic generation of the list of Opcodes as that
    requires the actual definition of the opcodes, and the logic for parsing
    them.
    
    Due to some rather annoying dependency cycles, this initial version has
    the OpcodeDefinitions.h file checked into the tree, although with some
    work I hope to be able to fix that.
    
    * DerivedSources.make:
    * JavaScriptCore.xcodeproj/project.pbxproj:
    * bytecode/Opcode.h:
      Include OpcodeDefinitions.h as our definitive source of info
      about the opcodes.
    * bytecode/OpcodeDefinitions.h: Added.
      Autogenerated file
    * bytecode/opcodes: Added.
      The new opcode definition file
    * opcode_definition_generator.py: Added.
    (generateOpcodeDefinition):
    (generate):
      Module that generates the content for OpcodeDefinitions.h
    * opcode_generator.py: Added.
    (printUsage):
    (main):
      Driver script
    * opcode_parser.py: Added.
      Simple parser for the opcode definitions.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    340e1c18