Branch: Tag:

2014-09-23

2014-09-23 14:12:23 by Per Hedbor <ph@opera.com>

Added F_SIZEOF_STRING and F_SIZEOF_LOCAL_STRING

We really should pass on the type to the code generator instead, I
think.

There should also be a "#pragma promise_correct_types" or something
that would guarantee that the types are correct, and crash and burn if
they are not.

The generated code would be significantly smaller and faster.

242:   MARK CONST0 : MARK_AND_CONST0   MARK CONST1 : MARK_AND_CONST1   LOCAL SIZEOF: SIZEOF_LOCAL ($1a) + LOCAL SIZEOF_STRING: SIZEOF_LOCAL_STRING ($1a)   MARK_AND_LOCAL SIZEOF: MARK SIZEOF_LOCAL ($1a)   2_LOCALS SIZEOF: LOCAL($1a) SIZEOF_LOCAL ($1b)   STRING INDEX: STRING_INDEX ($1a)