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

Unified Diff: src/objects-printer.cc

Issue 90643003: Experimental implementation: Exposing SIMD instructions into JavaScript Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index 512f532ff9164638a1efeeb559d16d9275bed6da..0602b370d735ff590ed95d9b8d52df23911cdb53 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -92,6 +92,12 @@ void HeapObject::HeapObjectPrint(FILE* out) {
case HEAP_NUMBER_TYPE:
HeapNumber::cast(this)->HeapNumberPrint(out);
break;
+ case FLOAT32x4_TYPE:
+ Float32x4::cast(this)->Float32x4Print(out);
+ break;
+ case INT32x4_TYPE:
+ Int32x4::cast(this)->Int32x4Print(out);
+ break;
case FIXED_DOUBLE_ARRAY_TYPE:
FixedDoubleArray::cast(this)->FixedDoubleArrayPrint(out);
break;
@@ -133,6 +139,12 @@ void HeapObject::HeapObjectPrint(FILE* out) {
case EXTERNAL_FLOAT_ARRAY_TYPE:
ExternalFloatArray::cast(this)->ExternalFloatArrayPrint(out);
break;
+ case EXTERNAL_FLOAT32x4_ARRAY_TYPE:
+ ExternalFloat32x4Array::cast(this)->ExternalFloat32x4ArrayPrint(out);
+ break;
+ case EXTERNAL_INT32x4_ARRAY_TYPE:
+ ExternalInt32x4Array::cast(this)->ExternalInt32x4ArrayPrint(out);
+ break;
case EXTERNAL_DOUBLE_ARRAY_TYPE:
ExternalDoubleArray::cast(this)->ExternalDoubleArrayPrint(out);
break;
@@ -281,6 +293,16 @@ void ExternalFloatArray::ExternalFloatArrayPrint(FILE* out) {
}
+void ExternalFloat32x4Array::ExternalFloat32x4ArrayPrint(FILE* out) {
+ PrintF(out, "external float32x4 array");
+}
+
+
+void ExternalInt32x4Array::ExternalInt32x4ArrayPrint(FILE* out) {
+ PrintF(out, "external int32x4 array");
+}
+
+
void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) {
PrintF(out, "external double array");
}
@@ -416,6 +438,26 @@ void JSObject::PrintElements(FILE* out) {
}
break;
}
+ case EXTERNAL_FLOAT32x4_ELEMENTS: {
+ ExternalFloat32x4Array* p = ExternalFloat32x4Array::cast(elements());
+ for (int i = 0; i < p->length(); i++) {
+ float32x4_value_t value = p->get_scalar(i);
+ PrintF(out, " %d: (%f, %f, %f, %f)\n",
+ i, value.storage[0], value.storage[1],
+ value.storage[2], value.storage[3]);
+ }
+ break;
+ }
+ case EXTERNAL_INT32x4_ELEMENTS: {
+ ExternalInt32x4Array* p = ExternalInt32x4Array::cast(elements());
+ for (int i = 0; i < p->length(); i++) {
+ int32x4_value_t value = p->get_scalar(i);
+ PrintF(out, " %d: (%d, %d, %d, %d)\n",
+ i, value.storage[0], value.storage[1],
+ value.storage[2], value.storage[3]);
+ }
+ break;
+ }
case EXTERNAL_DOUBLE_ELEMENTS: {
ExternalDoubleArray* p = ExternalDoubleArray::cast(elements());
for (int i = 0; i < p->length(); i++) {
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698