Skip to content

Commit

Permalink
compiler: disable pgo for website
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Sep 12, 2024
1 parent b478d66 commit 8702232
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default (code, module = undefined) => {

// change some prefs by default for c/native
if (target !== 'wasm') {
Prefs.pgo = Prefs.pgo === false ? false : true; // enable pgo
Prefs.pgo = Prefs.pgo === false || globalThis.document ? false : true; // enable pgo
Prefs.passiveData = false; // disable using passive Wasm data as unsupported by 2c for now
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "porffor",
"description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
"version": "0.42.1+240c1785e",
"version": "0.42.2+801066453",
"author": "CanadaHonk",
"license": "MIT",
"scripts": {},
Expand Down
2 changes: 1 addition & 1 deletion runner/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import fs from 'node:fs';
globalThis.version = '0.42.1+240c1785e';
globalThis.version = '0.42.2+801066453';

// deno compat
if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion test262/history.json

Large diffs are not rendered by default.

0 comments on commit 8702232

Please sign in to comment.