Commit ed2b3158 authored by balazs.kilvady's avatar balazs.kilvady Committed by Commit bot

MIPS64: Fix '[es6] Faster implementation of OrdinaryHasInstance.'

Port b6419fa2

Now implemented as a builtin that delegates to the InstanceOfStub. That
stub was parameterized to fallback to either Runtime_InstanceOf or to
Runtime_OrdinaryHasInstance depending on the --harmony-instanceof flag.
Once the feature stabilizes and the flag is no longer needed, we can get
rid of this parameterization again.

BUG=v8:4447
LOG=n

Review URL: https://codereview.chromium.org/1832053002

Cr-Commit-Position: refs/heads/master@{#35072}
parent 21733b6b
......@@ -1480,9 +1480,9 @@ void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) {
{
FrameScope scope(masm, StackFrame::INTERNAL);
__ lw(InstanceOfDescriptor::LeftRegister(),
__ ld(InstanceOfDescriptor::LeftRegister(),
MemOperand(fp, 2 * kPointerSize)); // Load left-hand side.
__ lw(InstanceOfDescriptor::RightRegister(),
__ ld(InstanceOfDescriptor::RightRegister(),
MemOperand(fp, 3 * kPointerSize)); // Load right-hand side.
InstanceOfStub stub(masm->isolate(), true);
__ CallStub(&stub);
......
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