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

Port c2de961128

Fixes an infinite loop on MIPS64 big-endian.

BUG=

Review-Url: https://codereview.chromium.org/1959463003
Cr-Commit-Position: refs/heads/master@{#36090}
This commit is contained in:
akos.palfi 2016-05-06 12:49:30 -07:00 committed by Commit bot
parent 0783a6fc27
commit 643dfe0d05

View File

@ -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));