object.cc (13268:9802f3e0a6ae) | object.cc (13295:e71ae162b863) |
---|---|
1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 131 unchanged lines hidden (view full) --- 140{ 141 // Promote all children to be top level objects. 142 for (auto child: children) { 143 addObject(&topLevelObjects, child); 144 child->_gem5_object->parent = nullptr; 145 } 146 children.clear(); 147 | 1/* 2 * Copyright 2018 Google, Inc. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: redistributions of source code must retain the above copyright 7 * notice, this list of conditions and the following disclaimer; 8 * redistributions in binary form must reproduce the above copyright --- 131 unchanged lines hidden (view full) --- 140{ 141 // Promote all children to be top level objects. 142 for (auto child: children) { 143 addObject(&topLevelObjects, child); 144 child->_gem5_object->parent = nullptr; 145 } 146 children.clear(); 147 |
148 for (auto event: events) 149 Event::getFromScEvent(event)->clearParent(); 150 |
|
148 if (parent) 149 popObject(&parent->_gem5_object->children, _name); 150 else 151 popObject(&topLevelObjects, _name); 152 popObject(&allObjects, _name); 153} 154 155const char * --- 169 unchanged lines hidden --- | 151 if (parent) 152 popObject(&parent->_gem5_object->children, _name); 153 else 154 popObject(&topLevelObjects, _name); 155 popObject(&allObjects, _name); 156} 157 158const char * --- 169 unchanged lines hidden --- |