if (specialFunctions.hasOwnProperty(name)) {
f = specialFunctions[name];
}
- if (arguments.length == 3) {
+ if (!IS_UNDEFINED(len)) {
%FunctionSetLength(f, len);
}
return f;
// Check that the elements are in fast mode (not dictionary).
__ cmp(FieldOperand(ebx, HeapObject::kMapOffset),
- Immediate(Factory::fixed_array_map()));
+ Immediate(Factory::fixed_array_map()));
__ j(not_equal, &miss);
if (argc == 1) { // Otherwise fall through to call builtin.
__ mov(ecx, Operand(esp, argc * kPointerSize));
__ mov(Operand(edx, 0), ecx);
- // Check if wrote not a smi.
+ // Check if value is a smi.
__ test(ecx, Immediate(kSmiTagMask));
__ j(not_zero, &with_rset_update);