Re: [JS-internals] Jit DevTools 0.0.1

2015-06-11 Thread cosinusoidally
On Thursday, June 11, 2015 at 2:19:40 PM UTC+1, Nicolas B. Pierron wrote:
 On 06/11/2015 02:43 PM, cosinusoida...@gmail.com wrote:
  Hi Nicolas,
 
  I'm getting the following error when I attempt to use the addon:
 
  console.error: jit-dev-tools:
 Message: TypeError: this.debuggee is undefined
 Stack:
   JitPanel.onReady@resource://gre/modules/commonjs/toolkit/loader.js - 
  resource://jit-dev-tools/lib/jit-panel.js:75:5
  emitOnObject@resource://gre/modules/commonjs/toolkit/loader.js - 
  resource://gre/modules/commonjs/sdk/event/core.js:112:9
  emit@resource://gre/modules/commonjs/toolkit/loader.js - 
  resource://gre/modules/commonjs/sdk/event/core.js:89:38
  onStateChange@resource://gre/modules/commonjs/toolkit/loader.js - 
  resource://gre/modules/commonjs/dev/panel.js:70:3
 
 Thanks for reporting, I guess I might be using a new API added to the dev 
 tools.
 
  I get that in both Firefox 38 and Firefox Developer edition on x86_64 Linux.
 
 Also, the Debugger.onIonCompilation hook is quite new (= 41.0a1), so you 
 will have to use a nightly version of Firefox to use this addon, or wait 
 until the end of the month, for the next release cycle.

I seem to get exactly the same issue when I try it in the latest nightly 
(https://hg.mozilla.org/mozilla-central/rev/bfd82015df48 according to 
about:buildconfig). I also built the latest version of your addon from git, but 
still I get the same error.

Thanks
Liam Wilson
___
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals


Re: [JS-internals] Jit DevTools 0.0.1

2015-06-11 Thread Nicolas B. Pierron

On 06/11/2015 04:49 PM, cosinusoida...@gmail.com wrote:

On Thursday, June 11, 2015 at 2:19:40 PM UTC+1, Nicolas B. Pierron wrote:

On 06/11/2015 02:43 PM, cosinusoida...@gmail.com wrote:

Hi Nicolas,

I'm getting the following error when I attempt to use the addon:

console.error: jit-dev-tools:
Message: TypeError: this.debuggee is undefined
Stack:
  JitPanel.onReady@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://jit-dev-tools/lib/jit-panel.js:75:5
emitOnObject@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/sdk/event/core.js:112:9
emit@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/sdk/event/core.js:89:38
onStateChange@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/dev/panel.js:70:3



I seem to get exactly the same issue when I try it in the latest nightly 
(https://hg.mozilla.org/mozilla-central/rev/bfd82015df48 according to 
about:buildconfig). I also built the latest version of your addon from git, but 
still I get the same error.


If you have a github / bugzilla account, I suggest we offload this 
discussion to [1] or [2].


Also, can you explain in the bug how you start the devtools, and how they 
appear, maybe I would manage to reproduce this issue.


Otherwise, if you have time I suggest we discuss on irc.mozilla.org (nbp) on 
how to instrument the code to debug this addon.


Thanks for testing, and reporting issues :)

[1] https://github.com/nbp/jit-dev-tools/issues/new
[2] 
https://bugzilla.mozilla.org/enter_bug.cgi?assigned_to=nobody%40mozilla.orgbug_file_loc=http%3A%2F%2Fbug_ignored=0bug_severity=normalbug_status=NEWcc=:nbpcf_blocking_b2g=---cf_blocking_fennec=---cf_feature_b2g=---cf_fx_iteration=---cf_fx_points=---cf_status_b2g_2_0=---cf_status_b2g_2_0m=---cf_status_b2g_2_1=---cf_status_b2g_2_1_s=---cf_status_b2g_2_2=---cf_status_b2g_master=---cf_status_firefox38=---cf_status_firefox38_0_5=---cf_status_firefox39=---cf_status_firefox40=---cf_status_firefox41=---cf_status_firefox_esr31=---cf_status_firefox_esr38=---cf_tracking_b2g=---cf_tracking_e10s=---cf_tracking_firefox38=---cf_tracking_firefox38_0_5=---cf_tracking_firefox39=---cf_tracking_firefox40=---cf_tracking_firefox41=---cf_tracking_firefox_esr31=---cf_tracking_firefox_esr38=---cf_tracking_firefox_relnote=---cf_tracking_p11=---cf_tracking_relnote_b2g=---component=JavaScript%20Engine%3A%20JITcontenttypemethod=autodetectcontenttypeselection=text%2Fpl

aindefin
ed_groups=1flag_type-203=Xflag_type-37=Xflag_type-4=Xflag_type-41=Xflag_type-5=Xflag_type-607=Xflag_type-720=Xflag_type-721=Xflag_type-737=Xflag_type-781=Xflag_type-787=Xflag_type-791=Xflag_type-799=Xflag_type-800=Xflag_type-803=Xflag_type-835=Xflag_type-846=Xflag_type-855=Xflag_type-856=Xflag_type-857=Xflag_type-863=Xflag_type-864=Xflag_type-870=Xflag_type-875=Xflag_type-889=Xform_name=enter_bugmaketemplate=Remember%20values%20as%20bookmarkable%20templateop_sys=Unspecifiedpriority=--product=Corerep_platform=Unspecifiedshort_desc=Jit%20DevToolstarget_milestone=---version=unspecified

--
Nicolas B. Pierron
___
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals


Re: [JS-internals] Jit DevTools 0.0.1

2015-06-11 Thread cosinusoidally
Hi Nicolas,

I'm getting the following error when I attempt to use the addon:

console.error: jit-dev-tools: 
  Message: TypeError: this.debuggee is undefined
  Stack:
JitPanel.onReady@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://jit-dev-tools/lib/jit-panel.js:75:5
emitOnObject@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/sdk/event/core.js:112:9
emit@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/sdk/event/core.js:89:38
onStateChange@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/dev/panel.js:70:3

I get that in both Firefox 38 and Firefox Developer edition on x86_64 Linux.

Thanks
Liam Wilson

On Wednesday, June 10, 2015 at 9:58:26 PM UTC+1, Nicolas B. Pierron wrote:
 Hello everybody,
 
 I am please to do an early announce a new tool named Jit DevTools.
 
 This new tool is an addon which mostly target Jit developers.  It uses the 
 recently added Debugger.onIonCompilation hook to display the latest MIR [1] 
 and LIR graphs within the dev tools.
 
 To use this tool, go to a web page, and open the Jit DevTools panel, then 
 wait until a function got compiled.
 
 Once a function is compiled, you can select a compiled script, which will 
 display the MIR graph of the compilation.  If you need to, you can also have 
 a look at the LIR graph.  The output is similar to the one rendered with 
 iongraph [5].
 
 By selecting any inlined script, the background of the block titles will 
 change color, if the block correspond to the inlined instance.  This feature 
 is quite useful to identify how a function plays in a compiled script.
 
 You might find this tool quite handy to use for the following use cases:
   - Investigating DOM optimization.
   - Investigating jsperf issues.
   - Comparing function implementations, and impacts on the generated code.
 
 This addon works on optimized builds, and even with parallel compilation 
 enabled.
 
 You can download [2] this early version from 
 http://people.mozilla.org/~npierron/jit-dev-tools/ , or build it your-self 
 by using the sources [3] with jpm tool [4].
 
 Have fun, and enjoy.
 
 
 [1] http://people.mozilla.org/~npierron/jit-dev-tools/jit-dev-tools-0.0.1.png
 [2] http://people.mozilla.org/~npierron/jit-dev-tools/jit-dev-tools-0.0.1.xpi
 [3] https://github.com/nbp/jit-dev-tools/
 [4] https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/jpm
 [5] 
 https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Hacking_Tips#Using_IonMonkey_spew_%28JS_shell%29
 
 -- 
 Nicolas B. Pierron

___
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals


Re: [JS-internals] Jit DevTools 0.0.1

2015-06-11 Thread Nicolas B. Pierron

On 06/11/2015 02:43 PM, cosinusoida...@gmail.com wrote:

Hi Nicolas,

I'm getting the following error when I attempt to use the addon:

console.error: jit-dev-tools:
   Message: TypeError: this.debuggee is undefined
   Stack:
 JitPanel.onReady@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://jit-dev-tools/lib/jit-panel.js:75:5
emitOnObject@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/sdk/event/core.js:112:9
emit@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/sdk/event/core.js:89:38
onStateChange@resource://gre/modules/commonjs/toolkit/loader.js - 
resource://gre/modules/commonjs/dev/panel.js:70:3


Thanks for reporting, I guess I might be using a new API added to the dev tools.


I get that in both Firefox 38 and Firefox Developer edition on x86_64 Linux.


Also, the Debugger.onIonCompilation hook is quite new (= 41.0a1), so you 
will have to use a nightly version of Firefox to use this addon, or wait 
until the end of the month, for the next release cycle.


--
Nicolas B. Pierron
___
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals