Commit 643dfe0d authored by akos.palfi's avatar akos.palfi Committed by Commit bot

MIPS64: Fix 'Visit the Optimized Code Map on first call rather than closure creation.'

Port c2de9611

Fixes an infinite loop on MIPS64 big-endian.

BUG=

Review-Url: https://codereview.chromium.org/1959463003
Cr-Commit-Position: refs/heads/master@{#36090}
parent 0783a6fc
......@@ -1357,7 +1357,7 @@ void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
// Is the full code valid?
__ ld(entry, FieldMemOperand(closure, JSFunction::kSharedFunctionInfoOffset));
__ ld(entry, FieldMemOperand(entry, SharedFunctionInfo::kCodeOffset));
__ ld(a5, FieldMemOperand(entry, Code::kFlagsOffset));
__ lw(a5, FieldMemOperand(entry, Code::kFlagsOffset));
__ And(a5, a5, Operand(Code::KindField::kMask));
__ dsrl(a5, a5, Code::KindField::kShift);
__ Branch(&gotta_call_runtime_no_stack, eq, a5, Operand(Code::BUILTIN));
......
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