aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4isel_masm_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <[email protected]>2013-10-30 13:33:49 +0100
committerThe Qt Project <[email protected]>2013-11-01 23:01:27 +0100
commitaff3202b9fdd36ed64f55d658d1e4d066c5259d3 (patch)
tree18a55d42cabd2eb802fb195779c02ed845238832 /src/qml/compiler/qv4isel_masm_p.h
parent2c078cc2912275c6b83be1f9670fb455e25ad7b6 (diff)
Avoid unnecessary saving of the instruction pointer in the JIT
We only need to save it when the line number changes, not for each and every call. Change-Id: I1a6fdf97abd3dd654bbd97d2a99cd09e9c20f64f Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4isel_masm_p.h')
-rw-r--r--src/qml/compiler/qv4isel_masm_p.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4isel_masm_p.h b/src/qml/compiler/qv4isel_masm_p.h
index 37e99bd359..b55192aae7 100644
--- a/src/qml/compiler/qv4isel_masm_p.h
+++ b/src/qml/compiler/qv4isel_masm_p.h
@@ -468,7 +468,6 @@ public:
}
void callAbsolute(const char* functionName, FunctionPtr function) {
- saveInstructionPointer(ScratchRegister);
CallToLink ctl;
ctl.call = call();
ctl.externalFunction = function;
@@ -477,13 +476,11 @@ public:
}
void callAbsolute(const char* /*functionName*/, Address addr) {
- saveInstructionPointer(ScratchRegister);
call(addr);
}
void callAbsolute(const char* /*functionName*/, const RelativeCall &relativeCall)
{
- saveInstructionPointer(ScratchRegister);
call(relativeCall.addr);
}