Ignore:
Timestamp:
Aug 23, 2012, 4:49:48 PM (13 years ago)
Author:
[email protected]
Message:

Autogenerate Opcode definitions
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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r126494 r126505  
     12012-08-23  Oliver Hunt  <[email protected]>
     2
     3        Autogenerate Opcode definitions
     4        https://bugs.webkit.org/show_bug.cgi?id=94840
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        Start the process of autogenerating the code emission for the bytecode.
     9        We'll just start with automatic generation of the list of Opcodes as that
     10        requires the actual definition of the opcodes, and the logic for parsing
     11        them.
     12
     13        Due to some rather annoying dependency cycles, this initial version has
     14        the OpcodeDefinitions.h file checked into the tree, although with some
     15        work I hope to be able to fix that.
     16
     17        * DerivedSources.make:
     18        * JavaScriptCore.xcodeproj/project.pbxproj:
     19        * bytecode/Opcode.h:
     20          Include OpcodeDefinitions.h as our definitive source of info
     21          about the opcodes.
     22        * bytecode/OpcodeDefinitions.h: Added.
     23          Autogenerated file
     24        * bytecode/opcodes: Added.
     25          The new opcode definition file
     26        * opcode_definition_generator.py: Added.
     27        (generateOpcodeDefinition):
     28        (generate):
     29          Module that generates the content for OpcodeDefinitions.h
     30        * opcode_generator.py: Added.
     31        (printUsage):
     32        (main):
     33          Driver script
     34        * opcode_parser.py: Added.
     35          Simple parser for the opcode definitions.
     36
    1372012-08-23  Mark Hahnenberg  <[email protected]>
    238
Note: See TracChangeset for help on using the changeset viewer.