| Index: src/full-codegen/arm/full-codegen-arm.cc
|
| diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
|
| index 77b7522cb58575da98ad7a4f074a76af7d87d759..8fea8c2404622ed4622d019e9285d54cc0ea7c88 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -2009,6 +2009,28 @@
|
|
|
| __ JumpIfSmi(r0, if_false);
|
| __ CompareObjectType(r0, r1, r1, JS_TYPED_ARRAY_TYPE);
|
| + PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
|
| + Split(eq, if_true, if_false, fall_through);
|
| +
|
| + context()->Plug(if_true, if_false);
|
| +}
|
| +
|
| +
|
| +void FullCodeGenerator::EmitIsRegExp(CallRuntime* expr) {
|
| + ZoneList<Expression*>* args = expr->arguments();
|
| + DCHECK(args->length() == 1);
|
| +
|
| + VisitForAccumulatorValue(args->at(0));
|
| +
|
| + Label materialize_true, materialize_false;
|
| + Label* if_true = NULL;
|
| + Label* if_false = NULL;
|
| + Label* fall_through = NULL;
|
| + context()->PrepareTest(&materialize_true, &materialize_false,
|
| + &if_true, &if_false, &fall_through);
|
| +
|
| + __ JumpIfSmi(r0, if_false);
|
| + __ CompareObjectType(r0, r1, r1, JS_REGEXP_TYPE);
|
| PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
|
| Split(eq, if_true, if_false, fall_through);
|
|
|
|
|