Commit c1c526aa authored by Simon Hausmann's avatar Simon Hausmann Committed by The Qt Project
Browse files

Speed up stack trace generation for the JIT


It turns out that in QML it is not unusual that during early binding
evaluations due to the undefined order, the evaluation tries to look up
properties in objects that aren't initialized yet and thus exceptions are
thrown. Eeach thrown exception saves a stack trace, which is expensive to
generate when using the JIT, as it does full stack unwinding.

This patch implements a more light-weight approach by storing the instruction
pointer in the context before leaving JIT generated code.

Change-Id: I95e1cfd01179247dfc2c1df949828f474a23161b
Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
parent ddd9c93b
No related merge requests found
Showing with 38 additions and 272 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment