VM experts: Are polymorphic closures like`a=x=>y=>x+y; hi=a('hi'); two=a(2);` optimized as a single subroutine or two separate? cc @mraleph
-
-
Replying to @sebmarkbage
I.e. Does the instance matter for optimizations if the source function (the factory) is the same?
1 reply 0 retweets 0 likes -
Replying to @sebmarkbage
@sebmarkbage not an expert but my understanding is it would be two. Looking forward to@mraleph's response3 replies 0 retweets 1 like -
Replying to @stefanpenner
@stefanpenner@sebmarkbage in V8 closures produced by same literal right now share type-feedback so it will not be split1 reply 3 retweets 4 likes -
Replying to @mraleph
@mraleph : since when? /cc@stefanpenner@sebmarkbage3 replies 0 retweets 0 likes -
Replying to @slightlylate
@slightlylate since always. type-feedback right now is IC-state, ICs are in generated code, unopt code is shared@stefanpenner@sebmarkbage1 reply 0 retweets 2 likes -
Replying to @mraleph
@mraleph: so this code will deopt (if it gets heavy traffic on one type and then sees the second)? /cc@stefanpenner@sebmarkbage5 replies 0 retweets 2 likes -
Replying to @slightlylate
@slightlylate ... though with vector type feedback unsharing would be simple@stefanpenner@sebmarkbage1 reply 0 retweets 2 likes -
Replying to @mraleph
@mraleph@stefanpenner@sebmarkbage: another reason to be excited for Turbofan. Thanks for the explanation!1 reply 0 retweets 0 likes -
Replying to @slightlylate
@slightlylate completely unrelated to turbofan - TF is a compiler, this is the part of the IC-system in runtime@stefanpenner@sebmarkbage1 reply 0 retweets 1 like
@mraleph: I was under the impression the runtime IV work was gated on TF switchover somehow.
/cc @stefanpenner @sebmarkbage
-
-
Replying to @slightlylate
@mraleph: if it's not, so much the better :-) /cc@stefanpenner@sebmarkbage0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.