aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jit
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-06-06 14:22:38 +0200
committerLars Knoll <lars.knoll@qt.io>2018-06-21 19:43:20 +0000
commit5454b37f308e78e240ac19947121fae344cda606 (patch)
tree0ae53cb9914fcee7bdf9d1fdfc13fcbb92e95bce /src/qml/jit
parent0363f0f4f8870db20c630cd2af94e0b05255d036 (diff)
Get rid of the unused JumpEmpty instruction
Change-Id: I117687939e0f02d801dbad8de7761b4c799f2035 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jit')
-rw-r--r--src/qml/jit/qv4assembler.cpp19
-rw-r--r--src/qml/jit/qv4assembler_p.h1
-rw-r--r--src/qml/jit/qv4baselinejit.cpp1
-rw-r--r--src/qml/jit/qv4baselinejit_p.h1
4 files changed, 0 insertions, 22 deletions
diff --git a/src/qml/jit/qv4assembler.cpp b/src/qml/jit/qv4assembler.cpp
index 5702774cd7..bf7fb8a536 100644
--- a/src/qml/jit/qv4assembler.cpp
+++ b/src/qml/jit/qv4assembler.cpp
@@ -706,12 +706,6 @@ struct PlatformAssembler64 : PlatformAssemblerCommon
patches.push_back({ jump, offset });
}
- void jumpEmpty(int offset)
- {
- auto jump = branch64(Equal, AccumulatorRegister, TrustedImm64(Primitive::emptyValue().asReturnedValue()));
- patches.push_back({ jump, offset });
- }
-
Jump jumpEmpty()
{
return branch64(Equal, AccumulatorRegister, TrustedImm64(Primitive::emptyValue().asReturnedValue()));
@@ -1140,14 +1134,6 @@ struct PlatformAssembler32 : PlatformAssemblerCommon
patches.push_back({ jump, offset });
}
- void jumpEmpty(int offset)
- {
- auto notEqual = branch32(NotEqual, AccumulatorRegisterTag, TrustedImm32(Primitive::emptyValue().asReturnedValue() >> 32));
- auto jump = branch32(Equal, AccumulatorRegisterValue, TrustedImm32(Primitive::emptyValue().asReturnedValue() & 0xffffffff));
- notEqual.link(this);
- patches.push_back({ jump, offset });
- }
-
Jump jumpEmpty()
{
return branch32(Equal, AccumulatorRegisterTag, TrustedImm32(Primitive::emptyValue().asReturnedValue() >> 32));
@@ -1986,11 +1972,6 @@ void Assembler::jumpNotUndefined(int offset)
pasm()->jumpNotUndefined(offset);
}
-void JIT::Assembler::jumpEmpty(int offset)
-{
- pasm()->jumpEmpty(offset);
-}
-
void Assembler::prepareCallWithArgCount(int argc)
{
#ifndef QT_NO_DEBUG
diff --git a/src/qml/jit/qv4assembler_p.h b/src/qml/jit/qv4assembler_p.h
index d41b79f562..ac30a534df 100644
--- a/src/qml/jit/qv4assembler_p.h
+++ b/src/qml/jit/qv4assembler_p.h
@@ -142,7 +142,6 @@ public:
void jumpFalse(int offset);
void jumpNoException(int offset);
void jumpNotUndefined(int offset);
- void jumpEmpty(int offset);
// stuff for runtime calls
void prepareCallWithArgCount(int argc);
diff --git a/src/qml/jit/qv4baselinejit.cpp b/src/qml/jit/qv4baselinejit.cpp
index 6c298d9331..b994d38c2b 100644
--- a/src/qml/jit/qv4baselinejit.cpp
+++ b/src/qml/jit/qv4baselinejit.cpp
@@ -904,7 +904,6 @@ void BaselineJIT::generate_JumpTrue(int offset) { as->jumpTrue(instructionOffset
void BaselineJIT::generate_JumpFalse(int offset) { as->jumpFalse(instructionOffset() + offset); }
void BaselineJIT::generate_JumpNoException(int offset) { as->jumpNoException(instructionOffset() + offset); }
void BaselineJIT::generate_JumpNotUndefined(int offset) { as->jumpNotUndefined(instructionOffset() + offset); }
-void BaselineJIT::generate_JumpEmpty(int offset) { as->jumpEmpty(instructionOffset() + offset); }
void BaselineJIT::generate_CmpEqNull() { as->cmpeqNull(); }
void BaselineJIT::generate_CmpNeNull() { as->cmpneNull(); }
diff --git a/src/qml/jit/qv4baselinejit_p.h b/src/qml/jit/qv4baselinejit_p.h
index 5441ea974b..112cb92c75 100644
--- a/src/qml/jit/qv4baselinejit_p.h
+++ b/src/qml/jit/qv4baselinejit_p.h
@@ -165,7 +165,6 @@ public:
void generate_JumpFalse(int offset) override;
void generate_JumpNoException(int offset) override;
void generate_JumpNotUndefined(int offset) override;
- void generate_JumpEmpty(int offset) override;
void generate_CmpEqNull() override;
void generate_CmpNeNull() override;
void generate_CmpEqInt(int lhs) override;