[mips32] Fix unused-but-set-variable
check failures
Some variables are only used in DCHECKs, which leading to the `unused-but-set-variable` check fail in release mode. So we need to explicitly mark them as used. Change-Id: I18dc8ec97ea5fbbaa081a52629b9572b863d901e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3237558 Reviewed-by: Liu yu <liuyu@loongson.cn> Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn> Cr-Commit-Position: refs/heads/main@{#77507}
This commit is contained in:
parent
cfe0a7a905
commit
25ca43f2ee
@ -501,6 +501,7 @@ void Generate_JSEntryVariant(MacroAssembler* masm, StackFrame::Type type,
|
||||
Handle<Code> trampoline_code =
|
||||
masm->isolate()->builtins()->code_handle(entry_trampoline);
|
||||
DCHECK_EQ(kPushedStackSpace, pushed_stack_space);
|
||||
USE(pushed_stack_space);
|
||||
__ Call(trampoline_code, RelocInfo::CODE_TARGET);
|
||||
|
||||
// Unlink this frame from the handler chain.
|
||||
|
@ -3854,6 +3854,7 @@ void Simulator::DecodeTypeRegisterSPECIAL() {
|
||||
int32_t res = _rs << sa;
|
||||
res += _rt;
|
||||
DCHECK_EQ(res, (rs() << (lsa_sa() + 1)) + rt());
|
||||
USE(res);
|
||||
SetResult(rd_reg(), (rs() << (lsa_sa() + 1)) + rt());
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user