зеркало из https://github.com/mozilla/pjs.git
Removed Fragment::vmprivate and Fragment::root (bug 526011, r=graydon).
--HG-- extra : convert_revision : ccae3c736aeddd81211073095132a7feb70c33e7
This commit is contained in:
Родитель
8aedf1377a
Коммит
f84d7d8621
|
@ -490,7 +490,6 @@ FragmentAssembler::FragmentAssembler(Lirasm &parent, const string &fragmentName)
|
||||||
nanojit::LC_FragProfile) ?
|
nanojit::LC_FragProfile) ?
|
||||||
sProfId++ : 0));
|
sProfId++ : 0));
|
||||||
mFragment->lirbuf = mParent.mLirbuf;
|
mFragment->lirbuf = mParent.mLirbuf;
|
||||||
mFragment->root = mFragment;
|
|
||||||
mParent.mFragments[mFragName].fragptr = mFragment;
|
mParent.mFragments[mFragName].fragptr = mFragment;
|
||||||
|
|
||||||
mLir = mBufWriter = new LirBufWriter(mParent.mLirbuf);
|
mLir = mBufWriter = new LirBufWriter(mParent.mLirbuf);
|
||||||
|
|
|
@ -53,13 +53,11 @@ namespace nanojit
|
||||||
Fragment::Fragment(const void* _ip
|
Fragment::Fragment(const void* _ip
|
||||||
verbose_only(, uint32_t profFragID))
|
verbose_only(, uint32_t profFragID))
|
||||||
:
|
:
|
||||||
root(NULL),
|
|
||||||
lirbuf(NULL),
|
lirbuf(NULL),
|
||||||
lastIns(NULL),
|
lastIns(NULL),
|
||||||
ip(_ip),
|
ip(_ip),
|
||||||
recordAttempts(0),
|
recordAttempts(0),
|
||||||
fragEntry(NULL),
|
fragEntry(NULL),
|
||||||
vmprivate(NULL),
|
|
||||||
verbose_only( loopLabel(NULL), )
|
verbose_only( loopLabel(NULL), )
|
||||||
verbose_only( profFragID(profFragID), )
|
verbose_only( profFragID(profFragID), )
|
||||||
verbose_only( profCount(0), )
|
verbose_only( profCount(0), )
|
||||||
|
|
|
@ -63,16 +63,13 @@ namespace nanojit
|
||||||
NIns* code() { return _code; }
|
NIns* code() { return _code; }
|
||||||
void setCode(NIns* codee) { _code = codee; }
|
void setCode(NIns* codee) { _code = codee; }
|
||||||
int32_t& hits() { return _hits; }
|
int32_t& hits() { return _hits; }
|
||||||
bool isRoot() { return root == this; }
|
|
||||||
|
|
||||||
Fragment* root;
|
|
||||||
LirBuffer* lirbuf;
|
LirBuffer* lirbuf;
|
||||||
LIns* lastIns;
|
LIns* lastIns;
|
||||||
|
|
||||||
const void* ip;
|
const void* ip;
|
||||||
uint32_t recordAttempts;
|
uint32_t recordAttempts;
|
||||||
NIns* fragEntry;
|
NIns* fragEntry;
|
||||||
void* vmprivate;
|
|
||||||
|
|
||||||
// for fragment entry and exit profiling. See detailed
|
// for fragment entry and exit profiling. See detailed
|
||||||
// how-to-use comment below.
|
// how-to-use comment below.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче