Chromium Code Reviews

Unified Diff: src/builtins/mips/builtins-mips.cc

Issue 2542403002: MIPS: Use JIC/JIALC offset when possible (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/compiler/mips/code-generator-mips.cc » ('j') | src/compiler/mips/code-generator-mips.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | src/compiler/mips/code-generator-mips.cc » ('j') | src/compiler/mips/code-generator-mips.cc » ('J')

Powered by Google App Engine