Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: src/ppc/assembler-ppc.h

Issue 1233453007: PPC: Remove unused jump_elimination_allowed parameter to Assembler::branch_offset(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/assembler-ppc.h
diff --git a/src/ppc/assembler-ppc.h b/src/ppc/assembler-ppc.h
index 82d068503d72c4ee9b9c1a22f935de4550acc996..356dd4de8112b27abfd363c5ba6a17fe32a2f5d3 100644
--- a/src/ppc/assembler-ppc.h
+++ b/src/ppc/assembler-ppc.h
@@ -591,8 +591,7 @@ class Assembler : public AssemblerBase {
// Returns the branch offset to the given label from the current code position
// Links the label to the current position if it is still unbound
- // Manages the jump elimination optimization if the second parameter is true.
- int branch_offset(Label* L, bool jump_elimination_allowed) {
+ int branch_offset(Label* L) {
int position = link(L);
return position - pc_offset();
}
@@ -753,7 +752,7 @@ class Assembler : public AssemblerBase {
void bctrl();
// Convenience branch instructions using labels
- void b(Label* L, LKBit lk = LeaveLK) { b(branch_offset(L, false), lk); }
+ void b(Label* L, LKBit lk = LeaveLK) { b(branch_offset(L), lk); }
inline CRegister cmpi_optimization(CRegister cr) {
// Check whether the branch is preceeded by an optimizable cmpi against 0.
@@ -798,7 +797,7 @@ class Assembler : public AssemblerBase {
cr = cmpi_optimization(cr);
- int b_offset = branch_offset(L, false);
+ int b_offset = branch_offset(L);
switch (cond) {
case eq:
@@ -931,7 +930,7 @@ class Assembler : public AssemblerBase {
// Decrement CTR; branch if CTR != 0
void bdnz(Label* L, LKBit lk = LeaveLK) {
- bc(branch_offset(L, false), DCBNZ, 0, lk);
+ bc(branch_offset(L), DCBNZ, 0, lk);
}
// Data-processing instructions
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698