Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index 51f679bdc1964a0ba31ade9e375a2afbabf0e94d..278344fd8867861aafe0388da02939cc8448c812 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -840,9 +840,9 @@ void Simulator::CheckICache(v8::internal::HashMap* i_cache, |
char* cached_line = cache_page->CachedData(offset & ~CachePage::kLineMask); |
if (cache_hit) { |
// Check that the data in memory matches the contents of the I-cache. |
- CHECK(memcmp(reinterpret_cast<void*>(instr), |
- cache_page->CachedData(offset), |
- Instruction::kInstrSize) == 0); |
+ CHECK_EQ(0, memcmp(reinterpret_cast<void*>(instr), |
+ cache_page->CachedData(offset), |
+ Instruction::kInstrSize)); |
} else { |
// Cache miss. Load memory into the cache. |
OS::MemCopy(cached_line, line, CachePage::kLineLength); |
@@ -1762,7 +1762,7 @@ void Simulator::ConfigureTypeRegister(Instruction* instr, |
break; |
default: |
UNIMPLEMENTED_MIPS(); |
- }; |
+ } |
break; |
case COP1X: |
break; |
@@ -1899,7 +1899,7 @@ void Simulator::ConfigureTypeRegister(Instruction* instr, |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
case SPECIAL2: |
switch (instr->FunctionFieldRaw()) { |
@@ -1915,7 +1915,7 @@ void Simulator::ConfigureTypeRegister(Instruction* instr, |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
case SPECIAL3: |
switch (instr->FunctionFieldRaw()) { |
@@ -1941,11 +1941,11 @@ void Simulator::ConfigureTypeRegister(Instruction* instr, |
} |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
} |
@@ -2204,7 +2204,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
case L: |
switch (instr->FunctionFieldRaw()) { |
@@ -2226,7 +2226,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
case COP1X: |
switch (instr->FunctionFieldRaw()) { |
@@ -2239,7 +2239,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
case SPECIAL: |
switch (instr->FunctionFieldRaw()) { |
@@ -2320,7 +2320,7 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
break; |
default: // For other special opcodes we do the default operation. |
set_register(rd_reg, alu_out); |
- }; |
+ } |
break; |
case SPECIAL2: |
switch (instr->FunctionFieldRaw()) { |
@@ -2346,14 +2346,14 @@ void Simulator::DecodeTypeRegister(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
// Unimplemented opcodes raised an error in the configuration step before, |
// so we can use the default here to set the destination register in common |
// cases. |
default: |
set_register(rd_reg, alu_out); |
- }; |
+ } |
} |
@@ -2414,7 +2414,7 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
break; |
// ------------- REGIMM class. |
case REGIMM: |
@@ -2433,7 +2433,7 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
switch (instr->RtFieldRaw()) { |
case BLTZ: |
case BLTZAL: |
@@ -2452,7 +2452,7 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) { |
} |
default: |
break; |
- }; |
+ } |
break; // case REGIMM. |
// ------------- Branch instructions. |
// When comparing to zero, the encoding of rt field is always 0, so we don't |
@@ -2585,7 +2585,7 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) { |
break; |
default: |
UNREACHABLE(); |
- }; |
+ } |
// ---------- Raise exceptions triggered. |
SignalExceptions(); |
@@ -2661,7 +2661,7 @@ void Simulator::DecodeTypeImmediate(Instruction* instr) { |
break; |
default: |
break; |
- }; |
+ } |
if (execute_branch_delay_instruction) { |