Showing only posts tagged JavaScript. Show all posts.

JavaScript Interpreter Analysis, Mozilla Unified

This article details the analysis of available datum associated with each bytecode of the JavaScript interpreter in Mozilla Unified repo (that is also being used in Firefox).

Datum

The focus of the bytecode interpreter is the loop (INTERPRETER_LOOP() C macro).

Available structures are given in Interpreter() function:

  • Run State machine …

Debugging `jsshell`

This article details how to perfom debugging of the jsshell in Mozilla Unified repository.

Setting Up jsshell Debug

With the js binary built (as described in Firefox JSSHELL, we can then start debugging.

Preparing Work Directory

cd firefox
          mkdir test
          cd test
          DISTDIR=../repo/mozilla-unified/obj-debug-x86_64-pc-linux-gnu/dist/bin/js
          ln …

Building `jsshell`

After Mercuralizing the Mozilla Firefox repository, the next focus is to create a MOZCONFIG. MOZCONFIG is a term and also an environment variable that holds various build settings for Mozilla projects (such as Firefox).

MOZCONFIG

we make use of a $HOME/mozconfigs directory to hold our generic but personalized build …