Skip to content

Mas0nShi/v8-bytecode-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published