Track callstack through optimized frames?

オープン
#4 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
javascript, wasm

調査の方向性

The payload names no specific files or tests. Start with the linked discussion in pull request #2 and the description of how the baseline tier writes frames but optimized MIR bodies do not. Done here means a documented feasibility finding on whether Error#stack can enumerate optimized MIR frames with source locations, not a finished patch. Expect design discussion with maintainers before any code.

索引モデルが issue の本文から書いたものです。

説明

In this discussion it was raised that maybe Error#stack (and JS backtraces generally) should be able to enumerate NightMonkey frames, at least with source locations. Right now this is not the case because we don't write out a frame by default for optimized function bodies; we only write frames on bailout to baseline. The cost calculus is somewhat different than the native JIT, because (unlike native code) Wasm code relies on the protected, unobservable Wasm control stack for call/return discipline; so we don't get a walkable stack with PCs "for free".

Right now, the plan-of-record is for most debugging scenarios to use the NightMonkey baseline tier instead, which does create full frames. However, for compatibility, we should still investigate whether we can do this for MIR frames if possible.

主要言語
JavaScript
スター
5
フォーク
1
平均マージ
7時間 12分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bytecodealliance/nightmonkey のほかの issue

bytecodealliance/nightmonkey の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。