Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index d346e95af20411b48aadef4fedca2a977f531719..d841ea05cb76abe0e1d9040fcd76847271d64895 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -578,11 +578,15 @@ Handle<Code> StoreScriptContextFieldStub::GenerateCode() { |
template <> |
HValue* CodeStubGraphBuilder<GrowArrayElementsStub>::BuildCodeStub() { |
+ ElementsKind kind = casted_stub()->elements_kind(); |
+ if (IsFastDoubleElementsKind(kind)) { |
+ info()->MarkAsSavesCallerDoubles(); |
+ } |
+ |
HValue* object = GetParameter(GrowArrayElementsDescriptor::kObjectIndex); |
HValue* key = GetParameter(GrowArrayElementsDescriptor::kKeyIndex); |
HValue* current_capacity = |
GetParameter(GrowArrayElementsDescriptor::kCapacityIndex); |
- ElementsKind kind = casted_stub()->elements_kind(); |
HValue* elements = AddLoadElements(object); |
HValue* length = |