OLD | NEW |
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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 #include "src/compilation-info.h" | 6 #include "src/compilation-info.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 __ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 1214 __ Ins(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
1215 i.InputInt8(2)); | 1215 i.InputInt8(2)); |
1216 } | 1216 } |
1217 break; | 1217 break; |
1218 case kMips64Dext: { | 1218 case kMips64Dext: { |
1219 int16_t pos = i.InputInt8(1); | 1219 int16_t pos = i.InputInt8(1); |
1220 int16_t size = i.InputInt8(2); | 1220 int16_t size = i.InputInt8(2); |
1221 if (size > 0 && size <= 32 && pos >= 0 && pos < 32) { | 1221 if (size > 0 && size <= 32 && pos >= 0 && pos < 32) { |
1222 __ Dext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 1222 __ Dext(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
1223 i.InputInt8(2)); | 1223 i.InputInt8(2)); |
1224 } else if (size > 32 && size <= 64 && pos > 0 && pos < 32) { | 1224 } else if (size > 32 && size <= 64 && pos >= 0 && pos < 32) { |
1225 __ Dextm(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 1225 __ Dextm(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
1226 i.InputInt8(2)); | 1226 i.InputInt8(2)); |
1227 } else { | 1227 } else { |
1228 DCHECK(size > 0 && size <= 32 && pos >= 32 && pos < 64); | 1228 DCHECK(size > 0 && size <= 32 && pos >= 32 && pos < 64); |
1229 __ Dextu(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), | 1229 __ Dextu(i.OutputRegister(), i.InputRegister(0), i.InputInt8(1), |
1230 i.InputInt8(2)); | 1230 i.InputInt8(2)); |
1231 } | 1231 } |
1232 break; | 1232 break; |
1233 } | 1233 } |
1234 case kMips64Dins: | 1234 case kMips64Dins: |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2691 padding_size -= v8::internal::Assembler::kInstrSize; | 2691 padding_size -= v8::internal::Assembler::kInstrSize; |
2692 } | 2692 } |
2693 } | 2693 } |
2694 } | 2694 } |
2695 | 2695 |
2696 #undef __ | 2696 #undef __ |
2697 | 2697 |
2698 } // namespace compiler | 2698 } // namespace compiler |
2699 } // namespace internal | 2699 } // namespace internal |
2700 } // namespace v8 | 2700 } // namespace v8 |
OLD | NEW |