From 3c7aae759b87d5ef61f11eadd09a2676a3e2ea46 Mon Sep 17 00:00:00 2001 From: "mvstanton@chromium.org" Date: Wed, 18 Dec 2013 22:43:56 +0000 Subject: [PATCH] Pretenure mode was erroneously consulted in FastCloneShallowObjectStub. FastCloneShallowObjectStub is only called from full code. When the code is optimized, then we'll inline the cloning and respect pretenure mode. R=hpayer@chromium.org Review URL: https://codereview.chromium.org/104403008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18368 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/code-stubs-hydrogen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc index 7922d6c..dc1f185 100644 --- a/src/code-stubs-hydrogen.cc +++ b/src/code-stubs-hydrogen.cc @@ -460,7 +460,7 @@ HValue* CodeStubGraphBuilder::BuildCodeStub() { HValue* size_in_bytes = Add(size); HInstruction* object = Add(size_in_bytes, HType::JSObject(), - isolate()->heap()->GetPretenureMode(), JS_OBJECT_TYPE); + NOT_TENURED, JS_OBJECT_TYPE); for (int i = 0; i < object_size; i += kPointerSize) { HObjectAccess access = HObjectAccess::ForJSObjectOffset(i); -- 2.7.4