Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (234467 => 234468)
--- trunk/Source/_javascript_Core/ChangeLog 2018-08-01 20:29:29 UTC (rev 234467)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-08-01 20:33:48 UTC (rev 234468)
@@ -1,3 +1,15 @@
+2018-08-01 Keith Miller <keith_mil...@apple.com>
+
+ JSArrayBuffer should have its own JSType
+ https://bugs.webkit.org/show_bug.cgi?id=188231
+
+ Reviewed by Saam Barati.
+
+ * runtime/JSArrayBuffer.cpp:
+ (JSC::JSArrayBuffer::createStructure):
+ * runtime/JSCast.h:
+ * runtime/JSType.h:
+
2018-07-31 Keith Miller <keith_mil...@apple.com>
Unreviewed 32-bit build fix...
Modified: trunk/Source/_javascript_Core/runtime/JSArrayBuffer.cpp (234467 => 234468)
--- trunk/Source/_javascript_Core/runtime/JSArrayBuffer.cpp 2018-08-01 20:29:29 UTC (rev 234467)
+++ trunk/Source/_javascript_Core/runtime/JSArrayBuffer.cpp 2018-08-01 20:33:48 UTC (rev 234468)
@@ -64,7 +64,7 @@
VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(
- vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info(),
+ vm, globalObject, prototype, TypeInfo(ArrayBufferType, StructureFlags), info(),
NonArray);
}
Modified: trunk/Source/_javascript_Core/runtime/JSCast.h (234467 => 234468)
--- trunk/Source/_javascript_Core/runtime/JSCast.h 2018-08-01 20:29:29 UTC (rev 234467)
+++ trunk/Source/_javascript_Core/runtime/JSCast.h 2018-08-01 20:33:48 UTC (rev 234468)
@@ -53,6 +53,7 @@
macro(JSFunction, JSType::JSFunctionType, JSType::JSFunctionType) \
macro(InternalFunction, JSType::InternalFunctionType, JSType::InternalFunctionType) \
macro(JSArray, JSType::ArrayType, JSType::DerivedArrayType) \
+ macro(JSArrayBuffer, JSType::ArrayBufferType, JSType::ArrayBufferType) \
macro(JSArrayBufferView, FirstTypedArrayType, LastTypedArrayType) \
macro(JSSet, JSType::JSSetType, JSType::JSSetType) \
macro(JSMap, JSType::JSMapType, JSType::JSMapType) \
Modified: trunk/Source/_javascript_Core/runtime/JSType.h (234467 => 234468)
--- trunk/Source/_javascript_Core/runtime/JSType.h 2018-08-01 20:29:29 UTC (rev 234467)
+++ trunk/Source/_javascript_Core/runtime/JSType.h 2018-08-01 20:33:48 UTC (rev 234468)
@@ -71,6 +71,8 @@
DerivedArrayType,
// End JSArray types.
+ ArrayBufferType,
+
// Start JSArrayBufferView types. Keep in sync with the order of FOR_EACH_TYPED_ARRAY_TYPE_EXCLUDING_DATA_VIEW.
Int8ArrayType,
Uint8ArrayType,