Skip to content

Instantly share code, notes, and snippets.

@hotsphink
hotsphink / text.txt
Created May 24, 2019 19:34
mkgist-created gist
ac_add_options --enable-project=js
ac_add_options --enable-optimize
ac_add_options --enable-debug
ac_add_options --enable-js-shell
mk_add_options MOZ_MAKE_FLAGS="-j8 -s"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-js
@hotsphink
hotsphink / text.txt
Created May 29, 2019 18:48
mkgist-created gist
enqueueMark(obj|string)
Add an object to the queue of objects to mark at the beginning every GC. (Note
that the objects will actually be marked at the beginning of every slice, but
after the first slice they will already be marked so nothing will happen.)
Instead of an object, a few magic strings may be used:
'yield' - cause the current marking slice to end, as if the mark budget were
exceeded.
'enter-weak-marking-mode' - divide the list into two segments. The items after
this string will not be marked until we enter weak marking mode. Note that weak
@hotsphink
hotsphink / text.md
Last active May 31, 2019 23:31
mkgist-created gist

I have a stack of 13 draft patches on top of a public revision b37b6c015168. I pull from upstream, get a bunch of new changesets, the top one is 1adf382a3e65. The first 8 patches in my stack have landed upstream, so I'm hoping to discard those in favor of their public versions. I rebase my stack on top of the new patch:

% hg rebase -d 1adf382a3e65

(I was updated to the tip of my patch stack.) I do a bunch of manual merging, then when the rebase is complete it says

12 new orphan changesets
@hotsphink
hotsphink / text.txt
Created June 5, 2019 17:22
mkgist-created gist
# HG changeset patch
# User Steve Fink <[email protected]>
# Date 1517297227 28800
# Mon Jan 29 23:27:07 2018 -0800
# Node ID 236b85186605693383e2a4999b87c1b5c4e9a338
# Parent e8c553a7196328fed522cc5d4bafc78dcdc1a099
# EXP-Topic pretenure.dedupe
Bug 903519 - M-dedupe
diff --git a/README.txt b/README.txt
@hotsphink
hotsphink / text.txt
Created June 6, 2019 15:36
mkgist-created gist
Host hg.mozilla.org
User [email protected]
@hotsphink
hotsphink / text.txt
Created June 13, 2019 17:20
mkgist-created gist
function stuff() {
const getStrings = (strings, ...values) => strings;
const getRef = eval('() => getStrings`test`');
let wait = 0;
let ref = getRef();
let state = inIon();
const go = () => {
const newRef = getRef();
if (newRef !== ref) {
print('New ref 😢');
@hotsphink
hotsphink / text.txt
Created June 25, 2019 17:37
mkgist-created gist
#!/usr/bin/perl
use Getopt::Long;
use strict;
my %score;
my $prename;
my $postname;
GetOptions("pre|0=s" => \$prename,
@hotsphink
hotsphink / text.txt
Created June 25, 2019 17:39
mkgist-created gist
Tools for looking at octane scores
@hotsphink
hotsphink / compare-scores
Last active June 25, 2019 17:41
mkgist-created gist
#!/usr/bin/perl
use Getopt::Long;
use strict;
my %score;
my $prename;
my $postname;
GetOptions("pre|0=s" => \$prename,
@hotsphink
hotsphink / text.txt
Created June 28, 2019 17:39
mkgist-created gist
This file has been truncated, but you can view the full file.
#-----------------------------------------------------------------
# dmd.py -o dmd.out dmd-TabsOpenSettled-2-7156.json.gz
Invocation {
$DMD = '--mode=dark-matter --stacks=full'
Mode = 'dark-matter'
}
#-----------------------------------------------------------------