mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
shift much of the internal use of ID* identifier pointers over to IDPtr objects
This commit is contained in:
parent
1c7c1b62f6
commit
693aa244f9
43 changed files with 301 additions and 345 deletions
|
@ -431,7 +431,7 @@ void ZAMCompiler::ComputeFrameLifetimes() {
|
|||
|
||||
case OP_STORE_GLOBAL_g: {
|
||||
// Use of the global goes to here.
|
||||
auto slot = frame_layout1[globalsI[inst->v1].id.get()];
|
||||
const auto& slot = frame_layout1[globalsI[inst->v1].id];
|
||||
ExtendLifetime(slot, EndOfLoop(inst, 1));
|
||||
break;
|
||||
}
|
||||
|
@ -671,7 +671,7 @@ void ZAMCompiler::ReMapInterpreterFrame() {
|
|||
remapped_intrp_frame_sizes[f] = next_interp_slot;
|
||||
}
|
||||
|
||||
void ZAMCompiler::ReMapVar(const ID* id, int slot, zeek_uint_t inst) {
|
||||
void ZAMCompiler::ReMapVar(const IDPtr& id, int slot, zeek_uint_t inst) {
|
||||
// A greedy algorithm for this is to simply find the first suitable
|
||||
// frame slot. We do that with one twist: we also look for a
|
||||
// compatible slot for which its current end-of-scope is exactly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue