diff options
Diffstat (limited to 'deps/v8/src/objects/string.tq')
-rw-r--r-- | deps/v8/src/objects/string.tq | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/deps/v8/src/objects/string.tq b/deps/v8/src/objects/string.tq index b8d9714b360..7d3f250964d 100644 --- a/deps/v8/src/objects/string.tq +++ b/deps/v8/src/objects/string.tq @@ -10,15 +10,17 @@ extern class String extends Name { } @generateCppClass +@generateBodyDescriptor extern class ConsString extends String { first: String; second: String; } @abstract +@generateBodyDescriptor extern class ExternalString extends String { - resource: RawPtr; - resource_data: RawPtr; + resource: ExternalPointer; + resource_data: ExternalPointer; } extern class ExternalOneByteString extends ExternalString {} @@ -28,27 +30,30 @@ extern class ExternalTwoByteString extends ExternalString {} extern class InternalizedString extends String { } -// TODO(v8:8983): Add declaration for variable-sized region. @abstract @generateCppClass extern class SeqString extends String { } @generateCppClass +@generateBodyDescriptor extern class SeqOneByteString extends SeqString { chars[length]: char8; } @generateCppClass +@generateBodyDescriptor extern class SeqTwoByteString extends SeqString { chars[length]: char16; } @generateCppClass +@generateBodyDescriptor extern class SlicedString extends String { parent: String; offset: Smi; } @generateCppClass +@generateBodyDescriptor extern class ThinString extends String { actual: String; } |