This commit is contained in:
10 files changed
+24
-24
No files matched your search
@@ -191,10 +191,10 @@ test('Mojo beside x86-64: the line table the compiler left in the pane links eac
|
||||
// a real listing, as Open in Hardware makes it from godbolt's saved answer
|
||||
const ROOT = new URL('..', import.meta.url).pathname;
|
||||
let checked = 0;
|
||||
for (const f of fs.readdirSync(ROOT + 'core/mojo/probes').filter((x) => x.endsWith('.mojo'))) {
|
||||
const text = fs.readFileSync(ROOT + 'core/mojo/probes/' + f, 'utf8');
|
||||
for (const f of fs.readdirSync(ROOT + 'core/library/mojo/probes').filter((x) => x.endsWith('.mojo'))) {
|
||||
const text = fs.readFileSync(ROOT + 'core/library/mojo/probes/' + f, 'utf8');
|
||||
if (!/^# mode: (asm|both)/m.test(text)) continue;
|
||||
const r = buildListing(text, ROOT + 'core/mojo/golden', { forSimulator, simulatorSetup, listingFunctions });
|
||||
const r = buildListing(text, ROOT + 'core/library/mojo/golden', { forSimulator, simulatorSetup, listingFunctions });
|
||||
if (r.why) continue;
|
||||
const table = asmMojoLines(r.asm);
|
||||
if (!table.size) continue;
|
||||
|
||||
Reference in new issue
Block a user