From 01d8d19b1219d8d917050b2896002dddebb59431 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 1 Dec 2008 16:46:45 +0000 Subject: The advantage of interning strings is that you don't have to store their length everywhere. Purge the length part from the encoding of a string in the bytecode. Fix bytecode dump code to cope with this. svn path=/trunk/libcss/; revision=5864 --- docs/Bytecode | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/Bytecode') diff --git a/docs/Bytecode b/docs/Bytecode index 0b5ec74..552fc30 100644 --- a/docs/Bytecode +++ b/docs/Bytecode @@ -27,9 +27,8 @@ All numeric values are stored in a 32bit wide field. This field contains a fixed point value with 22 bits assigned to the integer part and 10 bits assigned to the fractional part. -Strings are stored as pairs, as per css_string. -Pointer's width is the native width of a pointer on the platform. -Length's width is the native width of a size_t on the platform. +Strings are stored as a pointer to an interned string. +The pointer's width is the native width of a pointer on the platform. CSS dimensions are stored as two 32bit values: . Length is a 32bit numeric value (as described above) and unit is as follows: -- cgit v1.2.3