• Stars
    star
    458
  • Rank 95,591 (Top 2 %)
  • Language
    C++
  • Created about 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

JavaScriptCore on WebAssembly

JSC.js is a JavaScript engine that can run on top of your browser's JavaScript engine. It's based on the JavaScript engine (JavaScriptCore) of WebKit and compiled to wasm with emscripten. Therefore, if you're using Safari, you are running its JavaScript engine on top of itself.

The size of JSC.wasm is around 4MB (compressed js and mem file).

Demo: Link

ScreenShot

Build

Preparation

  • install emscripten
  • install python, ruby, ninja, etc.
  • start a terminal.
  • go to emsdk installation path and run emsdk_env.bat
  • go to JSC.js folder and run prep_env.bat

Build with gn

> gn gen out --args="target_os=\"wasm\""
> ninja -C out

Build test shell on Windows

Usually, you don't need this but with the test shell, you can easily debug and test JSC.js on windows when there's no good debugger for JSC.js on wasm.

Preparation

  • install python, ruby, etc.
  • start a terminal.
  • install visual studio
  • run vcvarsall.bat amd64 in terminal

Build with gn

> gn gen out --args="target_os=\"win\""
> ninja -C out

More Repositories

1

undotree

The undo history visualizer for VIM
Vim Script
3,748
star
2

flexbison

Flex and bison sample code
Yacc
74
star
3

code_complete

Function parameter complete, code snippets, and much more.
Vim Script
66
star
4

fencview

Auto detect CJK and Unicode file encodings.
Vim Script
65
star
5

Silverfir

A WebAssembly runtime for embedded systems
C
53
star
6

echofunc

Display c/c++ function declaration in vim command/status line.
Vim Script
45
star
7

VimExplorer

VE - the File Manager within Vim!
Vim Script
42
star
8

vim-seattle

An elegant and efficient color scheme for coders
Vim Script
37
star
9

no_english_mode

防止微软拼音输入法启动切换到英文模式
Rust
25
star
10

desertEx

A desert based scheme with enhanced colors.
Vim Script
20
star
11

Chromium_Base

It's the 'Base' library of Chromium, including thread, memory, trace event and so on.
C++
18
star
12

smaps

Analyze memory statistics in use of /proc/<pid>/smaps.
C
11
star
13

libTraceEvent

A Modern Trace Event Library
C++
8
star
14

CMake-Tutorial

Official tutorials ripped from CMake source
CMake
5
star
15

Halftone-QR-Codes

It's a mirror of http://cgv.cs.nthu.edu.tw/Projects/Recreational_Graphics/Halftone_QRCodes/
C++
5
star
16

WebKit-Porting

WebKit 在嵌入式设备上的移植和定制
4
star
17

PortableJavaScriptCore

A Modern JavaScript Engine Optimized for Portability
C++
4
star
18

heap_profiler

A lightweight heap profiler for Android
Perl
2
star
19

gdb_pretty_printer

Python
2
star
20

lldb-cheatsheet

A full command line cheat-sheet for LLDB
1
star
21

Shell-osx

An OSX-like theme for gnome-shell, forked from Elementary theme which was designed by Sean Wilson.
1
star
22

udp_tunnel

Python
1
star