Changes between Version 6 and Version 7 of StaticRootingAnalysis


Ignore:
Timestamp:
Sep 3, 2016, 6:08:41 PM (8 years ago)
Author:
Itms
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StaticRootingAnalysis

    v6 v7  
    3535{{{
    3636cd 0ad/libraries/spidermonkey
    37 yves@yves-desktop:~/Projekte/0ad/libraries/source/spidermonkey/mozjs31/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-api
     37yves@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
    3838}}}
    39391. Build SpiderMonkey
    4040{{{
    41 yves@yves-desktop:~/Projekte/0ad/libraries/source/spidermonkey/mozjs31/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 .
     41yves@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 .
    4242}}}
    43 1. There should be 5 .xdb files in libraries/source/spidermonkey/mozjs31/js/src/build-release. Copy them to build/workspaces/gcc.
     431. There should be 5 .xdb files in libraries/source/spidermonkey/mozjs-38.0.0/js/src/build-release. Copy them to build/workspaces/gcc.
    44441. Build 0 A.D.
    4545{{{
    46 yves@yves-desktop:~/Projekte/0ad/build/workspaces/gcc$ perl ../../../libraries/source/spidermonkey/mozjs31/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 .
     46yves@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 .
    4747}}}
    48481. 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.
     
    66661. Create a directory that will contain the output files of the analysis. This directory will be called "/path/to/analyzedir".
    67671. Copy the .xdb files from 0ad/build/workspaces/gcc to /path/to/analyzedir.
    68 1. WORKAROUND: Change line 123 in mozjs31/js/src/devtools/rootAnalysis/analyzeRoots.js from "assert(false);" to "return false;".
     681. WORKAROUND: Change line 123 in mozjs-38.0.0/js/src/devtools/rootAnalysis/analyzeRoots.js from "assert(false);" to "return false;".
    69691. Run the analyze script.
    7070{{{
    71 @yves-desktop:~/Projekte/analyze_hazards$ python /home/yves/Projekte/0ad/libraries/source/spidermonkey/mozjs31/js/src/devtools/rootAnalysis/analyze.py callgraph
     71@yves-desktop:~/Projekte/analyze_hazards$ python /home/yves/Projekte/0ad/libraries/source/spidermonkey/mozjs-38.0.0/js/src/devtools/rootAnalysis/analyze.py callgraph
    7272}}}
    7373