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

Unified Diff: src/s390/simulator-s390.cc

Issue 2523683003: s390: using correct type to fix gcc error (Closed)
Patch Set: Created 4 years, 1 month 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/s390/simulator-s390.cc
diff --git a/src/s390/simulator-s390.cc b/src/s390/simulator-s390.cc
index dda51e205d87f1128776d3e0e4b9251a10a7b406..74d37bc20aed8d629f0f26f6b0e5bb5a4fac3dc0 100644
--- a/src/s390/simulator-s390.cc
+++ b/src/s390/simulator-s390.cc
@@ -5700,15 +5700,15 @@ void Simulator::CallInternal(byte* entry, int reg_arg_count) {
// Check that the non-volatile registers have been preserved.
#ifndef V8_TARGET_ARCH_S390X
if (reg_arg_count < 5) {
- DCHECK_EQ(callee_saved_value + 6, get_low_register<int32_t>(r6));
+ DCHECK_EQ(callee_saved_value + 6, get_low_register<uint32_t>(r6));
}
- DCHECK_EQ(callee_saved_value + 7, get_low_register<int32_t>(r7));
- DCHECK_EQ(callee_saved_value + 8, get_low_register<int32_t>(r8));
- DCHECK_EQ(callee_saved_value + 9, get_low_register<int32_t>(r9));
- DCHECK_EQ(callee_saved_value + 10, get_low_register<int32_t>(r10));
- DCHECK_EQ(callee_saved_value + 11, get_low_register<int32_t>(r11));
- DCHECK_EQ(callee_saved_value + 12, get_low_register<int32_t>(r12));
- DCHECK_EQ(callee_saved_value + 13, get_low_register<int32_t>(r13));
+ DCHECK_EQ(callee_saved_value + 7, get_low_register<uint32_t>(r7));
+ DCHECK_EQ(callee_saved_value + 8, get_low_register<uint32_t>(r8));
+ DCHECK_EQ(callee_saved_value + 9, get_low_register<uint32_t>(r9));
+ DCHECK_EQ(callee_saved_value + 10, get_low_register<uint32_t>(r10));
+ DCHECK_EQ(callee_saved_value + 11, get_low_register<uint32_t>(r11));
+ DCHECK_EQ(callee_saved_value + 12, get_low_register<uint32_t>(r12));
+ DCHECK_EQ(callee_saved_value + 13, get_low_register<uint32_t>(r13));
#else
if (reg_arg_count < 5) {
DCHECK_EQ(callee_saved_value + 6, get_register(r6));
@@ -5816,15 +5816,15 @@ intptr_t Simulator::Call(byte* entry, int argument_count, ...) {
// Check that the non-volatile registers have been preserved.
#ifndef V8_TARGET_ARCH_S390X
if (reg_arg_count < 5) {
- DCHECK_EQ(callee_saved_value + 6, get_low_register<int32_t>(r6));
+ DCHECK_EQ(callee_saved_value + 6, get_low_register<uint32_t>(r6));
}
- DCHECK_EQ(callee_saved_value + 7, get_low_register<int32_t>(r7));
- DCHECK_EQ(callee_saved_value + 8, get_low_register<int32_t>(r8));
- DCHECK_EQ(callee_saved_value + 9, get_low_register<int32_t>(r9));
- DCHECK_EQ(callee_saved_value + 10, get_low_register<int32_t>(r10));
- DCHECK_EQ(callee_saved_value + 11, get_low_register<int32_t>(r11));
- DCHECK_EQ(callee_saved_value + 12, get_low_register<int32_t>(r12));
- DCHECK_EQ(callee_saved_value + 13, get_low_register<int32_t>(r13));
+ DCHECK_EQ(callee_saved_value + 7, get_low_register<uint32_t>(r7));
+ DCHECK_EQ(callee_saved_value + 8, get_low_register<uint32_t>(r8));
+ DCHECK_EQ(callee_saved_value + 9, get_low_register<uint32_t>(r9));
+ DCHECK_EQ(callee_saved_value + 10, get_low_register<uint32_t>(r10));
+ DCHECK_EQ(callee_saved_value + 11, get_low_register<uint32_t>(r11));
+ DCHECK_EQ(callee_saved_value + 12, get_low_register<uint32_t>(r12));
+ DCHECK_EQ(callee_saved_value + 13, get_low_register<uint32_t>(r13));
#else
if (reg_arg_count < 5) {
DCHECK_EQ(callee_saved_value + 6, get_register(r6));
@@ -5850,7 +5850,7 @@ intptr_t Simulator::Call(byte* entry, int argument_count, ...) {
// Pop stack passed arguments.
#ifndef V8_TARGET_ARCH_S390X
- DCHECK_EQ(entry_stack, get_low_register<int32_t>(sp));
+ DCHECK_EQ(entry_stack, get_low_register<uint32_t>(sp));
#else
DCHECK_EQ(entry_stack, get_register(sp));
#endif
« 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