Fix allocation memento bookeeping code for js arrays.
authorhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 28 Nov 2013 13:45:23 +0000 (13:45 +0000)
committerhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 28 Nov 2013 13:45:23 +0000 (13:45 +0000)
BUG=
R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/95053002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18124 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/hydrogen.cc

index 5b9e42f..634d2ca 100644 (file)
@@ -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);