Bug 743879 - Eliminate lazy atoms (r=Waldo)
This commit is contained in:
@@ -75,7 +75,6 @@ using namespace js;
|
||||
using namespace js::gc;
|
||||
|
||||
const size_t JSAtomState::commonAtomsOffset = offsetof(JSAtomState, emptyAtom);
|
||||
const size_t JSAtomState::lazyAtomsOffset = offsetof(JSAtomState, lazy);
|
||||
|
||||
/*
|
||||
* ATOM_HASH assumes that JSHashNumber is 32-bit even on 64-bit systems.
|
||||
@@ -151,9 +150,6 @@ JSAtomState::checkStaticInvariants()
|
||||
offsetof(JSAtomState, booleanAtoms) - commonAtomsOffset);
|
||||
JS_STATIC_ASSERT((1 + 2) * sizeof(JSAtom *) ==
|
||||
offsetof(JSAtomState, typeAtoms) - commonAtomsOffset);
|
||||
|
||||
JS_STATIC_ASSERT(JS_ARRAY_LENGTH(js_common_atom_names) * sizeof(JSAtom *) ==
|
||||
lazyAtomsOffset - commonAtomsOffset);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -236,7 +232,6 @@ js::InitCommonAtoms(JSContext *cx)
|
||||
*atoms = atom->asPropertyName();
|
||||
}
|
||||
|
||||
state->clearLazyAtoms();
|
||||
cx->runtime->emptyString = state->emptyAtom;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user