Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 30edf579e62234fdd162af7a8ea99c6fb580f0ee..e1ece13043a04b099a05a8fbc62de514a7e6bb89 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -192,9 +192,8 @@ BUILTIN(EmptyFunction) { |
RUNTIME_FUNCTION(MaybeObject*, ArrayConstructor_StubFailure) { |
CONVERT_ARG_STUB_CALLER_ARGS(caller_args); |
- // ASSERT(args.length() == 3); |
- Handle<JSFunction> function = args.at<JSFunction>(1); |
- Handle<Object> type_info = args.at<Object>(2); |
+ ASSERT(args.length() == 2); |
+ Handle<Object> type_info = args.at<Object>(1); |
JSArray* array = NULL; |
bool holey = false; |
@@ -226,8 +225,7 @@ RUNTIME_FUNCTION(MaybeObject*, ArrayConstructor_StubFailure) { |
} |
} |
- ASSERT(function->has_initial_map()); |
- ElementsKind kind = function->initial_map()->elements_kind(); |
+ ElementsKind kind = GetInitialFastElementsKind(); |
if (holey) { |
kind = GetHoleyElementsKind(kind); |
} |