Index: src/builtins/builtins.h |
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h |
index e2844a18e849c2fc7342c9b6d633c896247e3013..45cdcc41d76ee6de4d74b1ee166e7ff48b47843a 100644 |
--- a/src/builtins/builtins.h |
+++ b/src/builtins/builtins.h |
@@ -51,7 +51,7 @@ class Isolate; |
// DBG: Builtin in platform-dependent assembly, used by the debugger. |
// Args: name |
-#define BUILTIN_LIST(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ |
+#define BUILTIN_LIST_BASE(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ |
ASM(Abort) \ |
/* Code aging */ \ |
CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, ASM) \ |
@@ -843,9 +843,9 @@ class Isolate; |
CPP(StringPrototypeToLocaleLowerCase) \ |
/* ES #sec-string.prototype.tolocaleuppercase */ \ |
CPP(StringPrototypeToLocaleUpperCase) \ |
- /* ES #sec-string.prototype.tolowercase */ \ |
+ /* (obsolete) Unibrow version */ \ |
CPP(StringPrototypeToLowerCase) \ |
- /* ES #sec-string.prototype.touppercase */ \ |
+ /* (obsolete) Unibrow version */ \ |
CPP(StringPrototypeToUpperCase) \ |
CPP(StringPrototypeTrim) \ |
CPP(StringPrototypeTrimLeft) \ |
@@ -934,6 +934,19 @@ class Isolate; |
/* #sec-async-iterator-value-unwrap-functions */ \ |
TFJ(AsyncIteratorValueUnwrap, 1, kValue) |
+#ifdef V8_I18N_SUPPORT |
+#define BUILTIN_LIST(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ |
+ BUILTIN_LIST_BASE(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ |
+ \ |
+ /* ES #sec-string.prototype.tolowercase */ \ |
+ CPP(StringPrototypeToLowerCaseI18N) \ |
+ /* ES #sec-string.prototype.touppercase */ \ |
+ CPP(StringPrototypeToUpperCaseI18N) |
+#else |
+#define BUILTIN_LIST(CPP, API, TFJ, TFS, ASM, ASH, DBG) \ |
+ BUILTIN_LIST_BASE(CPP, API, TFJ, TFS, ASM, ASH, DBG) |
+#endif // V8_I18N_SUPPORT |
+ |
#define BUILTIN_PROMISE_REJECTION_PREDICTION_LIST(V) \ |
V(AsyncFromSyncIteratorPrototypeNext) \ |
V(AsyncFromSyncIteratorPrototypeReturn) \ |