Changeset 272685 in webkit
- Timestamp:
- Feb 10, 2021, 2:00:54 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r272663 r272685 1 2021-02-10 Mark Lam <mark.lam@apple.com> 2 3 We should not static_assert on an ENABLE() macro. 4 https://bugs.webkit.org/show_bug.cgi?id=221714 5 rdar://74197896 6 7 Reviewed by Yusuke Suzuki. 8 9 This is because the ENABLE() macro reduces to a macro expression 10 `(defined ENABLE_##WTF_FEATURE && ENABLE_##WTF_FEATURE)` which is not a C++ 11 expression that a static_assert can evaluate. 12 13 * llint/LLIntData.cpp: 14 * llint/LLIntData.h: 15 (JSC::LLInt::getCodePtr): 16 (JSC::LLInt::getWide16CodePtr): 17 (JSC::LLInt::getWide32CodePtr): 18 1 19 2021-02-10 Saam Barati <sbarati@apple.com> 2 20 -
trunk/Source/JavaScriptCore/llint/LLIntData.h
r272330 r272685 1 1 /* 2 * Copyright (C) 2011-202 0Apple Inc. All rights reserved.2 * Copyright (C) 2011-2021 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 156 156 } 157 157 158 #if ENABLE(ARM64E) && !ENABLE(COMPUTED_GOTO_OPCODES) 159 #error ENABLE(ARM64E) requires ENABLE(COMPUTED_GOTO_OPCODES) for getCodePtr (and its variants). 160 #endif 161 158 162 template<PtrTag tag> 159 163 ALWAYS_INLINE MacroAssemblerCodePtr<tag> getCodePtr(OpcodeID opcodeID) … … 163 167 return getCodePtrImpl<tag>(*opcode, opcode); 164 168 #else 165 static_assert(!ENABLE(ARM64E));166 169 return getCodePtrImpl<tag>(getOpcode(opcodeID), nullptr); 167 170 #endif … … 175 178 return getCodePtrImpl<tag>(*opcode, opcode); 176 179 #else 177 static_assert(!ENABLE(ARM64E));178 180 return getCodePtrImpl<tag>(getOpcodeWide16(opcodeID), nullptr); 179 181 #endif … … 187 189 return getCodePtrImpl<tag>(*opcode, opcode); 188 190 #else 189 static_assert(!ENABLE(ARM64E));190 191 return getCodePtrImpl<tag>(getOpcodeWide32(opcodeID), nullptr); 191 192 #endif … … 296 297 return getCodePtrImpl<tag>(*opcode, opcode); 297 298 #else 298 static_assert(!ENABLE(ARM64E));299 299 return getCodePtrImpl<tag>(getOpcode(opcodeID), nullptr); 300 300 #endif … … 308 308 return getCodePtrImpl<tag>(*opcode, opcode); 309 309 #else 310 static_assert(!ENABLE(ARM64E));311 310 return getCodePtrImpl<tag>(getOpcodeWide16(opcodeID), nullptr); 312 311 #endif … … 320 319 return getCodePtrImpl<tag>(*opcode, opcode); 321 320 #else 322 static_assert(!ENABLE(ARM64E));323 321 return getCodePtrImpl<tag>(getOpcodeWide32(opcodeID), nullptr); 324 322 #endif
Note:
See TracChangeset
for help on using the changeset viewer.