Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 1abc7ebf076e9d539e290e218228db1b15ce7be0..e00478a6afaf01e2b5f6a68244c701a1859d6f64 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1353,6 +1353,10 @@ int HeapNumber::get_sign() { |
bool Simd128Value::Equals(Simd128Value* that) { |
+ // TODO(bmeurer): This doesn't match the SIMD.js specification, but it seems |
+ // to be consistent with what the CompareICStub does, and what is tested in |
+ // the current SIMD.js testsuite. |
+ if (this == that) return true; |
#define SIMD128_VALUE(TYPE, Type, type, lane_count, lane_type) \ |
if (this->Is##Type()) { \ |
if (!that->Is##Type()) return false; \ |