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

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

Issue 1216823003: MIPS64: Fix hidden bug in relocations for j and jal. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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
Index: src/mips64/assembler-mips64.h
diff --git a/src/mips64/assembler-mips64.h b/src/mips64/assembler-mips64.h
index 529997ea016561198340085a8e6978042c7d3e34..3ca72a72201ba4bb5bedc9587890409d82c04df4 100644
--- a/src/mips64/assembler-mips64.h
+++ b/src/mips64/assembler-mips64.h
@@ -481,6 +481,7 @@ class Assembler : public AssemblerBase {
return o >> 2;
}
uint64_t jump_address(Label* L);
+ uint64_t jump_offset(Label* L);
// Puts a labels target address at the given position.
// The high 8 bits are set to zero.
@@ -733,6 +734,8 @@ class Assembler : public AssemblerBase {
// Jump targets must be in the current 256 MB-aligned region. i.e. 28 bits.
void j(int64_t target);
void jal(int64_t target);
+ void j(Label* target);
+ void jal(Label* target);
void jalr(Register rs, Register rd = ra);
void jr(Register target);
void jic(Register rt, int16_t offset);

Powered by Google App Engine
This is Rietveld 408576698