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

Method poolAppendPromise

src/codegen/compiler.cpp:2377–2392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2375 }
2376
2377 virtual Promise* poolAppendPromise(Promise* value)
2378 {
2379 Promise* p = poolPromise(&c, c.constantCount);
2380
2381 ConstantPoolNode* constant = new (c.zone) ConstantPoolNode(value);
2382
2383 if (c.firstConstant) {
2384 c.lastConstant->next = constant;
2385 } else {
2386 c.firstConstant = constant;
2387 }
2388 c.lastConstant = constant;
2389 ++c.constantCount;
2390
2391 return p;
2392 }
2393
2394 virtual ir::Value* constant(int64_t value, ir::Type type)
2395 {

Callers 1

compileFunction · 0.80

Calls 1

poolPromiseFunction · 0.85

Tested by

no test coverage detected