| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 6e837ddb956c09c0fb56bd687185d7d75f176c25..fdfd0595786d588441b7c11a160d522068b64db6 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -383,7 +383,7 @@ HValue* CodeStubGraphBuilder<FastCloneShallowObjectStub>::BuildCodeStub() {
|
| HValue* size_in_bytes =
|
| AddInstruction(new(zone) HConstant(size, Representation::Integer32()));
|
| HAllocate::Flags flags = HAllocate::CAN_ALLOCATE_IN_NEW_SPACE;
|
| - if (FLAG_pretenure_literals) {
|
| + if (isolate()->heap()->ShouldGloballyPretenure()) {
|
| flags = static_cast<HAllocate::Flags>(
|
| flags | HAllocate::CAN_ALLOCATE_IN_OLD_POINTER_SPACE);
|
| }
|
|
|