Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index cc2dcf5c788560cb0f82788cdabd7d76573a8119..c0569d3a8bfefaede33080b93aae8b06585b16b8 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1351,34 +1351,39 @@ void HLoadKeyedSpecializedArrayElement::PrintDataTo( |
StringStream* stream) { |
external_pointer()->PrintNameTo(stream); |
stream->Add("."); |
- switch (array_type()) { |
- case kExternalByteArray: |
+ switch (elements_kind()) { |
+ case JSObject::EXTERNAL_BYTE_ELEMENTS: |
stream->Add("byte"); |
break; |
- case kExternalUnsignedByteArray: |
+ case JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS: |
stream->Add("u_byte"); |
break; |
- case kExternalShortArray: |
+ case JSObject::EXTERNAL_SHORT_ELEMENTS: |
stream->Add("short"); |
break; |
- case kExternalUnsignedShortArray: |
+ case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
stream->Add("u_short"); |
break; |
- case kExternalIntArray: |
+ case JSObject::EXTERNAL_INT_ELEMENTS: |
stream->Add("int"); |
break; |
- case kExternalUnsignedIntArray: |
+ case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: |
stream->Add("u_int"); |
break; |
- case kExternalFloatArray: |
+ case JSObject::EXTERNAL_FLOAT_ELEMENTS: |
stream->Add("float"); |
break; |
- case kExternalDoubleArray: |
+ case JSObject::EXTERNAL_DOUBLE_ELEMENTS: |
stream->Add("double"); |
break; |
- case kExternalPixelArray: |
+ case JSObject::EXTERNAL_PIXEL_ELEMENTS: |
stream->Add("pixel"); |
break; |
+ case JSObject::FAST_ELEMENTS: |
+ case JSObject::FAST_DOUBLE_ELEMENTS: |
+ case JSObject::DICTIONARY_ELEMENTS: |
+ UNREACHABLE(); |
+ break; |
} |
stream->Add("["); |
key()->PrintNameTo(stream); |
@@ -1431,34 +1436,39 @@ void HStoreKeyedSpecializedArrayElement::PrintDataTo( |
StringStream* stream) { |
external_pointer()->PrintNameTo(stream); |
stream->Add("."); |
- switch (array_type()) { |
- case kExternalByteArray: |
+ switch (elements_kind()) { |
+ case JSObject::EXTERNAL_BYTE_ELEMENTS: |
stream->Add("byte"); |
break; |
- case kExternalUnsignedByteArray: |
+ case JSObject::EXTERNAL_UNSIGNED_BYTE_ELEMENTS: |
stream->Add("u_byte"); |
break; |
- case kExternalShortArray: |
+ case JSObject::EXTERNAL_SHORT_ELEMENTS: |
stream->Add("short"); |
break; |
- case kExternalUnsignedShortArray: |
+ case JSObject::EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
stream->Add("u_short"); |
break; |
- case kExternalIntArray: |
+ case JSObject::EXTERNAL_INT_ELEMENTS: |
stream->Add("int"); |
break; |
- case kExternalUnsignedIntArray: |
+ case JSObject::EXTERNAL_UNSIGNED_INT_ELEMENTS: |
stream->Add("u_int"); |
break; |
- case kExternalFloatArray: |
+ case JSObject::EXTERNAL_FLOAT_ELEMENTS: |
stream->Add("float"); |
break; |
- case kExternalDoubleArray: |
+ case JSObject::EXTERNAL_DOUBLE_ELEMENTS: |
stream->Add("double"); |
break; |
- case kExternalPixelArray: |
+ case JSObject::EXTERNAL_PIXEL_ELEMENTS: |
stream->Add("pixel"); |
break; |
+ case JSObject::FAST_ELEMENTS: |
+ case JSObject::FAST_DOUBLE_ELEMENTS: |
+ case JSObject::DICTIONARY_ELEMENTS: |
+ UNREACHABLE(); |
+ break; |
} |
stream->Add("["); |
key()->PrintNameTo(stream); |