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

Side by Side Diff: src/mips/constants-mips.cc

Issue 1423493006: MIPS: Fix 'MIPS:r6 compact branch optimization.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, merge cctest/test-disasm-mips/Type0 fix. Created 5 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 unified diff | Download patch
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/mips/disasm-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698