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

Unified Diff: src/objects-debug.cc

Issue 1153373003: Add new Float32x4 type for SIMD.js. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: A few more tests. Created 5 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: src/objects-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index 55fc138cf0f7116a8baf6c25e4df1496f9a3fdb8..635bd6140ee177ecd7d4fdd77775971f33a99b67 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -58,6 +58,9 @@ void HeapObject::HeapObjectVerify() {
case MUTABLE_HEAP_NUMBER_TYPE:
HeapNumber::cast(this)->HeapNumberVerify();
break;
+ case FLOAT32X4_TYPE:
+ Float32x4::cast(this)->Float32x4Verify();
+ break;
case FIXED_ARRAY_TYPE:
FixedArray::cast(this)->FixedArrayVerify();
break;
@@ -211,6 +214,9 @@ void HeapNumber::HeapNumberVerify() {
}
+void Float32x4::Float32x4Verify() { CHECK(IsFloat32x4()); }
+
+
void ByteArray::ByteArrayVerify() {
CHECK(IsByteArray());
}

Powered by Google App Engine
This is Rietveld 408576698