Changes between Version 6 and Version 7 of StaticRootingAnalysis
- Timestamp:
- Sep 3, 2016, 6:08:41 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StaticRootingAnalysis
v6 v7 35 35 {{{ 36 36 cd 0ad/libraries/spidermonkey 37 yves@yves-desktop:~/Projekte/0ad/libraries/source/spidermonkey/mozjs 31/js/src/build-release$ CFLAGS="-B/usr/lib/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu" CXXFLAGS="-B/usr/lib/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu" ../configure --enable-shared-js --disable-tests --enable-gcgenerational--enable-valgrind --with-nspr-libs="-lplds4 -lplc4 -lnspr4" --with-nspr-cflags="-I/usr/include/nspr" --enable-optimize --without-intl-api37 yves@yves-desktop:~/Projekte/0ad/libraries/source/spidermonkey/mozjs-38.0.0/js/src/build-release$ CFLAGS="-B/usr/lib/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu" CXXFLAGS="-B/usr/lib/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu" ../configure --enable-shared-js --disable-tests --enable-valgrind --with-nspr-libs="-lplds4 -lplc4 -lnspr4" --with-nspr-cflags="-I/usr/include/nspr" --enable-optimize --without-intl-api 38 38 }}} 39 39 1. Build SpiderMonkey 40 40 {{{ 41 yves@yves-desktop:~/Projekte/0ad/libraries/source/spidermonkey/mozjs 31/js/src/build-release$ ../devtools/rootAnalysis/run_complete --build-root=/home/yves/Projekte/0ad/libraries/source/spidermonkey/mozjs31/js/src/build-release --binaries=/path/to/sixgill/usr/bin --wrap-dir=/path/to/sixgill/usr/libexec/sixgill/scripts/wrap_gcc --buildcommand='make' --foreground .41 yves@yves-desktop:~/Projekte/0ad/libraries/source/spidermonkey/mozjs-38.0.0/js/src/build-release$ ../devtools/rootAnalysis/run_complete --build-root=/home/yves/Projekte/0ad/libraries/source/spidermonkey/mozjs38/js/src/build-release --binaries=/path/to/sixgill/usr/bin --wrap-dir=/path/to/sixgill/usr/libexec/sixgill/scripts/wrap_gcc --buildcommand='make' --foreground . 42 42 }}} 43 1. There should be 5 .xdb files in libraries/source/spidermonkey/mozjs 31/js/src/build-release. Copy them to build/workspaces/gcc.43 1. There should be 5 .xdb files in libraries/source/spidermonkey/mozjs-38.0.0/js/src/build-release. Copy them to build/workspaces/gcc. 44 44 1. Build 0 A.D. 45 45 {{{ 46 yves@yves-desktop:~/Projekte/0ad/build/workspaces/gcc$ perl ../../../libraries/source/spidermonkey/mozjs 31/js/src/devtools/rootAnalysis/run_complete --build-root=/home/yves/Projekte/0ad/build/workspaces/gcc --binaries=/path/to/sixgill/usr/bin --wrap-dir=/path/to/sixgill/usr/libexec/sixgill/scripts/wrap_gcc --buildcommand='CXXFLAGS="-I/usr/include/x86_64-linux-gnu" make pyrogenesis' --foreground .46 yves@yves-desktop:~/Projekte/0ad/build/workspaces/gcc$ perl ../../../libraries/source/spidermonkey/mozjs-38.0.0/js/src/devtools/rootAnalysis/run_complete --build-root=/home/yves/Projekte/0ad/build/workspaces/gcc --binaries=/path/to/sixgill/usr/bin --wrap-dir=/path/to/sixgill/usr/libexec/sixgill/scripts/wrap_gcc --buildcommand='CXXFLAGS="-I/usr/include/x86_64-linux-gnu" make pyrogenesis' --foreground . 47 47 }}} 48 48 1. After the build is completed, the .xdb files in 0ad/build/workspaces/gcc should contain the information from the SpiderMonkey build and the 0 A.D. build. … … 66 66 1. Create a directory that will contain the output files of the analysis. This directory will be called "/path/to/analyzedir". 67 67 1. Copy the .xdb files from 0ad/build/workspaces/gcc to /path/to/analyzedir. 68 1. WORKAROUND: Change line 123 in mozjs 31/js/src/devtools/rootAnalysis/analyzeRoots.js from "assert(false);" to "return false;".68 1. WORKAROUND: Change line 123 in mozjs-38.0.0/js/src/devtools/rootAnalysis/analyzeRoots.js from "assert(false);" to "return false;". 69 69 1. Run the analyze script. 70 70 {{{ 71 @yves-desktop:~/Projekte/analyze_hazards$ python /home/yves/Projekte/0ad/libraries/source/spidermonkey/mozjs 31/js/src/devtools/rootAnalysis/analyze.py callgraph71 @yves-desktop:~/Projekte/analyze_hazards$ python /home/yves/Projekte/0ad/libraries/source/spidermonkey/mozjs-38.0.0/js/src/devtools/rootAnalysis/analyze.py callgraph 72 72 }}} 73 73