This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf8"> | |
<title>dprof visualizer</title> | |
<style> | |
/* general page layout */ | |
html, body { | |
margin: 0; | |
height: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf8"> | |
<title>dprof visualizer</title> | |
<style> | |
/* general page layout */ | |
html, body { | |
margin: 0; | |
height: 100%; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stream = require('stream'); | |
var s = new stream.Readable({ | |
highWaterMark: 20, | |
read: function() { | |
setImmediate(this.push.bind(this, 'abc')); | |
} | |
}); | |
s.pipe(process.stdout); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias nodeir='node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --print-opt-code' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import theano | |
import theano.tensor as T | |
import numpy as np | |
import cPickle | |
import random | |
import matplotlib.pyplot as plt | |
class RNN(object): | |
def __init__(self, nin, n_hidden, nout): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var stream = require('stream'); | |
var timer = new stream.Readable({ | |
highWaterMark: 1, | |
read: function() { | |
console.log('read'); | |
var self = this; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var asyncWrap = process.binding('async_wrap'); | |
var fs = require('fs'); | |
var asyncHooksObject = {}; | |
var kCallInitHook = 0; | |
asyncHooksObject[kCallInitHook] = 1; | |
//asyncHooksObject = new Uint8Array([1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/runtime.cc b/src/runtime.cc | |
index 1616434..a72eff3 100644 | |
--- a/src/runtime.cc | |
+++ b/src/runtime.cc | |
@@ -14552,6 +14552,59 @@ RUNTIME_FUNCTION(Runtime_GetScript) { | |
} | |
+// Get variabels in this function scope | |
+RUNTIME_FUNCTION(Runtime_LocalVariabels) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d8 --allow-natives-syntax test.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/messages.js b/src/messages.js | |
index c86c12d..ad5921c 100644 | |
--- a/src/messages.js | |
+++ b/src/messages.js | |
@@ -801,6 +801,10 @@ function CallSiteGetFunction() { | |
? UNDEFINED : GET_PRIVATE(this, CallSiteFunctionKey); | |
} | |
+function CallSiteGetFunctionArguments() { | |
+ return GET_PRIVATE(this, CallSiteFunctionKey).arguments; |