File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -822,10 +822,17 @@ ecma_ref_ecma_string (ecma_string_t *string_p) /**< string descriptor */
822822{
823823 JERRY_ASSERT (string_p != NULL );
824824
825- if (ECMA_IS_DIRECT_STRING (string_p ) || ECMA_STRING_IS_STATIC (string_p ))
825+ if (ECMA_IS_DIRECT_STRING (string_p ))
826+ {
827+ return ;
828+ }
829+
830+ #ifdef JERRY_NDEBUG
831+ if (ECMA_STRING_IS_STATIC (string_p ))
826832 {
827833 return ;
828834 }
835+ #endif /* JERRY_NDEBUG */
829836
830837 JERRY_ASSERT (string_p -> refs_and_container >= ECMA_STRING_REF_ONE );
831838
@@ -849,10 +856,17 @@ ecma_deref_ecma_string (ecma_string_t *string_p) /**< ecma-string */
849856{
850857 JERRY_ASSERT (string_p != NULL );
851858
852- if (ECMA_IS_DIRECT_STRING (string_p ) || ECMA_STRING_IS_STATIC (string_p ))
859+ if (ECMA_IS_DIRECT_STRING (string_p ))
860+ {
861+ return ;
862+ }
863+
864+ #ifdef JERRY_NDEBUG
865+ if (ECMA_STRING_IS_STATIC (string_p ))
853866 {
854867 return ;
855868 }
869+ #endif /* JERRY_NDEBUG */
856870
857871 JERRY_ASSERT (string_p -> refs_and_container >= ECMA_STRING_REF_ONE );
858872
You can’t perform that action at this time.
0 commit comments