Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index fe513ef71efb06227d6d8b629191be8483436ff7..5a444b2736044c937ff9ddad4bf5e8cbf9fb43f8 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -35,7 +35,9 @@ |
#include "src/assembler.h" |
#include <math.h> |
+#include <string.h> |
#include <cmath> |
+ |
#include "src/api.h" |
#include "src/base/cpu.h" |
#include "src/base/functional.h" |
@@ -1551,6 +1553,14 @@ ExternalReference ExternalReference::ieee754_tanh_function(Isolate* isolate) { |
Redirect(isolate, FUNCTION_ADDR(base::ieee754::tanh), BUILTIN_FP_CALL)); |
} |
+void* libc_memchr(void* string, int character, size_t search_length) { |
+ return memchr(string, character, search_length); |
+} |
+ |
+ExternalReference ExternalReference::libc_memchr_function(Isolate* isolate) { |
+ return ExternalReference(Redirect(isolate, FUNCTION_ADDR(libc_memchr))); |
+} |
+ |
ExternalReference ExternalReference::page_flags(Page* page) { |
return ExternalReference(reinterpret_cast<Address>(page) + |
MemoryChunk::kFlagsOffset); |