mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
avoid unecessary subtraction in tableswitch
This commit is contained in:
parent
b5f76d96dc
commit
33ba8d084d
@ -3730,9 +3730,12 @@ compile(MyThread* t, Frame* initialFrame, unsigned ip,
|
|||||||
|
|
||||||
saveStateAndCompile(t, frame, defaultIp);
|
saveStateAndCompile(t, frame, defaultIp);
|
||||||
|
|
||||||
|
Compiler::Operand* normalizedKey
|
||||||
|
= (bottom ? c->sub(4, c->constant(bottom), key) : key);
|
||||||
|
|
||||||
c->jmp(c->load(BytesPerWord, BytesPerWord,
|
c->jmp(c->load(BytesPerWord, BytesPerWord,
|
||||||
c->memory(start, 0, c->sub(4, c->constant(bottom), key),
|
c->memory(start, 0, normalizedKey, BytesPerWord),
|
||||||
BytesPerWord), BytesPerWord));
|
BytesPerWord));
|
||||||
|
|
||||||
Compiler::State* state = c->saveState();
|
Compiler::State* state = c->saveState();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user