Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Unified Diff: src/assembler.cc

Issue 2859203002: [string] Move String.p.toLowerCase to CSA (Closed)
Patch Set: Address comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.cc
diff --git a/src/assembler.cc b/src/assembler.cc
index 72176a5b17928f99ede351de58e720b30707c981..7bd12d149b18c38bf0e8fd90fc92b71ef7e51d45 100644
--- a/src/assembler.cc
+++ b/src/assembler.cc
@@ -91,6 +91,10 @@
#endif // Target architecture.
#endif // V8_INTERPRETED_REGEXP
+#ifdef V8_INTL_SUPPORT
+#include "src/intl.h"
+#endif // V8_INTL_SUPPORT
+
namespace v8 {
namespace internal {
@@ -1572,6 +1576,20 @@ ExternalReference ExternalReference::try_internalize_string_function(
isolate, FUNCTION_ADDR(StringTable::LookupStringIfExists_NoAllocate)));
}
+#ifdef V8_INTL_SUPPORT
+ExternalReference ExternalReference::intl_convert_one_byte_to_lower(
+ Isolate* isolate) {
+ return ExternalReference(
+ Redirect(isolate, FUNCTION_ADDR(ConvertOneByteToLower)));
+}
+
+ExternalReference ExternalReference::intl_to_latin1_lower_table(
+ Isolate* isolate) {
+ uint8_t* ptr = const_cast<uint8_t*>(ToLatin1LowerTable());
+ return ExternalReference(reinterpret_cast<Address>(ptr));
+}
+#endif // V8_INTL_SUPPORT
+
// Explicit instantiations for all combinations of 1- and 2-byte strings.
template ExternalReference
ExternalReference::search_string_raw<const uint8_t, const uint8_t>(Isolate*);
« no previous file with comments | « src/assembler.h ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698