Chromium Code Reviews| Index: src/code-stubs-hydrogen.cc |
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
| index 20abec4fa51f27a9c7b95fdc8db0a71c999bc5f7..14179eab7d24a555a0b34a96595637a43a9a6e2f 100644 |
| --- a/src/code-stubs-hydrogen.cc |
| +++ b/src/code-stubs-hydrogen.cc |
| @@ -161,11 +161,14 @@ void 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_objects) { |
| + flags = static_cast<HAllocate::Flags>( |
| + flags | HAllocate::CAN_ALLOCATE_IN_OLD_POINTER_SPACE); |
| + } |
| HInstruction* object = |
| AddInstruction(new(zone) HAllocate(context(), |
|
Michael Starzinger
2013/03/07 19:19:38
Either keep the old line-breaks or also move the c
Hannes Payer (out of office)
2013/03/11 17:16:32
Done.
|
| - size_in_bytes, |
| - HType::JSObject(), |
| - HAllocate::CAN_ALLOCATE_IN_NEW_SPACE)); |
| + size_in_bytes, HType::JSObject(), flags)); |
| for (int i = 0; i < size; i += kPointerSize) { |
| HInstruction* value = |