Giter VIP home page Giter VIP logo

jitedjs's Introduction

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

jitedjs's People

Contributors

sloanyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jitedjs's Issues

Math lib

Introduce builtin functions: math lib

js-minus

Create a VM for a subset of javascript language (js-minus) running inside a interpreter

move jitted

Update the interpreter to use just in time compiler for move instruction.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.