Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index 894943043c341215ea65d4e4cc221fbc018ebd42..3e2ed0447d6f4e51e8e12e2d4c0d5e39a2747f9c 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -1604,7 +1604,7 @@ compiler::Node* ReplaceGlobalCallableFastPath( |
Node* const res_length = a->LoadJSArrayLength(res); |
Node* const res_elems = a->LoadElements(res); |
- a->AssertInstanceType(res_elems, FIXED_ARRAY_TYPE); |
+ a->CSA_ASSERT(a->HasInstanceType(res_elems, FIXED_ARRAY_TYPE)); |
CodeStubAssembler::ParameterMode mode = CodeStubAssembler::INTPTR_PARAMETERS; |
Node* const num_capture_registers = a->LoadFixedArrayElement( |
@@ -1727,7 +1727,7 @@ compiler::Node* ReplaceGlobalCallableFastPath( |
// elem must be an Array. |
// Use the apply argument as backing for global RegExp properties. |
- a->AssertInstanceType(elem, JS_ARRAY_TYPE); |
+ a->CSA_ASSERT(a->HasInstanceType(elem, JS_ARRAY_TYPE)); |
// TODO(jgruber): Remove indirection through Call->ReflectApply. |
Callable call_callable = CodeFactory::Call(isolate); |