Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index aa213fd99f6dd10412fb5845af42a10bf6ba9272..ca33cb00df56d3e474f051226767351176d34d8b 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -55,7 +55,7 @@ Handle<Oddball> Factory::NewOddball(Handle<Map> map, |
const char* to_string, |
Handle<Object> to_number, |
byte kind) { |
- Handle<Oddball> oddball = New<Oddball>(map, OLD_POINTER_SPACE); |
+ Handle<Oddball> oddball = New<Oddball>(map, OLD_SPACE); |
Oddball::Initialize(isolate(), oddball, to_string, to_number, kind); |
return oddball; |
} |
@@ -934,7 +934,7 @@ Handle<WeakCell> Factory::NewWeakCell(Handle<HeapObject> value) { |
Handle<AllocationSite> Factory::NewAllocationSite() { |
Handle<Map> map = allocation_site_map(); |
- Handle<AllocationSite> site = New<AllocationSite>(map, OLD_POINTER_SPACE); |
+ Handle<AllocationSite> site = New<AllocationSite>(map, OLD_SPACE); |
site->Initialize(); |
// Link the site |
@@ -1247,7 +1247,7 @@ Handle<JSFunction> Factory::NewFunction(Handle<Map> map, |
Handle<SharedFunctionInfo> info, |
Handle<Context> context, |
PretenureFlag pretenure) { |
- AllocationSpace space = pretenure == TENURED ? OLD_POINTER_SPACE : NEW_SPACE; |
+ AllocationSpace space = pretenure == TENURED ? OLD_SPACE : NEW_SPACE; |
Handle<JSFunction> result = New<JSFunction>(map, space); |
InitializeFunction(result, info, context); |
return result; |
@@ -1581,7 +1581,7 @@ Handle<GlobalObject> Factory::NewGlobalObject(Handle<JSFunction> constructor) { |
} |
// Allocate the global object and initialize it with the backing store. |
- Handle<GlobalObject> global = New<GlobalObject>(map, OLD_POINTER_SPACE); |
+ Handle<GlobalObject> global = New<GlobalObject>(map, OLD_SPACE); |
isolate()->heap()->InitializeJSObjectFromMap(*global, *dictionary, *map); |
// Create a new map for the global object. |
@@ -2064,8 +2064,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
Handle<String> name, |
MaybeHandle<Code> maybe_code) { |
Handle<Map> map = shared_function_info_map(); |
- Handle<SharedFunctionInfo> share = New<SharedFunctionInfo>(map, |
- OLD_POINTER_SPACE); |
+ Handle<SharedFunctionInfo> share = New<SharedFunctionInfo>(map, OLD_SPACE); |
// Set pointer fields. |
share->set_name(*name); |