Changeset 217526 in webkit for trunk/Source/JavaScriptCore/generate-bytecode-files
- Timestamp:
- May 28, 2017, 1:12:09 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/generate-bytecode-files
r206533 r217526 1 1 #! /usr/bin/python 2 2 3 # Copyright (C) 2014 Apple Inc. All rights reserved.3 # Copyright (C) 2014-2017 Apple Inc. All rights reserved. 4 4 # 5 5 # Redistribution and use in source and binary forms, with or without … … 202 202 bytecodeHFile.write("#define NUMBER_OF_{0}_IDS {1}\n\n".format(section["macroNameComponent"], bytecodeNum)) 203 203 204 if bytecodeHFilename and section['emitOpcodeIDStringValuesInHFile']: 205 bytecodeNum = 0 206 for bytecode in section["bytecodes"]: 207 bytecodeHFile.write("#define {0}_value_string \"{1}\"\n".format(bytecode["name"], bytecodeNum)) 208 firstMacro = False 209 bytecodeNum = bytecodeNum + 1 210 211 bytecodeHFile.write("\n") 212 204 213 if initASMFileName and section['emitInASMFile']: 205 214 prefix = ""
Note:
See TracChangeset
for help on using the changeset viewer.