File tree 1 file changed +16
-2
lines changed
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 */
822
822
{
823
823
JERRY_ASSERT (string_p != NULL );
824
824
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 ))
826
832
{
827
833
return ;
828
834
}
835
+ #endif /* JERRY_NDEBUG */
829
836
830
837
JERRY_ASSERT (string_p -> refs_and_container >= ECMA_STRING_REF_ONE );
831
838
@@ -849,10 +856,17 @@ ecma_deref_ecma_string (ecma_string_t *string_p) /**< ecma-string */
849
856
{
850
857
JERRY_ASSERT (string_p != NULL );
851
858
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 ))
853
866
{
854
867
return ;
855
868
}
869
+ #endif /* JERRY_NDEBUG */
856
870
857
871
JERRY_ASSERT (string_p -> refs_and_container >= ECMA_STRING_REF_ONE );
858
872
You can’t perform that action at this time.
0 commit comments