Index: test/mjsunit/osr-elements-kind.js |
diff --git a/test/mjsunit/osr-elements-kind.js b/test/mjsunit/osr-elements-kind.js |
index 389b6dac6f7f5cb90980f2895e20464befe392bd..bd15ef37e4ef65283c02702598c61ca43478018a 100644 |
--- a/test/mjsunit/osr-elements-kind.js |
+++ b/test/mjsunit/osr-elements-kind.js |
@@ -33,19 +33,19 @@ |
// Flags: --stress-runs=2 |
var elements_kind = { |
- fast_smi_only : 'fast smi only elements', |
- fast : 'fast elements', |
- fast_double : 'fast double elements', |
- dictionary : 'dictionary elements', |
- external_byte : 'external byte elements', |
- external_unsigned_byte : 'external unsigned byte elements', |
- external_short : 'external short elements', |
- external_unsigned_short : 'external unsigned short elements', |
- external_int : 'external int elements', |
- external_unsigned_int : 'external unsigned int elements', |
- external_float : 'external float elements', |
- external_double : 'external double elements', |
- external_pixel : 'external pixel elements' |
+ fast_smi_only : 'fast smi only elements', |
+ fast : 'fast elements', |
+ fast_double : 'fast double elements', |
+ dictionary : 'dictionary elements', |
+ fixed_int32 : 'fixed int8 elements', |
+ fixed_uint8 : 'fixed uint8 elements', |
+ fixed_int16 : 'fixed int16 elements', |
+ fixed_uint16 : 'fixed uint16 elements', |
+ fixed_int32 : 'fixed int32 elements', |
+ fixed_uint32 : 'fixed uint32 elements', |
+ fixed_float32 : 'fixed float32 elements', |
+ fixed_float64 : 'fixed float64 elements', |
+ fixed_uint8_clamped : 'fixed uint8_clamped elements' |
} |
function getKind(obj) { |
@@ -53,34 +53,33 @@ function getKind(obj) { |
if (%HasFastObjectElements(obj)) return elements_kind.fast; |
if (%HasFastDoubleElements(obj)) return elements_kind.fast_double; |
if (%HasDictionaryElements(obj)) return elements_kind.dictionary; |
- // Every external kind is also an external array. |
- assertTrue(%HasExternalArrayElements(obj)); |
- if (%HasExternalByteElements(obj)) { |
- return elements_kind.external_byte; |
+ |
+ if (%HasFixedInt8Elements(obj)) { |
+ return elements_kind.fixed_int8; |
} |
- if (%HasExternalUnsignedByteElements(obj)) { |
- return elements_kind.external_unsigned_byte; |
+ if (%HasFixedUint8Elements(obj)) { |
+ return elements_kind.fixed_uint8; |
} |
- if (%HasExternalShortElements(obj)) { |
- return elements_kind.external_short; |
+ if (%HasFixedInt16Elements(obj)) { |
+ return elements_kind.fixed_int16; |
} |
- if (%HasExternalUnsignedShortElements(obj)) { |
- return elements_kind.external_unsigned_short; |
+ if (%HasFixedUint16Elements(obj)) { |
+ return elements_kind.fixed_uint16; |
} |
- if (%HasExternalIntElements(obj)) { |
- return elements_kind.external_int; |
+ if (%HasFixedInt32Elements(obj)) { |
+ return elements_kind.fixed_int32; |
} |
- if (%HasExternalUnsignedIntElements(obj)) { |
- return elements_kind.external_unsigned_int; |
+ if (%HasFixedUint32Elements(obj)) { |
+ return elements_kind.fixed_uint32; |
} |
- if (%HasExternalFloatElements(obj)) { |
- return elements_kind.external_float; |
+ if (%HasFixedFloat32Elements(obj)) { |
+ return elements_kind.fixed_float32; |
} |
- if (%HasExternalDoubleElements(obj)) { |
- return elements_kind.external_double; |
+ if (%HasFixedFloat64Elements(obj)) { |
+ return elements_kind.fixed_float64; |
} |
- if (%HasExternalPixelElements(obj)) { |
- return elements_kind.external_pixel; |
+ if (%HasFixedUint8ClampedElements(obj)) { |
+ return elements_kind.fixed_uint8_clamped; |
} |
} |