jit.js

JIT Assembler in javascript

  • Owner: js-js/jit.js
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

JIT Assembler

Build Status
NPM version

Logo

Instructions

var jit = require('jit.js');

var fn = jit.compile(function() {
  this.Proc(function() {
    this.mov('rax', 42);
    this.Return();
  });
});

console.log(fn());  // 42

More information is available on the wiki pages

LICENSE

This software is licensed under the MIT License.

Copyright Fedor Indutny, 2015.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.

Main metrics

Overview
Name With Ownerjs-js/jit.js
Primary LanguageJavaScript
Program languagePython (Language Count: 3)
Platform
License:
所有者活动
Created At2013-03-07 11:39:35
Pushed At2015-11-04 16:48:34
Last Commit At2015-11-04 11:48:22
Release Count70
Last Release Namev1.18.2 (Posted on 2015-11-04 11:48:22)
First Release Namev0.0.2 (Posted on 2013-10-31 19:40:37)
用户参与
Stargazers Count288
Watchers Count15
Fork Count16
Commits Count223
Has Issues Enabled
Issues Count4
Issue Open Count1
Pull Requests Count4
Pull Requests Open Count0
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private