Don't treat DataViews as typed arrays, bug 785776. r=dvander
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 29 Aug 2012 15:21:54 -0600
changeset 103828 b497e2c28be21c8cb065d1d5ed7b0d66560381f9
parent 103827 2dfa1ef384f9ebb995baab573d9091a35a340889
child 103829 544649c4423e385d5128c5c1a7c28104be44acd6
push id23377
push useremorley@mozilla.com
push dateThu, 30 Aug 2012 10:30:05 +0000
treeherdermozilla-central@1b0b56afa33a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs785776
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Don't treat DataViews as typed arrays, bug 785776. r=dvander
js/src/jsinferinlines.h
--- a/js/src/jsinferinlines.h
+++ b/js/src/jsinferinlines.h
@@ -1467,17 +1467,16 @@ TypeObject::setFlagsFromKey(JSContext *c
       case JSProto_Uint8Array:
       case JSProto_Int16Array:
       case JSProto_Uint16Array:
       case JSProto_Int32Array:
       case JSProto_Uint32Array:
       case JSProto_Float32Array:
       case JSProto_Float64Array:
       case JSProto_Uint8ClampedArray:
-      case JSProto_DataView:
         flags = OBJECT_FLAG_NON_DENSE_ARRAY
               | OBJECT_FLAG_NON_PACKED_ARRAY
               | OBJECT_FLAG_NON_DOM;
         break;
 
       default:
         flags = OBJECT_FLAG_NON_DENSE_ARRAY
               | OBJECT_FLAG_NON_PACKED_ARRAY