Skip to content

Commit

Permalink
feat: move opcode counters to uint64 (#4)
Browse files Browse the repository at this point in the history
* feat: move the counter to 64bit

* fix test

* increase mocha timeout

* fix prettier
  • Loading branch information
leanmendoza authored and menduz committed May 4, 2023
1 parent d497c33 commit a76c36e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"tsc": "node_modules/.bin/tsc",
"build": "make dist",
"doc": "typedoc",
"test": "TS_NODE_TRANSPILE_ONLY=true mocha 'ts/**/*.test.ts'",
"test-dist": "cd dist && TS_NODE_TRANSPILE_ONLY=true mocha --require source-map-support/register *.test.js",
"test-fast": "TEST_NO_ASYNC=true yarn test 'ts/**/*.test.ts'",
"test": "TS_NODE_TYPE_CHECK=false mocha --timeout 15000",
"test-dist": "cd dist && TS_NODE_TYPE_CHECK=false mocha --require source-map-support/register *.test.js --timeout 15000",
"test-fast": "TS_NODE_TYPE_CHECK=false TEST_NO_ASYNC=true mocha --timeout 15000",
"test-all": "TEST_LEAK=1 yarn test && TEST_LEAK=1 yarn test-dist",
"prettier": "prettier --write .",
"prettier-check": "prettier --check .",
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ts/generated/emscripten-module.WASM_RELEASE_ASYNCIFY.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ts/generated/emscripten-module.WASM_RELEASE_SYNC.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions ts/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ export async function newQuickJSWASMModule(
wasmModule.type = "sync"
const ffi = new QuickJSFFI(wasmModule)

// call once to compile it
ffi.QTS_ResetOpcodeCounter()
ffi.QTS_GetOpcodeCounter()

return new QuickJSWASMModule(wasmModule, ffi)
}

Expand Down

0 comments on commit a76c36e

Please sign in to comment.