Index: src/builtins/mips/builtins-mips.cc |
diff --git a/src/builtins/mips/builtins-mips.cc b/src/builtins/mips/builtins-mips.cc |
index 7a9b2b32e7abc06b083c1309db694c3e16369631..fb5fe9642bd996361aca14f086fd701fa4156049 100644 |
--- a/src/builtins/mips/builtins-mips.cc |
+++ b/src/builtins/mips/builtins-mips.cc |
@@ -528,8 +528,12 @@ static void GenerateTailCallToReturnedCode(MacroAssembler* masm, |
__ SmiUntag(a0); |
} |
- __ Addu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
- __ Jump(at); |
+ if (IsMipsArchVariant(kMips32r6)) { |
+ __ Jump(v0, Code::kHeaderSize - kHeapObjectTag); |
ivica.bogosavljevic
2016/12/05 10:48:47
Common routine
|
+ } else { |
+ __ Addu(at, v0, Operand(Code::kHeaderSize - kHeapObjectTag)); |
+ __ Jump(at); |
+ } |
} |
void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) { |