Skip to content

Instantly share code, notes, and snippets.

@hotsphink
hotsphink / text.txt
Created June 28, 2019 17:40
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,17 +180,19 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / text.txt
Created June 28, 2019 18:55
mkgist-created gist
This file has been truncated, but you can view the full file.
#-----------------------------------------------------------------
# dmd.py -o dmd2.out dmd-TabsOpenSettled-2-1908.json.gz
Invocation {
$DMD = '--mode=dark-matter --stacks=full'
Mode = 'dark-matter'
}
#-----------------------------------------------------------------
@hotsphink
hotsphink / text.txt
Created June 28, 2019 18:55
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,21 +180,27 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / patch-to-dmd
Created June 28, 2019 18:55
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,21 +180,27 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / text.txt
Created June 28, 2019 19:02
mkgist-created gist
diff --git a/tools/rb/fix_stack_using_bpsyms.py b/tools/rb/fix_stack_using_bpsyms.py
--- a/tools/rb/fix_stack_using_bpsyms.py
+++ b/tools/rb/fix_stack_using_bpsyms.py
@@ -180,21 +180,24 @@ def addressToSymbol(file, address, symbo
p = getSymbolFile(file, symbolsDir)
if p:
return p.addrToSymbol(address)
else:
return ""
@hotsphink
hotsphink / text.txt
Created July 2, 2019 21:45
mkgist-created gist
function makeExtensibleString() {
var s = "xxxxxxxx";
var t = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // 31 characters
var r1 = t + s;
r1.match(/x/);
return r1;
}
function test() {
const s = makeExtensibleString();
@hotsphink
hotsphink / text.txt
Created July 2, 2019 21:47
mkgist-created gist
function makeExtensibleString() {
var s = "xxxxxxxx";
var t = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // 31 characters
var r1 = t + s;
r1.match(/x/);
return r1;
}
function test() {
const s = makeExtensibleString();
@hotsphink
hotsphink / text.txt
Created July 3, 2019 18:03
mkgist-created gist
function makeExtensibleString() {
var s = "x";
var t = "yyyyyyyyyyyyyyyyyyytyyyyyy";
var r1 = t + s;
ensureFlatString(r1);
return r1;
}
function test() {
const s0 = makeExtensibleString();
@hotsphink
hotsphink / text.txt
Created July 3, 2019 18:04
mkgist-created gist
void JSString::traceBase(JSTracer* trc) {
MOZ_ASSERT(hasBase());
JSString* oldBase = d.s.u3.base;
if (I am a DependentString) {
base = my base
while (my chars do not come from base)
base = base.base
}
TraceManuallyBarrieredEdge(trc, &d.s.u3.base, "base");
if (oldBase != d.s.u3.base) {
@hotsphink
hotsphink / bug-explanation
Created July 3, 2019 18:05
mkgist-created gist
ExtensibleString A -> "blahblah"
UndependedString B
.base -> A
.chars -> "hbl\0" (owned)
DependentString C
.base -> B
.chars -> "b" (from A')