Commit 160f1dc0 authored by Peter Marshall's avatar Peter Marshall Committed by Commit Bot

[builtins] Delete unused ArrayIdToTypeAndSize and ArrayId.

These aren't used thanks to new implementation in CSA.

BUG=v8:5977

Change-Id: Ia4acfa0d1a925eba305a818913cbeff479b27792
Reviewed-on: https://chromium-review.googlesource.com/458477
Commit-Queue: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44151}
parent e73bde18
...@@ -78,25 +78,6 @@ RUNTIME_FUNCTION(Runtime_TypedArrayCopyElements) { ...@@ -78,25 +78,6 @@ RUNTIME_FUNCTION(Runtime_TypedArrayCopyElements) {
return CopyElements(isolate, holder, source, length); return CopyElements(isolate, holder, source, length);
} }
void Runtime::ArrayIdToTypeAndSize(int arrayId, ExternalArrayType* array_type,
ElementsKind* fixed_elements_kind,
size_t* element_size) {
switch (arrayId) {
#define ARRAY_ID_CASE(Type, type, TYPE, ctype, size) \
case ARRAY_ID_##TYPE: \
*array_type = kExternal##Type##Array; \
*fixed_elements_kind = TYPE##_ELEMENTS; \
*element_size = size; \
break;
TYPED_ARRAYS(ARRAY_ID_CASE)
#undef ARRAY_ID_CASE
default:
UNREACHABLE();
}
}
const char* Runtime::ElementsKindToType(ElementsKind fixed_elements_kind) { const char* Runtime::ElementsKindToType(ElementsKind fixed_elements_kind) {
switch (fixed_elements_kind) { switch (fixed_elements_kind) {
#define ELEMENTS_KIND_CASE(Type, type, TYPE, ctype, size) \ #define ELEMENTS_KIND_CASE(Type, type, TYPE, ctype, size) \
......
...@@ -778,25 +778,6 @@ class Runtime : public AllStatic { ...@@ -778,25 +778,6 @@ class Runtime : public AllStatic {
Isolate* isolate, Handle<Object> object, Handle<Object> key, Isolate* isolate, Handle<Object> object, Handle<Object> key,
bool* is_found_out = nullptr); bool* is_found_out = nullptr);
enum TypedArrayId {
// arrayIds below should be synchronized with typedarray.js natives.
ARRAY_ID_UINT8 = 1,
ARRAY_ID_INT8 = 2,
ARRAY_ID_UINT16 = 3,
ARRAY_ID_INT16 = 4,
ARRAY_ID_UINT32 = 5,
ARRAY_ID_INT32 = 6,
ARRAY_ID_FLOAT32 = 7,
ARRAY_ID_FLOAT64 = 8,
ARRAY_ID_UINT8_CLAMPED = 9,
ARRAY_ID_FIRST = ARRAY_ID_UINT8,
ARRAY_ID_LAST = ARRAY_ID_UINT8_CLAMPED
};
static void ArrayIdToTypeAndSize(int array_id, ExternalArrayType* type,
ElementsKind* fixed_elements_kind,
size_t* element_size);
static const char* ElementsKindToType(ElementsKind fixed_elements_kind); static const char* ElementsKindToType(ElementsKind fixed_elements_kind);
static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate, static MaybeHandle<JSArray> GetInternalProperties(Isolate* isolate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment