MCPcopy Index your code
hub / github.com/nodejs/node / String

Class String

deps/v8/tools/grokdump.py:1361–1377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359
1360
1361class String(HeapObject):
1362 def LengthOffset(self):
1363 # First word after the map is the hash, the second is the length.
1364 return self.heap.TaggedPointerSize() * 2
1365
1366 def __init__(self, heap, map, address):
1367 HeapObject.__init__(self, heap, map, address)
1368 self.length = self.Uint32Field(self.LengthOffset())
1369
1370 def GetChars(self):
1371 return "?string?"
1372
1373 def Print(self, p):
1374 p.Print(str(self))
1375
1376 def __str__(self):
1377 return "\"%s\"" % self.GetChars()
1378
1379
1380class SeqString(String):

Callers 15

addon-verify.mjsFile · 0.85
ClientRequestFunction · 0.85
setFunction · 0.85
qsEscapeFunction · 0.85
parseFunction · 0.85
_addListenerFunction · 0.85
expectedExceptionFunction · 0.85
hasMatchingErrorFunction · 0.85
constructorMethod · 0.85
toStringFunction · 0.85
determineSpecificTypeFunction · 0.85
errors.jsFile · 0.85

Calls

no outgoing calls

Tested by 4

testFunction · 0.68
testFunction · 0.68
testFunction · 0.68
testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…