summaryrefslogtreecommitdiff
path: root/tools/generate-operator-out.py
AgeCommit message (Collapse)Author
2018-02-21Remove generate-operator-out.py symlinks Alex Light
Rewrite the operator out step to use a python_host_binary instead. Test: mma -j50 Change-Id: I1503ad9851bf6d7bae8964f7cb91ba7f19b660ca
2015-10-21enum operator<<() script fails with do { } while cond; Bruce Hoult
The script assumes that a line containing a '}' and a ';' will only and always signal the end of a scope. Unfortunately, this also matches '} while (myCond);', thus incorrectly thinking it has reached the end of a scope. This can result in enums being emitted without scope resolution (or with insufficient scope resolution), cause compile errors. Change-Id: I6e1b3453b941bff93ddd0b2a9fd3950182668728 Signed-off-by: randy.jeong <randy.jeong@samsung.com>
2015-06-09Follow up on CL 151605 Sebastien Hertz
- Fixes return type of StackedShadowFrameRecord::GetType - Makes StackedShadowFrameType an enum class (scoped enum) - Moves DeoptimizationReturnValueRecord and StackedShadowFrameRecord to thread.cc file and use forward declaration in thread.h header - Fixes tools/generate-operator-out.py for scoped enum classes. Bug: 20845490 Change-Id: I6b67e288b1db563699161e58ec2e2330d42dd8f5
2014-11-03Remove -Wno-unused-parameter and -Wno-sign-promo from base cflags. Ian Rogers
Fix associated errors about unused paramenters and implict sign conversions. For sign conversion this was largely in the area of enums, so add ostream operators for the effected enums and fix tools/generate-operator-out.py. Tidy arena allocation code and arena allocated data types, rather than fixing new and delete operators. Remove dead code. Change-Id: I5b433e722d2f75baacfacae4d32aef4a828bfe1b
2014-07-14Make generate-operator-out.py compatible with Python 3.x Bernhard Rosenkränzer
Adapt generate-operator-out.py to work with both Python 2.x (x >= 6) and 3.x Change-Id: I20f1b212069f368f3cf289dfd6b2aaee393cac68 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2014-06-25ART: Native support for multidex Andreas Gampe
Native support for zip files with multiple classesX.dex. Works by explicitly looking for those files in ascending order. As these files have no file system representation for themselves, introduce synthetic dex locations: the name of the originating file plus a colon plus the name of the dex file, e.g., test.jar:classes2.dex. Opening a zip dex file will return all dex files in this way. This keeps the changes to dex2oat minimal. To hide multidex/synthetic names from the Java layer, let the handle of dalvik.system.DexFile refer to a vector of DexFile objects. When opening a location, test possible synthetic names and add them to the vector. Thus, the original multidex jar in the classpath will be associated with all embedded dex files. Change-Id: I0de107e1369cbc94416c544aca3b17525c9eac8b
2014-02-28Fix clang to compile and run host tests. Ian Rogers
Don't use the computed goto interpreter with clang 3.4 as it causes compilation to hang. Avoid inclusion of LLVM_(HOST|DEVICE)_BUILD_MK except for with portable as it sets clang incompatible cflags. Most fixes are self-evident, for the quick dex file method inliner the enums were being used with ostreams, so fix the enums and operator out python script to allow this. Note this change effects portable but this is untestable as portable was broken by ELF file and mc linker changes. Change-Id: Ia54348f6b1bd3f76d3b71c6e8c5f97626386b903
2013-11-28tools: use '/usr/bin/env python' instead of '/usr/bin/python' Chirayu Desai
* This is how it is done in other scripts in the AOSP tree, as '/usr/bin/python' may be python3 on some distros, which isn't supported yet. Change-Id: I0d9857fc6a122f505953fddcd6244dad75b1838a
2013-10-06Fix generate-operator-out.py's copyright header. Elliott Hughes
When I created this file I just copied the license from the first .py file I came across, without noticing it wasn't the appropriate license. Change-Id: I63ccec962a7a906a393a9889fdda35861d977e9c
2013-07-12Create separate Android.mk for main build targets Brian Carlstrom
The runtime, compiler, dex2oat, and oatdump now are in seperate trees to prevent dependency creep. They can now be individually built without rebuilding the rest of the art projects. dalvikvm and jdwpspy were already this way. Builds in the art directory should behave as before, building everything including tests. Change-Id: Ic6b1151e5ed0f823c3dd301afd2b13eb2d8feb81
2012-06-07Clean up the confusing comment-related logic a bit. Elliott Hughes
This still passes 034, but is a bit clearer because we get all comments out of the way early on. Change-Id: I580ebdca24a4a0738ee102536c8d5b076427264d
2012-06-06Make generate-operator-out.py only skip // line comments Brian Carlstrom
Change-Id: I5d279b735b383a901fd25034fdd9202c8e97582d
2012-06-06Auto-generate operator<< for enum ::art:Class::Status. Elliott Hughes
This requires a bit more work in the script to support enums nested inside classes. Change-Id: Id0e3561c3675214f74f47ac9f36ba82c41fa775d
2012-04-05Don't explicitly request python2.4. Elliott Hughes
This is obsolete historical cruft. Change-Id: I140a93ac04f5be0034812f90204e6f9ae36d2d5f
2012-04-04Use the operator<< generator more widely. Elliott Hughes
Change-Id: Iae3b8f32f49f4c91cd41c53bbafb95db071d57bb
2012-04-04Fix the operator<< generation to work with "mmm" as well as "mm". Elliott Hughes
Change-Id: I457a74f1be68debfd351c63f282c3579c6becda2
2012-04-04Start automatically generating operator<<s for enums. Elliott Hughes
Change-Id: I0f53db089b9a1ba38ce82b75ab22448877be67e0