Attempt to fix GC mole failures.

TBR=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/614393002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24370 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2014-10-01 15:39:12 +00:00
parent c1e462cd64
commit b84614983f

View File

@ -2830,10 +2830,14 @@ void Heap::CreateInitialObjects() {
set_instanceof_cache_map(Smi::FromInt(0));
set_instanceof_cache_answer(Smi::FromInt(0));
#define SYMBOL_INIT(name) \
roots_[k##name##RootIndex] = *factory->NewPrivateOwnSymbol();
PRIVATE_SYMBOL_LIST(SYMBOL_INIT)
{
HandleScope scope(isolate());
#define SYMBOL_INIT(name) \
Handle<Symbol> name = factory->NewPrivateOwnSymbol(); \
roots_[k##name##RootIndex] = *name;
PRIVATE_SYMBOL_LIST(SYMBOL_INIT)
#undef SYMBOL_INIT
}
CreateFixedStubs();