Optimize typed array access (#4806)

Use uint32 indexes instead of double indexes.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-11-02 11:07:56 +01:00
committed by GitHub
parent 960b99766c
commit 89e367bbfd
10 changed files with 203 additions and 190 deletions
+5 -2
View File
@@ -1726,8 +1726,11 @@ opfunc_lexical_scope_has_restricted_binding (vm_frame_ctx_t *frame_ctx_p, /**< f
NULL,
ECMA_PROPERTY_GET_NO_OPTIONS);
return ecma_make_boolean_value ((property != ECMA_PROPERTY_TYPE_NOT_FOUND
&& !ecma_is_property_configurable (property)));
JERRY_ASSERT (property == ECMA_PROPERTY_TYPE_NOT_FOUND
|| ECMA_PROPERTY_IS_FOUND (property));
return ecma_make_boolean_value (property != ECMA_PROPERTY_TYPE_NOT_FOUND
&& !ecma_is_property_configurable (property));
} /* opfunc_lexical_scope_has_restricted_binding */
#endif /* JERRY_ESNEXT */