Skip to content

Instantly share code, notes, and snippets.

View gskachkov's full-sized avatar

Oleksander Skachkov gskachkov

  • Itera Consulting
  • Ukraine, Kiev
View GitHub Profile
https://gist.github.com/bdsatish/7476239
http://ftp.debian.org/debian/dists/wheezy/main/installer-armel/
http://ftp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/versatile/netboot/
Link to TAP
http://sourceforge.net/projects/tuntaposx/?source=typ_redirect
http://en.blog.guylhem.net/post/88201449689/running-qemu-with-tap0-and-nat-under-osx-109
http://www.aurel32.net/info/debian_arm_qemu.php
Generated DFG JIT code for f#EI3Q4I:[0x10b086500->0x10b086e00->0x10b06c800, DFGFunctionCall, 56 (StrictMode)], instruction count = 56:
Optimized with execution counter = 375.000000/1290.000000, -625
Code at [0x5fb903a04260, 0x5fb903a04ad2):
0x5fb903a04260: push %rbp
0x5fb903a04261: mov %rsp, %rbp
0x5fb903a04264: mov $0x10b086500, %r11
0x5fb903a0426e: mov %r11, 0x10(%rbp)
0x5fb903a04272: lea -0x50(%rbp), %rsi
0x5fb903a04276: mov $0x10b006378, %r11
0x5fb903a04280: cmp %rsi, (%r11)
var testCase = function (actual, expected, message) {
if (actual !== expected) {
throw message + ". Expected '" + expected + "', but was '" + actual + "'";
}
};
var testValue = 'test-value';
var A = class A {
constructor() {
@gskachkov
gskachkov / Crash log
Created November 19, 2015 19:14
inspector/heap/garbageCollected.html failed unexpectedly (DumpRenderTree crashed [pid=6111])
Process: DumpRenderTree [52646]
Path: /Volumes/VOLUME/*/DumpRenderTree
Identifier: DumpRenderTree
Version: ???
Code Type: X86-64 (Native)
Parent Process: Python [51448]
Responsible: sh [249]
User ID: 501
Date/Time: 2015-11-17 23:51:38.421 -0800
@gskachkov
gskachkov / Fail for newTarget test
Last active November 29, 2015 00:56
Release scope register
RegisterID* BytecodeGenerator::emitLoadArrowFunctionLexicalEnvironment()
{
ASSERT(m_codeBlock->isArrowFunction() || m_codeBlock->isArrowFunctionContext() || constructorKind() == ConstructorKind::Derived);
if (!m_resolvedArrowFunctionScopeContextRegister)
m_resolvedArrowFunctionScopeContextRegister = emitResolveScope(nullptr, variable(propertyNames().thisIdentifier, ThisResolutionType::Scoped));
return m_resolvedArrowFunctionScopeContextRegister.get();
}
// ------------------------------ SuperNode -------------------------------------
RegisterID* SuperNode::emitBytecode(BytecodeGenerator& generator, RegisterID* dst)
{
if (dst == generator.ignoredResult())
return 0;
RegisterID* scopeId;
if (generator.isDerivedConstructorContext()) {
scopeId = generator.emitLoadDerivedConstructorFromArrowFunctionLexicalEnvironment();
let out_of_scope = 0;
class Logger {
constructor() {
this._id = undefined;
}
scheduleLog() {
if (this._id) return;
let in_func_scope = 1;
// Promise.resolve(100).then(() => {
var f = () => {
@gskachkov
gskachkov / test.js
Created December 23, 2015 18:57
arrow lexical bind arguments
var af = function (x, y) {
let arr;
if (false) {
let arguments = 0;
arr = () => arguments;
} else {
let arguments = 1;
arr = () => arguments;
}
return arr;
@gskachkov
gskachkov / perf result
Created February 22, 2016 23:51
Perf result
MacBook-Pro-Skachkov-2:Webkit2 Developer$ Tools/Scripts/run-jsc-benchmarks after:/Users/Developer/Projects/Webkit2/WebKitBuild/af_opt_1/Release/jsc before:/Users/Developer/Projects/Webkit2/WebKitBuild/before_opt_1/Release/jsc --benchmarks='arrow' --warmup 2 --rerun 4
Warning: could not identify checkout location for after
Warning: could not identify checkout location for before
84/84
Generating benchmark report at /Users/Developer/Projects/Webkit2/after_before_JSRegress_MacBook-Pro-Skachkov-2_20160223_0150_report.txt
And raw data at /Users/Developer/Projects/Webkit2/after_before_JSRegress_MacBook-Pro-Skachkov-2_20160223_0150.json
Benchmark report for JSRegress on MacBook-Pro-Skachkov-2 (MacBookPro8,1).
VMs tested:
@gskachkov
gskachkov / js
Created March 7, 2016 10:12
Eval in class
class A {
constructor () {
this.id = 'id-value';
}
}
class B extends A {
constructor () {
eval("super()");
}
};