Revision: 18368
Author:   [email protected]
Date:     Wed Dec 18 22:43:56 2013 UTC
Log: 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.

[email protected]

Review URL: https://codereview.chromium.org/104403008
http://code.google.com/p/v8/source/detail?r=18368

Modified:
 /branches/bleeding_edge/src/code-stubs-hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/code-stubs-hydrogen.cc Mon Dec 9 07:41:20 2013 UTC +++ /branches/bleeding_edge/src/code-stubs-hydrogen.cc Wed Dec 18 22:43:56 2013 UTC
@@ -460,7 +460,7 @@
   HValue* size_in_bytes = Add<HConstant>(size);

   HInstruction* object = Add<HAllocate>(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);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to