electron/shell
trop[bot] 8d9ed52c72
perf: avoid redundant Promise.GetContext calls (#43620)
refactor: avoid redundant Promise.GetContext calls

Several Promise methods call `GetContext()` multiple times. From looking
at the assembly in obj/electron/electron_lib/promise.o, these redundant
calls are actually being made -- they aren't optmized out.

This PR keeps the return value in a local variable to avoid extra calls.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-08 10:37:42 -05:00
..
app fix: delete UvTaskRunner's timers only after they're closed (#43597) 2024-09-06 08:37:33 -05:00
browser refactor: NativeWindow::Create() returns a unique_ptr (#43607) 2024-09-06 14:20:09 -05:00
common perf: avoid redundant Promise.GetContext calls (#43620) 2024-09-08 10:37:42 -05:00
renderer perf: use v8::Local<v8::Object> as the key in ObjectCache (#43568) 2024-09-05 10:08:42 +02:00
services/node refactor: declare gin::Wrapper subclasses as final (#43565) 2024-09-04 21:26:25 -05:00
utility chore: bump chromium to 129.0.6630.0 (main) (#43087) 2024-08-02 09:02:11 -05:00