As notas de versão são escritas em inglês.
Text-reading loops and element-tree builders run faster
A speed release for the engine's compilers and layout. Loops that read text one character at a time, the way tokenizers and parsers do, now work on whole numbers. try and catch blocks recover into machine code sooner. The optimizing compiler now builds the element trees that page frameworks make with small helper functions, and layout reads margins, padding and border widths without parsing them each time. Recorded real pages spend about the same time in script, style and layout as in 0.1.421: two news pages are 1-3% faster, and one technology news page is about 0.5% slower.
Loops that read text one character at a time
A tokenizer reads a string one character code at a time and checks each code against a list of cases. Those codes are whole numbers, but compiled code held them as general numbers, so every case was a slower comparison. Now the code, its position in the text and each case of the switch are whole numbers. If a read goes past the end of the text, the loop leaves its machine code and is compiled once more in the general form, so the answer is the same.
Element trees built in the optimizing compiler
Page frameworks build their element trees with tiny helper functions that return an object: a tag, its properties and its children. The optimizing compiler now builds these directly, including empty lists and objects, a choice between two words such as a class name, and helpers declared inside another function, which used to fail the compiled code's check on every new call.
O que mudou
14 mudanças- JavaScript e JITSpeed: a loop reading text one character code at a time works on whole numbers, and leaves its machine code only for a position past the end of the text. Switch: FLOATI_NO_CCA_INT.
- JavaScript e JITSpeed: a counter used as a position in text stays a whole number in compiled loops. Switch: FLOATI_NO_CCA_INDEX_INT.
- JavaScript e JITSpeed: each case of a switch over a loop variable compares the number directly instead of a copy. Switch: FLOATI_NO_SWITCH_REG_CASES.
- JavaScript e JITSpeed: compiled code compares with a small constant in one instruction. Switch: FLOATI_NO_IR_CMP_IMM.
- JavaScript e JITSpeed: statements inside functions no longer keep a value only top-level code can read, so compiled loops do less each turn. Switch: FLOATI_NO_FN_BODY_POP.
- JavaScript e JITSpeed: after a throw is caught, a loop goes straight back into machine code instead of 500 slower turns first. Switch: FLOATI_NO_CATCH_REOSR.
- RenderizaçãoSpeed: a helper's own parameter no longer counts as using the caller's variable of the same name, so the caller stays in the fastest tier. Switch: FLOATI_NO_CAPTURE_OWN_PARAMS.
- RenderizaçãoSpeed: small helpers that compare with == or !=, take a remainder, combine bits, or check an argument and throw, run inside the calling code. Switches: FLOATI_NO_PEEL_MORE_OPS, FLOATI_NO_PEEL_THROW_GUARD.
- RenderizaçãoSpeed: a helper declared inside another function stays inside the calling code each time that function makes it again. Switch: FLOATI_NO_PEEL_BY_TEMPLATE.
- JavaScript e JITSpeed: a try block in the fastest tier that keeps catching while it calls another function hands its loop to the loop tier, which runs that call inside the loop. Switch: FLOATI_NO_SSA_CATCH_RETIRE.
- RenderizaçãoSpeed: new Error builds its fixed properties once instead of for every error. Switch: FLOATI_NO_ERROR_KEYS_CACHED.
- RenderizaçãoFix: new Error() has no message of its own, and an error's cause is not listed among its keys, as in other browsers. Switch: FLOATI_NO_ERROR_SPEC_OWN.
- JavaScript e JITSpeed: the optimizing compiler builds element trees from small helper functions, with empty lists and objects, a choice between two words, and helpers declared inside other functions. Switches: FLOATI_NO_THERMAL_EMPTY_ARR, FLOATI_NO_THERMAL_CSTR_SEL, FLOATI_NO_THERMAL_FACTORY_CHOICE, FLOATI_NO_THERMAL_EXIT_BEFORE_MADE, FLOATI_NO_THERMAL_FACTORY_BY_TEMPLATE.
- RenderizaçãoSpeed: layout reads margins, padding and border widths from one parsed record per style instead of parsing the text at each read (recorded pages 1.2% less layout and script time in one measurement). Switch: FLOATI_NO_LEN_SLOTS.





