| Index: src/arm/full-codegen-arm.cc
 | 
| diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc
 | 
| index 9931e0a8066711a42b70493bb6a8cb5753f2215e..b816f1eeb5a6c21cd3d92009c4e58db1a15aec10 100644
 | 
| --- a/src/arm/full-codegen-arm.cc
 | 
| +++ b/src/arm/full-codegen-arm.cc
 | 
| @@ -3906,25 +3906,25 @@ void FullCodeGenerator::EmitValueOf(CallRuntime* expr) {
 | 
|  }
 | 
|  
 | 
|  
 | 
| -void FullCodeGenerator::EmitThrowIfNotADate(CallRuntime* expr) {
 | 
| +void FullCodeGenerator::EmitIsDate(CallRuntime* expr) {
 | 
|    ZoneList<Expression*>* args = expr->arguments();
 | 
|    DCHECK_EQ(1, args->length());
 | 
|  
 | 
| -  VisitForAccumulatorValue(args->at(0));  // Load the object.
 | 
| +  VisitForAccumulatorValue(args->at(0));
 | 
|  
 | 
| -  Label done, not_date_object;
 | 
| -  Register object = r0;
 | 
| -  Register result = r0;
 | 
| -  Register scratch0 = r9;
 | 
| +  Label materialize_true, materialize_false;
 | 
| +  Label* if_true = nullptr;
 | 
| +  Label* if_false = nullptr;
 | 
| +  Label* fall_through = nullptr;
 | 
| +  context()->PrepareTest(&materialize_true, &materialize_false, &if_true,
 | 
| +                         &if_false, &fall_through);
 | 
|  
 | 
| -  __ JumpIfSmi(object, ¬_date_object);
 | 
| -  __ CompareObjectType(object, scratch0, scratch0, JS_DATE_TYPE);
 | 
| -  __ b(eq, &done);
 | 
| -  __ bind(¬_date_object);
 | 
| -  __ CallRuntime(Runtime::kThrowNotDateError, 0);
 | 
| +  __ JumpIfSmi(r0, if_false);
 | 
| +  __ CompareObjectType(r0, r1, r1, JS_DATE_TYPE);
 | 
| +  PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
 | 
| +  Split(eq, if_true, if_false, fall_through);
 | 
|  
 | 
| -  __ bind(&done);
 | 
| -  context()->Plug(result);
 | 
| +  context()->Plug(if_true, if_false);
 | 
|  }
 | 
|  
 | 
|  
 | 
| 
 |