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

Unified Diff: src/s390/macro-assembler-s390.h

Issue 2220313002: S390: Decouple Add/Sub/Neg to 32/64 Bit Op (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Neg32 to use lcr Created 4 years, 4 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 | « src/s390/disasm-s390.cc ('k') | src/s390/macro-assembler-s390.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/s390/macro-assembler-s390.h
diff --git a/src/s390/macro-assembler-s390.h b/src/s390/macro-assembler-s390.h
index 1a57a907d2eaaf2b494f93bfe25e0e9fea95465a..23216fc1be566169f70dc3a484105f7f6bdc190a 100644
--- a/src/s390/macro-assembler-s390.h
+++ b/src/s390/macro-assembler-s390.h
@@ -353,6 +353,9 @@ class MacroAssembler : public Assembler {
void LoadFloat32(DoubleRegister dst, const MemOperand& opnd);
void LoadFloat32ConvertToDouble(DoubleRegister dst, const MemOperand& mem);
+ // Load On Condition
+ void LoadOnConditionP(Condition cond, Register dst, Register src);
+
// Store Floating Point
void StoreDouble(DoubleRegister dst, const MemOperand& opnd);
void StoreFloat32(DoubleRegister dst, const MemOperand& opnd);
@@ -1226,44 +1229,6 @@ class MacroAssembler : public Assembler {
Register heap_number_map, Register scratch1,
Label* not_int32);
- // Overflow handling functions.
- // Usage: call the appropriate arithmetic function and then call one of the
- // flow control functions with the corresponding label.
-
- // Compute dst = left + right, setting condition codes. dst may be same as
- // either left or right (or a unique register). left and right must not be
- // the same register.
- void AddAndCheckForOverflow(Register dst, Register left, Register right,
- Register overflow_dst, Register scratch = r0);
- void AddAndCheckForOverflow(Register dst, Register left, intptr_t right,
- Register overflow_dst, Register scratch = r0);
-
- // Compute dst = left - right, setting condition codes. dst may be same as
- // either left or right (or a unique register). left and right must not be
- // the same register.
- void SubAndCheckForOverflow(Register dst, Register left, Register right,
- Register overflow_dst, Register scratch = r0);
-
- void BranchOnOverflow(Label* label) { blt(label /*, cr0*/); }
-
- void BranchOnNoOverflow(Label* label) { bge(label /*, cr0*/); }
-
- void RetOnOverflow(void) {
- Label label;
-
- blt(&label /*, cr0*/);
- Ret();
- bind(&label);
- }
-
- void RetOnNoOverflow(void) {
- Label label;
-
- bge(&label /*, cr0*/);
- Ret();
- bind(&label);
- }
-
// ---------------------------------------------------------------------------
// Runtime calls
« no previous file with comments | « src/s390/disasm-s390.cc ('k') | src/s390/macro-assembler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698