| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 6 | 6 |
| 7 #include "src/mips/constants-mips.h" | 7 #include "src/mips/constants-mips.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 break; | 159 break; |
| 160 case SPECIAL: | 160 case SPECIAL: |
| 161 switch (instr & kFunctionFieldMask) { | 161 switch (instr & kFunctionFieldMask) { |
| 162 case JR: | 162 case JR: |
| 163 case JALR: | 163 case JALR: |
| 164 return true; | 164 return true; |
| 165 default: | 165 default: |
| 166 return false; | 166 return false; |
| 167 } | 167 } |
| 168 break; | 168 break; |
| 169 case COP1: |
| 170 switch (instr & kRsFieldMask) { |
| 171 case BC1: |
| 172 case BC1EQZ: |
| 173 case BC1NEZ: |
| 174 return true; |
| 175 break; |
| 176 default: |
| 177 return false; |
| 178 } |
| 179 break; |
| 169 default: | 180 default: |
| 170 return false; | 181 return false; |
| 171 } | 182 } |
| 172 } | 183 } |
| 173 | 184 |
| 174 | 185 |
| 175 bool Instruction::IsLinkingInstruction() const { | 186 bool Instruction::IsLinkingInstruction() const { |
| 176 switch (OpcodeFieldRaw()) { | 187 switch (OpcodeFieldRaw()) { |
| 177 case JAL: | 188 case JAL: |
| 178 return true; | 189 return true; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 return false; | 230 return false; |
| 220 } | 231 } |
| 221 } | 232 } |
| 222 } | 233 } |
| 223 | 234 |
| 224 | 235 |
| 225 } // namespace internal | 236 } // namespace internal |
| 226 } // namespace v8 | 237 } // namespace v8 |
| 227 | 238 |
| 228 #endif // V8_TARGET_ARCH_MIPS | 239 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |