| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index 0d40dcdb1f5450c245fc5c2133b58e6c4d99ac06..f3975bbbb0fd7647acecf65a02e8ccc8f223339e 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -1919,6 +1919,28 @@
|
|
|
| __ JumpIfSmi(rax, if_false);
|
| __ CmpObjectType(rax, JS_TYPED_ARRAY_TYPE, rbx);
|
| + PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
|
| + Split(equal, 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(rax, if_false);
|
| + __ CmpObjectType(rax, JS_REGEXP_TYPE, rbx);
|
| PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
|
| Split(equal, if_true, if_false, fall_through);
|
|
|
|
|