Skip to content

Instantly share code, notes, and snippets.

@evanlucas
evanlucas / safari_debug_menu.sh
Created December 2, 2015 19:13
safari_debug_menu.sh
defaults write com.apple.Safari IncludeInternalDebugMenu 1
@evanlucas
evanlucas / crash.log
Created December 2, 2015 19:09
crash.log
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.JavaScriptCore 0x00007fff8e2a4473 JSC::buildGetByIDList(JSC::ExecState*, JSC::JSValue, JSC::Identifier const&, JSC::PropertySlot const&, JSC::StructureStubInfo&) + 243
1 com.apple.JavaScriptCore 0x00007fff8ddd2807 operationGetByIdBuildList + 1751
2 ??? 0x00002434534b45dc 0 + 39807154341340
3 ??? 0x00002434534c824b 0 + 39807154422347
4 ??? 0x00002434534945ee 0 + 39807154210286
5 ??? 0x0000243453537ce0 0 + 39807154879712
6 ??? 0x0000243453535e10 0 + 39807154871824
7 ??? 0x00002434534bca98 0 + 39807154375320
8 com.apple.JavaScriptCore 0x00007fff8e21aab9 vmEntryToJavaScript + 326
[parsing script: native prologue.js - took 1.047 ms]
[parsing script: native runtime.js - took 1.164 ms]
[parsing function: ExportToRuntime - took 0.024 ms]
[parsing function: Export - took 0.012 ms]
[parsing function: - took 0.019 ms]
[parsing script: native code-stubs.js - took 0.132 ms]
[parsing script: native prologue.js - took 0.308 ms]
[parsing script: native runtime.js - took 1.053 ms]
[parsing function: ExportToRuntime - took 0.016 ms]
[parsing function: Export - took 0.012 ms]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.JavaScriptCore 0x00007fff9162f473 JSC::buildGetByIDList(JSC::ExecState*, JSC::JSValue, JSC::Identifier const&, JSC::PropertySlot const&, JSC::StructureStubInfo&) + 243
1 com.apple.JavaScriptCore 0x00007fff9115d807 operationGetByIdBuildList + 1751
2 ??? 0x00003a4b5d27619d 0 + 64095359820189
3 ??? 0x00003a4b5d273fd9 0 + 64095359811545
4 ??? 0x00003a4b5d27302b 0 + 64095359807531
5 ??? 0x00003a4b5d28cc5d 0 + 64095359913053
6 ??? 0x00003a4b5d28b551 0 + 64095359907153
7 ??? 0x00003a4b5d264442 0 + 64095359747138
8 com.apple.JavaScriptCore 0x00007fff915a5ab9 vmEntryToJavaScript + 326
@evanlucas
evanlucas / map.js
Last active November 13, 2015 02:10
map and set perf
diff --git a/deps/v8/src/collection.js b/deps/v8/src/collection.js
index 6d43384..b6a4c19 100644
--- a/deps/v8/src/collection.js
+++ b/deps/v8/src/collection.js
@@ -179,8 +179,7 @@ function SetAdd(key) {
var chainEntry = ORDERED_HASH_TABLE_BUCKET_AT(table, bucket);
ORDERED_HASH_TABLE_SET_BUCKET_AT(table, bucket, entry);
ORDERED_HASH_TABLE_SET_ELEMENT_COUNT(table, nof + 1);
- FIXED_ARRAY_SET(table, index, key);
- FIXED_ARRAY_SET_SMI(table, index + 1, chainEntry);
@evanlucas
evanlucas / llnodetest.js
Created November 12, 2015 14:14
llnode test
'use strict'
if (process.argv[2]) {
var server = require('http').createServer(function(req, res) {
req.date = new Date(+process.argv[2])
res.writeHead(200, {
'Content-Type': 'text/plain'
})
res.end('10000')
server.close()
Eager deoptimization at
t89
CheckMaps t2 [0x245b41a498b1] deopt
Checks whether value's hidden class matches expected value and deoptimizes if this is not the case.
Deoptimization at CheckMaps usually indicates that the code is polymorphic.
[deoptimizing (DEOPT eager): begin 0x3408a85e68a9 <JS Function parserOnHeadersComplete (SharedFunctionInfo 0xb19052e3e9)> (opt #61) @7, FP to SP delta: 96]
@evanlucas
evanlucas / npm-debug.log
Created November 3, 2015 12:47
npm install issue
This file has been truncated, but you can view the full file.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save-dev',
1 verbose cli 'tap@latest' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
@evanlucas
evanlucas / http-lookup.js
Last active October 27, 2015 21:37
http-lookup.js
'use strict'
const http = require('http')
const net = require('net')
const dns = require('dns')
// this will hold our hosts
// [ { family: 4, address: <ip address> } ]
var hosts
@evanlucas
evanlucas / arrows.js
Created October 27, 2015 01:14
arrows.js
'use strict'
module.exports = Client
function Client() {
this.name = 'client'
}
Client.prototype.run = function run(cb) {
const n = 'server'