Re: Debug Interface for the mozjs, how to start/stop/pause/continue the js engine
lemmel <[email protected]> Tue, 07 Apr 2020 21:12:16 +0200
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <2411070.9plzPoj5rp@sakura> |
This is a multi-part message in MIME format. --nextPart3469583.EpiA935Eoz Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Thanks, I think that I have now some ideas about how to proceed; probably t= his week-end. PS: When I send a message to the list I receive a message (spam ?!) from "S= upport TheFork <[email protected]> (TheFork, a TripAdvisor Company)"; I jo= ined the mail as attachment, and give below the content: =2D---- Hello , Thanks for your email. We have received your request 04464655 and it is bei= ng processed by our Support team. To leave additional comments, please reply to this email. Best, TheFork team =2D---- Le mardi 7 avril 2020, 11:48:12 CEST Nicolas B. Pierron a =C3=A9crit : > On Monday, April 6, 2020 at 9:20:21 PM UTC+2, lemmel wrote: > > - C) while executing, the user press pause >=20 > The problem you will have is that the user pressing pause will run concur= rently with the JavaScript execution. Also, you do not want to execute `onS= tep` for each instruction as this would be terribly slow. >=20 > Instead, what you can do from C++ is to trigger an Interruption callback,= this breaks the semantic of JavaScript in many ways =E2=80=A6 but this giv= es you the opportunity to "pause" the execution by setting up the `onStep` = callback on `Debugger.getNewestFrame()`. Once resuming from the interrupti= on callback, the `onStep` callback should be called. >=20 > For information about interruption callback, I will forward you to the co= de, because I do not know if we have any good documentation on the subject.= The JS Shell has some builtins to register a callback[1], and it can be tr= iggered asynchronously using `JS_RequestInterruptCallback` [2]. >=20 > [1] https://searchfox.org/mozilla-central/source/js/src/shell/js.cpp#4588 > [2] https://searchfox.org/mozilla-central/source/js/src/jsapi.cpp#4093,40= 97 > _______________________________________________ > dev-tech-js-engine mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-js-engine >=20 --nextPart3469583.EpiA935Eoz Delivered-To: Received: by 2002:ac9:299f:0:0:0:0:0 with SMTP id n31csp4050788oca; Mon, 6 Apr 2020 12:20:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJxWKNjamUQceOqlS8cet8pmP5mPPTvPo4qhsWSuWzKU6y3ZXuV9CHBvM9OcpXqCc6fi20U X-Received: by 2002:a1c:9d8c:: with SMTP id g134mr885273wme.79.1586200835383; Mon, 06 Apr 2020 12:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586200835; cv=none; d=google.com; s=arc-20160816; b=0DNiI23r+v93a4PNh6Igik28nrkr9Iweubd+bTcnTa26om4pmq00sNt1L29l+WCsTI SKRPeNo1sfmKuc3OIQu1nEJIovMPXB4oNa3eYTqG3k1ImYgX4rlBlcaEIDHZolvyaiPJ VK1P0hC7bmQ63HLSHmSAQPvy1Eg82SGO4N12a/D4FxV856Bl8LWWlisqSphV88rHdw9D vgVZipe0AFX3smPHLGlKZ+hcOSI62lD03+hjy2PoPz2bkK1rhpt/FSZAk4T1Jhuc1ADw xgnl3EauqK/4o62Wq+cVNnRQ1KfWnkD9QPFMUZl8yvSYBXsnvMhiildHG+iRSNYZNTq/ yzZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=precedence:auto-submitted:mime-version:subject:message-id:to :reply-to:from:date:dkim-signature; bh=A2Htoa3qR5h2hHleRm/L8jaMZqOO0ZvIuAsl2SKK2Ms=; b=vvXe2NHTUAQl5/QI2wou0I3ZSMH9euCzHDE8ilO6hATtQBwGxsRWtSr+0rb60/mQR7 Bv71DKARdk3Pfkv3c4EXKniAiauyPatd7DdPTI/ws8r17qliE7urQwmnwtjU960IV+7p AVuXDKEP8Kz11LB5quKXlfbWx1zo55dFWtqxwvmJOAO48vmE9A0NyYMZrhoEo+k4NC1S B5QA9pka5+TbAkohZN6QlXJ2cCm0Wy90bEjJPKgFUhOJCEnMfskOnCFuPuu1JtcJsjH4 DJVgiXMe3Hdq+1VdLZNbP97ae6vey7bNzmHt5UHSizWwm3+yWLWpWEX/nWFAyc3EqTOp B/CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass [email protected] header.s=salesforce header.b=O9EOzKHM; spf=softfail (google.com: domain of transitioning notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com does not designate 80.12.242.132 as permitted sender) smtp.mailfrom="notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=thefork.com Return-Path: <notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com> Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr. [80.12.242.132]) by mx.google.com with ESMTPS id z13si6516992wrh.340.2020.04.06.12.20.35 for <> (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 06 Apr 2020 12:20:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com does not designate 80.12.242.132 as permitted sender) client-ip=80.12.242.132; Authentication-Results: mx.google.com; dkim=pass [email protected] header.s=salesforce header.b=O9EOzKHM; spf=softfail (google.com: domain of transitioning notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com does not designate 80.12.242.132 as permitted sender) smtp.mailfrom="notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=thefork.com Received: from mouaip.info ([86.196.73.45]) by mwinf5d19 with ME id PXLa2200N0yde5A03XLa83; Mon, 06 Apr 2020 21:20:34 +0200 X-ME-Helo: mouaip.info X-ME-Date: Mon, 06 Apr 2020 21:20:34 +0200 X-ME-IP: 86.196.73.45 Received: from smtp15-fra-sp1.mta.salesforce.com (smtp15-fra-sp1.mta.salesforce.com [85.222.158.238]) by mouaip.info (Postfix) with ESMTPS id A5C9771C for <[email protected]>; Mon, 6 Apr 2020 21:20:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thefork.com; s=salesforce; t=1586200834; bh=2gtwANY8jyX6BkpnxJ29gHRzli6wTBiVzJa8gE1DlZg=; h=Date:From:To:Subject:MIME-Version:Content-Type; b=O9EOzKHMw5SY99Mme+DkqKd+FL9BsdBAOCRljcafy6crCrLlk/YBaTPZFy+rB3Lbw vonSbOHuwN4HL2dMK+PwX6HtTFMpYfiVoJqKdZ4OLMenhnMgw8h/A/s1X009AiVFFh +Ks2hK7Y+jnJxZMR314VFitiCBoQoPQyI34MGxRM= Authentication-Results: mx2-fra-sp1.mta.salesforce.com x-tls.subject="/C=US/ST=California/L=San Francisco/O=salesforce.com, inc./OU=0:app;1:fra;2:fra-sp1;3:eu17;4:prod/CN=eu17-app1-13-fra.ops.sfdc.net"; auth=pass (cipher=ECDHE-RSA-AES256-GCM-SHA384) Received: from [10.212.225.138] ([10.212.225.138:42190] helo=eu17-app1-13-fra.ops.sfdc.net) by mx2-fra-sp1.mta.salesforce.com (envelope-from <notify=thefork.com__8vnuanc40ljep1ww@asf1mm1pgt91.u-lfqjmac.eu17.bnc.salesforce.com>) (ecelerity 4.2.38.62368 r(Core:release/4.2.38.0)) with ESMTPS (cipher=ECDHE-RSA-AES256-GCM-SHA384 subject="/C=US/ST=California/L=San Francisco/O=salesforce.com, inc./OU=0:app;1:fra;2:fra-sp1;3:eu17;4:prod/CN=eu17-app1-13-fra.ops.sfdc.net") id 8E/F7-07711-2018B8E5; Mon, 06 Apr 2020 19:20:34 +0000 Date: Mon, 06 Apr 2020 19:20:34 +0000 From: Support TheFork <[email protected]> Reply-To: [email protected] To: "[email protected]" <[email protected]> Message-ID: <m7zHA000000000000000000000000000000000000000000000Q8DSEA00VoKVC7UpRjmKm05_dTWugQ@sfdc.net> Subject: Request received: Re: Debug Interface for the mozjs, how to start/stop/pause/continue the js engine ref:_00DU0Lfqj._5001v1K2NFt:ref MIME-Version: 1.0 Content-Type: text/plain; boundary="----=_Part_20106_1293464287.1586200834292"; charset="US-ASCII" Auto-Submitted: auto-generated X-SFDC-AutoResponse: 5001v00001K2NFt Precedence: bulk X-SFDC-LK: 00DU0000000Lfqj X-SFDC-User: 0050P000006xrZA X-Sender: [email protected] X-mail_abuse_inquiries: http://www.salesforce.com/company/abuse.jsp X-SFDC-TLS-NoRelay: 1 X-SFDC-Binding: 1WrIRBV94myi25uB X-SFDC-EmailCategory: caseCommentNotification X-SFDC-EntityId: 5001v00001K2NFt X-SFDC-Interface: internal ------=_Part_20106_1293464287.1586200834292 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello , Thanks for your email. We have received your request 04464655 and it is being processed by our Support team. To leave additional comments, please reply to this email. Best, TheFork team TheFork, a TripAdvisor Company ------=_Part_20106_1293464287.1586200834292 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit <html><table align="center" border="0" cellpadding="0" cellspacing="0" id="bodyTable" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #FAFAFA; border-collapse: collapse !important; height: 100% !important; margin: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0; width: 100% !important;" width="100%"> <tbody> <tr> <td align="center" id="bodyCell" style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; height: 100% !important; width: 100% !important; border-top-width: 4px; border-top-color: #dddddd; border-top-style: solid; margin: 0; padding: 20px;" valign="top"><!-- BEGIN TEMPLATE // --> <table border="0" cellpadding="0" cellspacing="0" class="table320" style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-collapse: collapse !important; width: 600px; border: 1px solid #dddddd;"> <tbody> <tr> <td align="center" styl e="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt;" valign="top"><!-- BEGIN HEADER // --> <table align="center" border="0" cellpadding="0" cellspacing="0" style="width:100%;"> <tbody> <tr> <td align="center" style="font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:20px;text-align:center;"> <a href="" style="text-decoration:none;color:#599442;" title=""> <img alt="" border="0" src="http://go.thefork.com/logos/thefork_vert_fd_transparent.png" style="border-style: solid; border-width: 0px;"> </a> </td> </tr> </tbody> </table><!-- // END HEADER --> </td> </tr> <tr> <td align="center" style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt;" valign="top"><!-- BEGIN BODY // --> <table border="0" cellpadding="0" cellspacing="0" id="templateBody" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #FFFFFF; border-bottom-color: #CC CCCC; border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse !important; border-top-color: #FFFFFF; border-top-style: solid; border-top-width: 1px; mso-table-lspace: 0pt; mso-table-rspace: 0pt;" width="100%"> <tbody> <tr> <td align="left" class="bodyContent" style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #505050; font-family: Helvetica; font-size: 14px; line-height: 21px; text-align: left; padding: 25px; border-bottom: 1px #999999 solid; border-bottom-width: 90%;" valign="top"> <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size:10pt;font-family:Raleway,sans-serif;color:#505050;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:n ormal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Hello ,</span> <br> <br><span style="font-size:10pt;font-family:Raleway,sans-serif;color:#505050;background- color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">Thanks for your email. We have received your <strong>request 04464655</strong> and it is being processed by our Support team.</span> <br> <br><span style="font-size:10pt;font-family:Raleway,sans-serif;color:#505050;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">To leave additional comments, please reply to this email.</span> <br> <br><span style="font-size:10pt;font-family:Raleway,sans-serif;color:#505050;background-color:#ffffff;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baselin e;white-space:pre;white-space:pre-wrap;">Best,</span> <br> <br><span style="font-size:10pt;font-family:Raleway,sans-serif;color:#505050;background-color:#ffffff;font-weight:400;font-style:normal;fon t-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre;white-space:pre-wrap;">TheFork team</span></p> </td> </tr> </tbody> </table> </td> </tr> <tr> <td align="center" style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt;" valign="top"> <table border="0" cellpadding="0" cellspacing="0" id="templateFooter" style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #FFFFFF; border-collapse: collapse !important; border-top-color: #FFFFFF; border-top-style: solid; border-top-width: 1px; mso-table-lspace: 0pt; mso-table-rspace: 0pt;" width="100%"> <tbody> <tr> <td align="left" class="footerContent" style="color: rgb(255, 255, 255); font-family: Helvetica; font-size: 10px; line-height: 15 px; text-align: left; padding: 0px 20px 20px; background: rgb(52, 55, 63);" valign="top"> <div style="text-align: center;"> <br><span style="font-size:11px;">TheFork, a TripAdvisor Company</span></d iv> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table><!-- // END TEMPLATE --> </td> </tr> </tbody> </table><img src="http: //thefork.my.salesforce.com/servlet/servlet.ImageServer?oid=00DU0000000Lfqj&esid=0181v00000RmoeN"></html> --nextPart3469583.EpiA935Eoz Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dev-tech-js-engine mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine --nextPart3469583.EpiA935Eoz--