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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.cc

Issue 2477453005: MIPS[64]: Optimize kMips[64]Tst in code-generator-mips[64].cc (Closed)
Patch Set: Address code review remarks 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 case kMips64Dshl: 58 case kMips64Dshl:
59 case kMips64Dsar: 59 case kMips64Dsar:
60 case kMips64Dshr: 60 case kMips64Dshr:
61 return is_uint6(value); 61 return is_uint6(value);
62 case kMips64Add: 62 case kMips64Add:
63 case kMips64And32: 63 case kMips64And32:
64 case kMips64And: 64 case kMips64And:
65 case kMips64Dadd: 65 case kMips64Dadd:
66 case kMips64Or32: 66 case kMips64Or32:
67 case kMips64Or: 67 case kMips64Or:
68 case kMips64Tst:
68 case kMips64Xor: 69 case kMips64Xor:
69 return is_uint16(value); 70 return is_uint16(value);
70 case kMips64Ldc1: 71 case kMips64Ldc1:
71 case kMips64Sdc1: 72 case kMips64Sdc1:
72 return is_int16(value + kIntSize); 73 return is_int16(value + kIntSize);
73 default: 74 default:
74 return is_int16(value); 75 return is_int16(value);
75 } 76 }
76 } 77 }
77 78
(...skipping 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2561 } else { 2562 } else {
2562 DCHECK(kArchVariant == kMips64r2); 2563 DCHECK(kArchVariant == kMips64r2);
2563 return MachineOperatorBuilder::AlignmentRequirements:: 2564 return MachineOperatorBuilder::AlignmentRequirements::
2564 NoUnalignedAccessSupport(); 2565 NoUnalignedAccessSupport();
2565 } 2566 }
2566 } 2567 }
2567 2568
2568 } // namespace compiler 2569 } // namespace compiler
2569 } // namespace internal 2570 } // namespace internal
2570 } // namespace v8 2571 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698