Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

281
Visualizações
How to get function optimization status for WebAssembly using D8?

In JavaScript %GetOptimizationStatus function exists, which returns the current status of a function in a compilation pipeline. Also, --trace-opt/--trace-deopt/--trace-baseline work fine with JavaScript source code.

WebAssebmly optimization statuses, on the other side seem to be impossible to research with those techniques. How can I see that the WebAssembly function successfully passed Liftoff/Turbofan?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There's %IsLiftoffFunction (which naturally only works for functions visible to JS, i.e. exported functions), and there's --trace-wasm-compilation-times.

Generally, tracing functionality gets built when a developer (1) has a need for it, and (2) assumes that it'll be sufficiently useful in the future to actually land the code, as opposed to just hacking in a few printfs locally and then discarding them when the issue at hand has been solved. The Wasm execution model is so simple (for now) that there hasn't been much need to build tracing for it. (And it used to be even simpler, until we turned on dynamic tiering a few months ago.)


As of today (2022-05-29, this part probably won't age very well), in the default configuration:

  • All functions are compiled with Liftoff (the Wasm baseline compiler) before execution of the first function starts. (The only exception to this are hopefully-rare cases of missing hardware support, such as functions using SIMD instructions on non-SSE4.1 x86 hardware: they get compiled with Turbofan right away. I'd like to see that fixed, but it's a lot of work and not urgent.)
  • When a function runs long enough, it's optimized with Turbofan, and the optimized code is used the next time it's called.
  • There is no OSR, no deopts, no going back to unoptimized code (unless you start debugging with DevTools).
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda