Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

23 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages