Commit 12cd3b9c authored by Ivica Bogosavljevic's avatar Ivica Bogosavljevic Committed by Commit Bot

MIPS64: Fix `[debug] implement break on entry for builtin functions`

Fix 876f37c3

Wrong instruction use causes around 600 failures on MIPS64 bots

Change-Id: I66bd9689c5e5b5e9bf40a0e7063dbbcfed04fcf7
Reviewed-on: https://chromium-review.googlesource.com/908465Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Ivica Bogosavljevic <ivica.bogosavljevic@mips.com>
Cr-Commit-Position: refs/heads/master@{#51198}
parent cb9984cf
......@@ -4282,10 +4282,10 @@ void MacroAssembler::CheckDebugHook(Register fun, Register new_target,
Lb(t0, MemOperand(t0));
Branch(&call_hook, ne, t0, Operand(zero_reg));
Lw(t0, FieldMemOperand(fun, JSFunction::kSharedFunctionInfoOffset));
Lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kDebugInfoOffset));
Ld(t0, FieldMemOperand(fun, JSFunction::kSharedFunctionInfoOffset));
Ld(t0, FieldMemOperand(t0, SharedFunctionInfo::kDebugInfoOffset));
JumpIfSmi(t0, &skip_hook);
Lw(t0, FieldMemOperand(t0, DebugInfo::kFlagsOffset));
Ld(t0, FieldMemOperand(t0, DebugInfo::kFlagsOffset));
And(t0, t0, Operand(Smi::FromInt(DebugInfo::kBreakAtEntry)));
Branch(&skip_hook, eq, t0, Operand(zero_reg));
......
Markdown is supported
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