Index: src/builtins/mips64/builtins-mips64.cc |
diff --git a/src/builtins/mips64/builtins-mips64.cc b/src/builtins/mips64/builtins-mips64.cc |
index 66e95e587be020c8bf07640917078cb2f149428f..cb469c5b4e8e2e2c1e5b0d0d2c68314cacb25c84 100644 |
--- a/src/builtins/mips64/builtins-mips64.cc |
+++ b/src/builtins/mips64/builtins-mips64.cc |
@@ -2669,11 +2669,12 @@ static void CheckSpreadAndPushToStack(MacroAssembler* masm) { |
Register native_context = a5; |
+ Label runtime_call, push_args; |
__ ld(spread, MemOperand(sp, 0)); |
+ __ JumpIfSmi(spread, &runtime_call); |
__ ld(spread_map, FieldMemOperand(spread, HeapObject::kMapOffset)); |
__ ld(native_context, NativeContextMemOperand()); |
- Label runtime_call, push_args; |
// Check that the spread is an array. |
__ lbu(scratch, FieldMemOperand(spread_map, Map::kInstanceTypeOffset)); |
__ Branch(&runtime_call, ne, scratch, Operand(JS_ARRAY_TYPE)); |