Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index aa6920375b1a015d5a15e9ebea7f62719da599cb..d12d370f4b402441b838907d2d771da546c8606d 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -224,9 +224,9 @@ RUNTIME_FUNCTION(MaybeObject*, ArrayConstructor_StubFailure) { |
AllocationSiteMode mode = AllocationSiteInfo::GetMode(to_kind); |
if (mode == TRACK_ALLOCATION_SITE) { |
maybe_array = isolate->heap()->AllocateEmptyJSArrayWithAllocationSite( |
- kind, type_info); |
+ to_kind, type_info); |
} else { |
- maybe_array = isolate->heap()->AllocateEmptyJSArray(kind); |
+ maybe_array = isolate->heap()->AllocateEmptyJSArray(to_kind); |
} |
if (!maybe_array->To(&array)) return maybe_array; |
} |