Skip to content

sloanyang/jitedjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jitedjs

A new javascript engine with just in time compiler tech inside.

This is a project trying to create a javascript virtual machine (VM) from scratch.

Project Targets

  • Milestone 1. Create a VM for a subset of javascript language (js-minus) running inside a interpreter
  • Milestone 2. Update the interpreter to use just in time compiler.
  • Milestone 3. Introduce some of the builtin functions (such as some pow)
  • Milestone 4. Update the js-minus languague to full versioned javascript language (should be break down into some smaller targets)
  • Milestone 5. Try sunpider / v8 benchmark.

Future:

How to build

Build Environments:

Ubuntu 11.10 x86-64 java version "1.6.0_30" tested. But should be ok for most linux system.

IMPORTANT:

  • Now only working on x86-64 bit system!!!!!
  • Now only support move function jit
  • If you want a none jit version, please check the interpreter/Interpreter.cpp +18 change the #if 1 to #if 0

Step:

  • Checkout the tags you want.
  • $ source ./env.sh
  • $ ./build.sh

How to test

./main /test/test_smaller.js

buildin functions

  • print
  • println
  • clock
  • format
  • disassemble
  • collectgarbage
  • readfile
  • writefile
  • loadfile
  • type
  • insert
  • remove
  • tostring
  • random
  • srand
  • time

About

A new javascript engine with just in time compiler tech inside.

Resources

License

Stars

Watchers

Forks

Packages

No packages published