| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 151f2de7374efb966218cb5251de0a43d469188c..d9d952c2051a7d20d3b14245745474a5d49f9643 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -437,7 +437,7 @@ HValue* CodeStubGraphBuilder<FastCloneShallowObjectStub>::BuildCodeStub() {
|
|
|
| HInstruction* object = AddInstruction(new(zone)
|
| HAllocate(context(), size_in_bytes, HType::JSObject(),
|
| - isolate()->heap()->ShouldGloballyPretenure()));
|
| + isolate()->heap()->GetAllocationMode(), JS_OBJECT_TYPE));
|
|
|
| for (int i = 0; i < size; i += kPointerSize) {
|
| HObjectAccess access = HObjectAccess::ForJSObjectOffset(i);
|
| @@ -463,7 +463,8 @@ HValue* CodeStubGraphBuilder<CreateAllocationSiteStub>::BuildCodeStub() {
|
|
|
| HValue* size = AddInstruction(new(zone) HConstant(AllocationSite::kSize));
|
| HInstruction* object = AddInstruction(new(zone)
|
| - HAllocate(context(), size, HType::JSObject(), true));
|
| + HAllocate(context(), size, HType::JSObject(), OLD_SPACE_ALLOCATION,
|
| + JS_OBJECT_TYPE));
|
|
|
| // Store the map
|
| Handle<Map> allocation_site_map(isolate()->heap()->allocation_site_map(),
|
|
|