Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 87729783603675cd1b3e80186fc6e04ecfb474d3..43e875b50e462320fddb09c887a6434359e86cca 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -2379,11 +2379,11 @@ CodeTracer* Isolate::GetCodeTracer() { |
} |
-Map* Isolate::get_initial_js_array_map(ElementsKind kind, |
- ObjectStrength strength) { |
+Map* Isolate::get_initial_js_array_map(ElementsKind kind, Strength strength) { |
Context* native_context = context()->native_context(); |
- Object* maybe_map_array = strength ? native_context->js_array_strong_maps() |
- : native_context->js_array_maps(); |
+ Object* maybe_map_array = is_strong(strength) |
+ ? native_context->js_array_strong_maps() |
+ : native_context->js_array_maps(); |
if (!maybe_map_array->IsUndefined()) { |
Object* maybe_transitioned_map = |
FixedArray::cast(maybe_map_array)->get(kind); |