| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 kExponentShift) - kExponentBias; | 1346 kExponentShift) - kExponentBias; |
| 1347 } | 1347 } |
| 1348 | 1348 |
| 1349 | 1349 |
| 1350 int HeapNumber::get_sign() { | 1350 int HeapNumber::get_sign() { |
| 1351 return READ_INT_FIELD(this, kExponentOffset) & kSignMask; | 1351 return READ_INT_FIELD(this, kExponentOffset) & kSignMask; |
| 1352 } | 1352 } |
| 1353 | 1353 |
| 1354 | 1354 |
| 1355 bool Simd128Value::Equals(Simd128Value* that) { | 1355 bool Simd128Value::Equals(Simd128Value* that) { |
| 1356 // TODO(bmeurer): This doesn't match the SIMD.js specification, but it seems |
| 1357 // to be consistent with what the CompareICStub does, and what is tested in |
| 1358 // the current SIMD.js testsuite. |
| 1359 if (this == that) return true; |
| 1356 #define SIMD128_VALUE(TYPE, Type, type, lane_count, lane_type) \ | 1360 #define SIMD128_VALUE(TYPE, Type, type, lane_count, lane_type) \ |
| 1357 if (this->Is##Type()) { \ | 1361 if (this->Is##Type()) { \ |
| 1358 if (!that->Is##Type()) return false; \ | 1362 if (!that->Is##Type()) return false; \ |
| 1359 return Type::cast(this)->Equals(Type::cast(that)); \ | 1363 return Type::cast(this)->Equals(Type::cast(that)); \ |
| 1360 } | 1364 } |
| 1361 SIMD128_TYPES(SIMD128_VALUE) | 1365 SIMD128_TYPES(SIMD128_VALUE) |
| 1362 #undef SIMD128_VALUE | 1366 #undef SIMD128_VALUE |
| 1363 return false; | 1367 return false; |
| 1364 } | 1368 } |
| 1365 | 1369 |
| (...skipping 6319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7685 #undef WRITE_INT64_FIELD | 7689 #undef WRITE_INT64_FIELD |
| 7686 #undef READ_BYTE_FIELD | 7690 #undef READ_BYTE_FIELD |
| 7687 #undef WRITE_BYTE_FIELD | 7691 #undef WRITE_BYTE_FIELD |
| 7688 #undef NOBARRIER_READ_BYTE_FIELD | 7692 #undef NOBARRIER_READ_BYTE_FIELD |
| 7689 #undef NOBARRIER_WRITE_BYTE_FIELD | 7693 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7690 | 7694 |
| 7691 } // namespace internal | 7695 } // namespace internal |
| 7692 } // namespace v8 | 7696 } // namespace v8 |
| 7693 | 7697 |
| 7694 #endif // V8_OBJECTS_INL_H_ | 7698 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |