Mas0nShi / v8-bytecode-interpreter

A mini bytecode Interpreter for v8.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

v8 byteccode interpreter

A micro-bytecode interpreter for V8.

img

Usage

Install dependencies

cd v8-byteccode-interpreter
npm install -g

Run example/dist/for2.txt (WithoutDebugging)

tsc -p tsconfig.json
node ./dist/example/test/for2.js

Run example/dist/for.txt (Debugging)

tsc -p tsconfig.json
DEBUG=1 node ./dist/example/test/for2.js

Support List

Name Status
Ldar
LdaZero
LdaSmi
LdaSmi.Wide
LdaSmi.ExtraWide
LdaUndefined
LdaNull
LdaGlobal
LdaConstant
- -
LdaFalse
LdaTrue
- -
GetNamedProperty / LdaNamedProperty
GetKeyedProperty
- -
CallProperty1
Return
- -
Star
StaGlobal
SetKeyedProperty
- -
CreateEmptyArrayLiteral
CreateArrayLiteral
- -
TestLessThan
TestLessThanOrEqual
TestGreaterThan
TestGreaterThanOrEqual
TestEqual
TestEqualStrict
- -
Jump
JumpIfFalse
JumpIfTrue
JumpLoop
- -
MulSmi
- -
Add
- -
Inc

About

A mini bytecode Interpreter for v8.


Languages

Language:TypeScript 96.9%Language:JavaScript 3.1%