Title: [279393] trunk/Source/_javascript_Core
- Revision
- 279393
- Author
- [email protected]
- Date
- 2021-06-29 16:48:45 -0700 (Tue, 29 Jun 2021)
Log Message
Remove "function declared ‘static’ but never defined" build warnings since r278971.
https://bugs.webkit.org/show_bug.cgi?id=227436
This patch removes the build warnings below.
warning: ‘bool JSC::cannotBeIdentPartOrEscapeStart(LChar)’ declared ‘static’ but never defined [-Wunused-function]
Reviewed by Michael Catanzaro.
* runtime/LiteralParser.cpp: Add definitions for cannotBeIdentPartOrEscapeStart.
(JSC::cannotBeIdentPartOrEscapeStart):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (279392 => 279393)
--- trunk/Source/_javascript_Core/ChangeLog 2021-06-29 22:50:17 UTC (rev 279392)
+++ trunk/Source/_javascript_Core/ChangeLog 2021-06-29 23:48:45 UTC (rev 279393)
@@ -1,3 +1,16 @@
+2021-06-29 Joonghun Park <[email protected]>
+
+ Remove "function declared ‘static’ but never defined" build warnings since r278971.
+ https://bugs.webkit.org/show_bug.cgi?id=227436
+
+ This patch removes the build warnings below.
+ warning: ‘bool JSC::cannotBeIdentPartOrEscapeStart(LChar)’ declared ‘static’ but never defined [-Wunused-function]
+
+ Reviewed by Michael Catanzaro.
+
+ * runtime/LiteralParser.cpp: Add definitions for cannotBeIdentPartOrEscapeStart.
+ (JSC::cannotBeIdentPartOrEscapeStart):
+
2021-06-29 Yijia Huang <[email protected]>
Add a new pattern to instruction selector to use SBX and SBFIZ supported by ARM64
Modified: trunk/Source/_javascript_Core/runtime/LiteralParser.cpp (279392 => 279393)
--- trunk/Source/_javascript_Core/runtime/LiteralParser.cpp 2021-06-29 22:50:17 UTC (rev 279392)
+++ trunk/Source/_javascript_Core/runtime/LiteralParser.cpp 2021-06-29 23:48:45 UTC (rev 279393)
@@ -189,6 +189,16 @@
return result;
}
+static ALWAYS_INLINE bool cannotBeIdentPartOrEscapeStart(LChar)
+{
+ RELEASE_ASSERT_NOT_REACHED();
+}
+
+static ALWAYS_INLINE bool cannotBeIdentPartOrEscapeStart(UChar)
+{
+ RELEASE_ASSERT_NOT_REACHED();
+}
+
// 256 Latin-1 codes
static constexpr const TokenType tokenTypesOfLatin1Characters[256] = {
/* 0 - Null */ TokError,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes