[v8-dev] Design doc: Remove Arguments Adaptor Frame in Deoptimizer

66 views
Skip to first unread message

Victor Gomes

unread,
Sep 21, 2020, 4:48:20 AM9/21/20
to v8-dev...@googlegroups.com
Hi V8 masters,

As part of my work in removing the arguments adaptor frame, I am turning my attention to the deoptimizer. Since I found it a bit tricky to understand what's going on, I've written a small doc.

PTAL:

Benedikt Meurer

unread,
Sep 21, 2020, 12:04:49 PM9/21/20
to v8-dev, v8-dev...@googlegroups.com
"Lasciate ogne speranza, voi ch'intrate" (aka "Abandon all hope, ye who enter here...")

But more seriously... this is definitely tricky territory, and my recommendation would be Solution #1 in your document.

--
--
v8-dev mailing list
v8-...@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAGFuzY0LLM7%2BAjoaax1usWN9Jov1eq89EvdYKdVDtdR80j5rFA%40mail.gmail.com.


--

Benedikt Meurer

Chromium DevTools TL

bme...@chromium.org


Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.

    

This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.

Victor Gomes

unread,
Sep 22, 2020, 4:30:53 AM9/22/20
to v8-...@googlegroups.com, v8-dev...@googlegroups.com
Thanks Benedikt!

On Mon, Sep 21, 2020 at 6:04 PM Benedikt Meurer <bme...@chromium.org> wrote:
"Lasciate ogne speranza, voi ch'intrate" (aka "Abandon all hope, ye who enter here...")
Queste parole di colore oscuro vid’ ïo scritte al sommo d’una porta; per ch’io: «Maestro, il senso lor m’è duro». " (These words—their aspect was obscure—I read inscribed above a gateway, and I said: “Master, their meaning is difficult for me.”)

But more seriously... this is definitely tricky territory, and my recommendation would be Solution #1 in your document.
Why do you think solution #1 is better? Should we attach the information to the caller or to the calee?
 

Google Germany GmbH

Erika-Mann-Straße 33

80636 München


Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg


Diese E-Mail ist vertraulich. Falls Ssie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde. 

Benedikt Meurer

unread,
Sep 24, 2020, 2:48:44 AM9/24/20
to v8-dev, v8-dev...@googlegroups.com
Ups, I mixed the numbers. I was proposing to stick to Solution #2, for the reason that this requires fewer (risky) changes to TurboFan. Reading the doc again, you might over time migrate closer to Solution #1 if you want, since a lot of the places in TurboFan don't really require the extra FrameState, it's just that this was the way the world worked back when we wrote most of this code.

cheers,
Benedikt

Victor Gomes

unread,
Sep 24, 2020, 4:37:20 AM9/24/20
to v8-...@googlegroups.com, v8-dev...@googlegroups.com
On Thu, Sep 24, 2020 at 8:48 AM Benedikt Meurer <bme...@chromium.org> wrote:
Ups, I mixed the numbers. I was proposing to stick to Solution #2, for the reason that this requires fewer (risky) changes to TurboFan. Reading the doc again, you might over time migrate closer to Solution #1 if you want, since a lot of the places in TurboFan don't really require the extra FrameState, it's just that this was the way the world worked back when we wrote most of this code.
Thanks, I also think this might be a good way to go, I've actually discussed a similar idea with Toon yesterday.  :)
Reply all
Reply to author
Forward
0 new messages