chakra-core/ChakraCore

don't emit LdNativeCodeData if function doesn't use any

Ouverte

#5 516 ouverte le 24 juil. 2018

 (0 commentaire) (0 réaction) (0 personne assignée)JavaScript (1 226 forks)batch import
Performancehelp wanted

Métriques du dépôt

Stars
 (9 257 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Most JS functions will have a bailout or something that uses native code data, but wasm functions never will (or almost never). We should change to only emit this instruction only if we actually need it. It's a bit tricky to track, since most of the uses are introduced during lowerer or later, but it should be doable.

Guide contributeur