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

Unified Diff: src/a64/macro-assembler-a64-inl.h

Issue 169893002: A64: Let the MacroAssembler resolve branches to distant targets. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Ulan's comments. Created 6 years, 10 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/a64/macro-assembler-a64-inl.h
diff --git a/src/a64/macro-assembler-a64-inl.h b/src/a64/macro-assembler-a64-inl.h
index 53ce57faf366454990ce746bad7f1c564f4d1969..0c62a8b62e22ddca391546b0627ae90192027329 100644
--- a/src/a64/macro-assembler-a64-inl.h
+++ b/src/a64/macro-assembler-a64-inl.h
@@ -346,6 +346,7 @@ void MacroAssembler::Asr(const Register& rd,
void MacroAssembler::B(Label* label) {
b(label);
+ CheckVeneers(false);
}
@@ -355,13 +356,6 @@ void MacroAssembler::B(Condition cond, Label* label) {
}
-void MacroAssembler::B(Label* label, Condition cond) {
- ASSERT(allow_macro_instructions_);
- ASSERT((cond != al) && (cond != nv));
- b(label, cond);
-}
-
-
void MacroAssembler::Bfi(const Register& rd,
const Register& rn,
unsigned lsb,
@@ -414,18 +408,6 @@ void MacroAssembler::Brk(int code) {
}
-void MacroAssembler::Cbnz(const Register& rt, Label* label) {
- ASSERT(allow_macro_instructions_);
- cbnz(rt, label);
-}
-
-
-void MacroAssembler::Cbz(const Register& rt, Label* label) {
- ASSERT(allow_macro_instructions_);
- cbz(rt, label);
-}
-
-
void MacroAssembler::Cinc(const Register& rd,
const Register& rn,
Condition cond) {
@@ -1032,6 +1014,7 @@ void MacroAssembler::Ret(const Register& xn) {
ASSERT(allow_macro_instructions_);
ASSERT(!xn.IsZero());
ret(xn);
+ CheckVeneers(false);
}
@@ -1186,18 +1169,6 @@ void MacroAssembler::Sxtw(const Register& rd, const Register& rn) {
}
-void MacroAssembler::Tbnz(const Register& rt, unsigned bit_pos, Label* label) {
- ASSERT(allow_macro_instructions_);
- tbnz(rt, bit_pos, label);
-}
-
-
-void MacroAssembler::Tbz(const Register& rt, unsigned bit_pos, Label* label) {
- ASSERT(allow_macro_instructions_);
- tbz(rt, bit_pos, label);
-}
-
-
void MacroAssembler::Ubfiz(const Register& rd,
const Register& rn,
unsigned lsb,
@@ -1255,12 +1226,6 @@ void MacroAssembler::Umsubl(const Register& rd,
}
-void MacroAssembler::Unreachable() {
- ASSERT(allow_macro_instructions_);
- hlt(kImmExceptionIsUnreachable);
-}
-
-
void MacroAssembler::Uxtb(const Register& rd, const Register& rn) {
ASSERT(allow_macro_instructions_);
ASSERT(!rd.IsZero());

Powered by Google App Engine
This is Rietveld 408576698