aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/masm/disassembler/udis86
Commit message (Collapse)AuthorAgeFilesLines
* Allow udis86 generation scripts to work with a more modern pythonLuca Di Sera2025-07-083-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | V4's baseline JIT uses some old JavaScriptCore code to optimize functions. As part of the offering, it is possible to use a disassembler, if enabled, to peek into the code that the JIT has generated for a function. For i386 and x86_64 udis86 is used, of which we bundle a very old version. To build and make use of udis86 it is necessary to generate some code running some bundled python scripts. The scripts are still written for a python2 target, which has long been sunsetted, making the scripts difficult to run on more modern systems. To allow the scripts to be run more easily, some modifications were made to support more modern pythons versions. In particular, print statements were modified to print functions. Furthermore, usages of the division operator("/") were modified to the integer division operator("//"), as the meaning of "/" was changed to non-integer division between python 2 and 3. Finally, a usage of the sort method was modified with self assignment to a `sorted()` value, due to python 3 not returning a list anymore, which has a sort method, on dict's `items` method. The changes are expected to mostly be semantically compatible, albeit it wasn't ascertained whether the behavior of other parts of the script might have been silently hit when running on a more modern python version. Informally, the script was used with a python 3.13 version, and the generated code was used to disassemble a few jitted function with success during an unrelated bug investigation. Change-Id: Ide0bcf4d29a51759f9bb9bd07d940562a8cfcc04 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Fix MSVC2012 compiler warnings.Erik Verbruggen2014-03-051-1/+1
| | | | | | | | Tested on both win32 and win64. Change-Id: I47755e2da51829e61e1452eaaf84a057224b478b Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
* V4 JIT: enable disassembler on windows.Erik Verbruggen2014-03-032-0/+4
| | | | | Change-Id: I55a2a96a1a774c79cc2146c6b47d441fede1d102 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* WTF/JSC update to r148273Simon Hausmann2013-04-127-7/+0
| | | | | | | | | | | | | This brings in various bug fixes in the ARM and MIPS assemblers as well as a Yarr crash fix and performance fix. This change doesn't compile as-is, but the next change will apply the modifications necessary to compile. That'll make future updates easier as it allows for cherry-picking because the modifications are usually always the same. Change-Id: Iac32f62c71e8ff908deb41f28f12fbc98c0823e1 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Say hello to QtV4 module.Jędrzej Nowacki2013-01-3018-0/+12653
Change-Id: I507cd5707b7d7223a0d901cf939896fb2649b684 Reviewed-by: Lars Knoll <lars.knoll@digia.com>