Reviewers: mvstanton,

Message:
Committed patchset #1 manually as r18124 (presubmit successful).

Description:
Fix allocation memento bookeeping code for js arrays.

BUG=
[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=18124

Please review this at https://codereview.chromium.org/95053002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+2, -3 lines):
  M src/hydrogen.cc


Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 5b9e42f9979195104780f8c89e5cb5ca061b8932..634d2cacd055f30fc0134b477a3ce05c01ec40e4 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -2248,9 +2248,8 @@ HInnerAllocatedObject* HGraphBuilder::BuildJSArrayHeader(HValue* array,
               AllocationSite::kMementoCreateCountOffset);
       HValue* create_info = Add<HLoadNamedField>(allocation_site_payload,
                                                  access);
-      HInstruction* new_create_info = HAdd::New(zone(), context(),
-                                                create_info,
-                                                graph()->GetConstant1());
+      HInstruction* new_create_info =
+          AddUncasted<HAdd>(create_info, graph()->GetConstant1());
       new_create_info->ClearFlag(HValue::kCanOverflow);
HStoreNamedField* store = Add<HStoreNamedField>(allocation_site_payload, access, new_create_info);


--
--
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