Title: [290789] branches/safari-613-branch/Source/_javascript_Core
- Revision
- 290789
- Author
- [email protected]
- Date
- 2022-03-03 12:21:03 -0800 (Thu, 03 Mar 2022)
Log Message
Cherry-pick r288363. rdar://problem/88995092
Fix build when using Visual Studio 2022
https://bugs.webkit.org/show_bug.cgi?id=235440
Reviewed by Antti Koivisto.
It doesn't like having a switch with a default but no cases.
This is cleaner with if statements anyways.
Also make members const because I can.
* jit/JITCode.cpp:
(JSC::JITCode::calleeSaveRegisters const):
* jit/JITCode.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-613-branch/Source/_javascript_Core/ChangeLog (290788 => 290789)
--- branches/safari-613-branch/Source/_javascript_Core/ChangeLog 2022-03-03 19:51:30 UTC (rev 290788)
+++ branches/safari-613-branch/Source/_javascript_Core/ChangeLog 2022-03-03 20:21:03 UTC (rev 290789)
@@ -1,3 +1,39 @@
+2022-03-03 Russell Epstein <[email protected]>
+
+ Cherry-pick r288363. rdar://problem/88995092
+
+ Fix build when using Visual Studio 2022
+ https://bugs.webkit.org/show_bug.cgi?id=235440
+
+ Reviewed by Antti Koivisto.
+
+ It doesn't like having a switch with a default but no cases.
+ This is cleaner with if statements anyways.
+ Also make members const because I can.
+
+ * jit/JITCode.cpp:
+ (JSC::JITCode::calleeSaveRegisters const):
+ * jit/JITCode.h:
+
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@288363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-01-21 Alex Christensen <[email protected]>
+
+ Fix build when using Visual Studio 2022
+ https://bugs.webkit.org/show_bug.cgi?id=235440
+
+ Reviewed by Antti Koivisto.
+
+ It doesn't like having a switch with a default but no cases.
+ This is cleaner with if statements anyways.
+ Also make members const because I can.
+
+ * jit/JITCode.cpp:
+ (JSC::JITCode::calleeSaveRegisters const):
+ * jit/JITCode.h:
+
2022-02-09 Alan Coon <[email protected]>
Cherry-pick r289450. rdar://problem/88483574
Modified: branches/safari-613-branch/Source/_javascript_Core/jit/JITCode.cpp (290788 => 290789)
--- branches/safari-613-branch/Source/_javascript_Core/jit/JITCode.cpp 2022-03-03 19:51:30 UTC (rev 290788)
+++ branches/safari-613-branch/Source/_javascript_Core/jit/JITCode.cpp 2022-03-03 20:21:03 UTC (rev 290789)
@@ -99,22 +99,19 @@
const RegisterAtOffsetList* JITCode::calleeSaveRegisters() const
{
- switch (jitType()) {
#if ENABLE(FTL_JIT)
- case JITType::FTLJIT:
+ if (m_jitType == JITType::FTLJIT)
return static_cast<const FTL::JITCode*>(this)->calleeSaveRegisters();
#endif
#if ENABLE(DFG_JIT)
- case JITType::DFGJIT:
+ if (m_jitType == JITType::DFGJIT)
return &RegisterAtOffsetList::dfgCalleeSaveRegisters();
#endif
- default:
#if !ENABLE(C_LOOP)
- return &RegisterAtOffsetList::llintBaselineCalleeSaveRegisters();
+ return &RegisterAtOffsetList::llintBaselineCalleeSaveRegisters();
#else
- return nullptr;
+ return nullptr;
#endif
- }
}
JITCodeWithCodeRef::JITCodeWithCodeRef(JITType jitType)
Modified: branches/safari-613-branch/Source/_javascript_Core/jit/JITCode.h (290788 => 290789)
--- branches/safari-613-branch/Source/_javascript_Core/jit/JITCode.h 2022-03-03 19:51:30 UTC (rev 290788)
+++ branches/safari-613-branch/Source/_javascript_Core/jit/JITCode.h 2022-03-03 20:21:03 UTC (rev 290789)
@@ -232,8 +232,8 @@
const RegisterAtOffsetList* calleeSaveRegisters() const;
private:
- JITType m_jitType;
- ShareAttribute m_shareAttribute;
+ const JITType m_jitType;
+ const ShareAttribute m_shareAttribute;
protected:
Intrinsic m_intrinsic { NoIntrinsic }; // Effective only in NativeExecutable.
};
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes