Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 03b8c18fbdae004a0c550fe0c515aa979569c397..acda3246787ead549fafbdc51a017c6bad2679f3 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -469,7 +469,8 @@ HValue* CodeStubGraphBuilder<FastCloneShallowObjectStub>::BuildCodeStub() { |
ASSERT(FLAG_allocation_site_pretenuring || (size == object_size)); |
if (FLAG_allocation_site_pretenuring) { |
- BuildCreateAllocationMemento(object, object_size, allocation_site); |
+ BuildCreateAllocationMemento( |
+ object, Add<HConstant>(object_size), allocation_site); |
} |
environment()->Push(object); |