Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 8b6fadab6f4696c46b30fc09337efcdbb57a1ea0..cd00487c7a397418bf1aa4b42f175a33247b559d 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -390,23 +390,21 @@ class Factory final { |
// JS arrays are pretenured when allocated by the parser. |
// Create a JSArray with no elements. |
- Handle<JSArray> NewJSArray( |
- ElementsKind elements_kind, |
- ObjectStrength strength = WEAK, |
- PretenureFlag pretenure = NOT_TENURED); |
+ Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
+ Strength strength = Strength::WEAK, |
+ PretenureFlag pretenure = NOT_TENURED); |
// Create a JSArray with a specified length and elements initialized |
// according to the specified mode. |
Handle<JSArray> NewJSArray( |
ElementsKind elements_kind, int length, int capacity, |
- ObjectStrength strength = WEAK, |
+ Strength strength = Strength::WEAK, |
ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, |
PretenureFlag pretenure = NOT_TENURED); |
Handle<JSArray> NewJSArray( |
- int capacity, |
- ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
- ObjectStrength strength = WEAK, |
+ int capacity, ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
+ Strength strength = Strength::WEAK, |
PretenureFlag pretenure = NOT_TENURED) { |
if (capacity != 0) { |
elements_kind = GetHoleyElementsKind(elements_kind); |
@@ -416,17 +414,15 @@ class Factory final { |
} |
// Create a JSArray with the given elements. |
- Handle<JSArray> NewJSArrayWithElements( |
- Handle<FixedArrayBase> elements, |
- ElementsKind elements_kind, |
- int length, |
- ObjectStrength strength = WEAK, |
- PretenureFlag pretenure = NOT_TENURED); |
+ Handle<JSArray> NewJSArrayWithElements(Handle<FixedArrayBase> elements, |
+ ElementsKind elements_kind, int length, |
+ Strength strength = Strength::WEAK, |
+ PretenureFlag pretenure = NOT_TENURED); |
Handle<JSArray> NewJSArrayWithElements( |
Handle<FixedArrayBase> elements, |
ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
- ObjectStrength strength = WEAK, |
+ Strength strength = Strength::WEAK, |
PretenureFlag pretenure = NOT_TENURED) { |
return NewJSArrayWithElements(elements, elements_kind, elements->length(), |
strength, pretenure); |