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

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "vagrant-windows"
config.vm.box = "windows2008r2"
# You should be using the vagrant-windows Vagrant Plugin!
# Admin user name and password
config.winrm.username = "Administrator"
/Users/Developer/Projects/Webkit2/WebKitBuild/af_rebase3/Debug/jsc --useFTLJIT\=false --enableFunctionDotArguments\=true --validateGraph\=true --useFTLJIT\=true --ftlCrashesIfCantInitializeLLVM\=true --enableConcurrentJIT\=false --thresholdForJITAfterWarmUp\=100 --thresholdForJITAfterWarmUp\=10 --thresholdForJITSoon\=10 --thresholdForOptimizeAfterWarmUp\=20 --thresholdForOptimizeAfterLongWarmUp\=20 --thresholdForOptimizeSoon\=20 --thresholdForFTLOptimizeAfterWarmUp\=20 --thresholdForFTLOptimizeSoon\=20 --maximumEvalCacheableSourceLength\=150000 -i
stress/arrowfunction-bound.js.always-trigger-copy-phase
stress/arrowfunction-bound.js.default-ftl
stress/arrowfunction-bound.js.dfg-eager
stress/arrowfunction-bound.js.no-llint
stress/arrowfunction-lexical-this-1.js.always-trigger-copy-phase
stress/arrowfunction-lexical-this-1.js.default
stress/arrowfunction-lexical-this-1.js.default-ftl
stress/arrowfunction-lexical-this-1.js.dfg-eager
stress/arrowfunction-lexical-this-1.js.ftl-eager
stress/arrowfunction-lexical-this-1.js.ftl-no-cjit-no-inline-validate
//functionexp-call.js
var fe = function (a, b) { return a + b; };
noInline(fe);
function bar(a, b) {
return fe(a, b);
}
noInline(bar);
@gskachkov
gskachkov / .json
Created July 30, 2015 17:39
result
{
"vms": ["Foo"],
"suites": {
"JSRegress": {
"arrowfunction-afcall": {
"Foo": {
"data": [81.515869140625, 98.9169921875, 107.3408203125, 99.411865234375],
"mean": 96.79638671875,
"confInt": 17.33427156978141
}
@gskachkov
gskachkov / .json
Created July 30, 2015 17:42
result with switch FTL/DGF switch off
{
"vms": ["Foo"],
"suites": {
"JSRegress": {
"arrowfunction-afcall": {
"Foo": {
"data": [78.632080078125, 109.5048828125, 81.057861328125, 109.409912109375],
"mean": 94.65118408203125,
"confInt": 27.250389205294894
}
@gskachkov
gskachkov / gist:cc0fd79125c843f7973a
Created July 30, 2015 18:05
arrow function dump
>>> load('LayoutTests/js/regress/script-tests/arrowfunction-afcall.js')
DFG(Driver) compiling #BUN2VQ:[0x10c2df708->0x10c2df4b0->0x10c043e00, NoneFunctionCall, 17 (NeverInline)] with DFGMode, number of instructions = 17
Deferring DFG compilation of #BUN2VQ:[0x10c2df708->0x10c2df4b0->0x10c043e00, NoneFunctionCall, 17 (NeverInline)] with queue length 0.
DFG(Plan) compiling #BUN2VQ:[0x10c2df708->0x10c2df4b0->0x10c043e00, NoneFunctionCall, 17 (NeverInline)] with DFGMode, number of instructions = 17
Compiler must handle OSR entry from bc#0 with values: arg2:Int32: 2 arg1:Int32: 1 arg0:Cell: 0x10c03f800 (0x10c0708e0:[global, {parseInt:100, Object:101, Function:102, Array:103, RegExp:104, EvalError:105, RangeError:106, ReferenceError:107, SyntaxError:108, TypeError:109, URIError:110, Promise:111, Set:112, Map:113, Date:114, String:115, Symbol:116, Boolean:117, Number:118, Error:119, ArrayBuffer:120, WeakMap:121, WeakSet:122, DFG(Driver) compiling eval<global>:#123Cih8E0, Intl:124, JSON:125, Math:126, Reflect:[:0x10
>>> load('LayoutTests/js/regress/script-tests/functionexp-afcall-1.js')
DFG(Driver) compiling fe#EVgtVm:[0x107edf708->0x107edf4b0->0x107c43e00, NoneFunctionCall, 10 (NeverInline)] with DFGMode, number of instructions = 10
Deferring DFG compilation of fe#EVgtVm:[0x107edf708->0x107edf4b0->0x107c43e00, NoneFunctionCall, 10 (NeverInline)] with queue length 0.
DFG(Driver) compiling <global>#ATWxP7:[0x107edf960->0x107edf258->0x107c60100, NoneGlobal, 260] with DFGMode, number of instructions = 260
Deferring DFG compilation of <global>#ATWxP7:[0x107edf960->0x107edf258->0x107c60100, NoneGlobal, 260] with queue length 1.
DFG(Plan) compiling fe#EVgtVm:[0x107edf708->0x107edf4b0->0x107c43e00, NoneFunctionCall, 10 (NeverInline)] with DFGMode, number of instructions = 10
Compiler must handle OSR entry from bc#0 with values: arg2:Int32: 2 arg1:Int32: 1 arg0:Cell: 0x107c3f800 (0x107c708e0:[global, {parseInt:100, Object:101, Function:102, Array:103, RegExp:104, EvalError:105, RangeError:106, ReferenceError:107, SyntaxError:10
>>> load('LayoutTests/js/regress/script-tests/arrowfunction-afcall.js')
DFG(Driver) compiling #BUN2VQ:[0x104edf708->0x104edf4b0->0x104c43e00, NoneFunctionCall, 12 (NeverInline)] with DFGMode, number of instructions = 12
Deferring DFG compilation of #BUN2VQ:[0x104edf708->0x104edf4b0->0x104c43e00, NoneFunctionCall, 12 (NeverInline)] with queue length 0.
DFG(Plan) compiling #BUN2VQ:[0x104edf708->0x104edf4b0->0x104c43e00, NoneFunctionCall, 12 (NeverInline)] with DFGMode, number of instructions = 12
Compiler must handle OSR entry from bc#0 with values: arg2:Int32: 2 arg1:Int32: 1 arg0:Cell: 0x104c3f800 (0x104c708e0:[global, {parseInt:100, Object:101, Function:102, Array:103, RegExp:104, EvalError:105, RangeError:106, ReferenceError:107, SyntaxError:108, TypeError:109, URIError:110, Promise:111, Set:112, Map:113, Date:114, String:115, Symbol:116, Boolean:117, Number:118, Error:119, ArrayBuffer:120, WeakMap:121, WeakSet:122, eval:123DFG(Driver) compiling , <global>Intl#:Cih8E0124:[, 0x104edf960JSON->:0x104edf258125