MCPcopy Create free account
hub / github.com/ReadyTalk/avian / deadWord

Function deadWord

src/codegen/compiler.cpp:104–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102unsigned sitesToString(Context* c, Value* v, char* buffer, unsigned size);
103
104void deadWord(Context* c, Value* v)
105{
106 Value* nextWord = v->nextWord;
107 assertT(c, nextWord != v);
108
109 for (SiteIterator it(c, v, true, false); it.hasMore();) {
110 Site* s = it.next();
111
112 if (s->registerSize(c) > TargetBytesPerWord) {
113 it.remove(c);
114 nextWord->addSite(c, s);
115 }
116 }
117}
118
119void deadBuddy(Context* c, Value* v, Read* r UNUSED)
120{

Callers 1

popReadFunction · 0.85

Calls 6

assertTFunction · 0.85
registerSizeMethod · 0.80
addSiteMethod · 0.80
nextMethod · 0.65
removeMethod · 0.65
hasMoreMethod · 0.45

Tested by

no test coverage detected