Changeset 251263 in webkit for trunk/Source/JavaScriptCore/interpreter
- Timestamp:
- Oct 17, 2019, 3:18:57 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore/interpreter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CLoopStack.h
r236381 r251263 47 47 public: 48 48 // Allow 8k of excess registers before we start trying to reap the stack 49 static const ptrdiff_t maxExcessCapacity = 8 * 1024;49 static constexpr ptrdiff_t maxExcessCapacity = 8 * 1024; 50 50 51 51 CLoopStack(VM&); -
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r250803 r251263 85 85 alignas(CPURegister) CallFrame* callerFrame; 86 86 alignas(CPURegister) const Instruction* returnPC; 87 static const int sizeInRegisters = 2 * sizeof(CPURegister) / sizeof(Register);87 static constexpr int sizeInRegisters = 2 * sizeof(CPURegister) / sizeof(Register); 88 88 }; 89 89 static_assert(CallerFrameAndPC::sizeInRegisters == sizeof(CallerFrameAndPC) / sizeof(Register), "CallerFrameAndPC::sizeInRegisters is incorrect."); 90 90 91 91 struct CallFrameSlot { 92 static const int codeBlock = CallerFrameAndPC::sizeInRegisters;93 static const int callee = codeBlock + 1;94 static const int argumentCount = callee + 1;95 static const int thisArgument = argumentCount + 1;96 static const int firstArgument = thisArgument + 1;92 static constexpr int codeBlock = CallerFrameAndPC::sizeInRegisters; 93 static constexpr int callee = codeBlock + 1; 94 static constexpr int argumentCount = callee + 1; 95 static constexpr int thisArgument = argumentCount + 1; 96 static constexpr int firstArgument = thisArgument + 1; 97 97 }; 98 98 … … 101 101 class CallFrame : private Register { 102 102 public: 103 static const int headerSizeInRegisters = CallFrameSlot::argumentCount + 1;103 static constexpr int headerSizeInRegisters = CallFrameSlot::argumentCount + 1; 104 104 105 105 // This function should only be called in very specific circumstances -
trunk/Source/JavaScriptCore/interpreter/ShadowChicken.h
r250803 r251263 78 78 } 79 79 80 static const constexpr unsigned unlikelyValue = 0x7a11;81 82 static const constexpr intptr_t tailMarkerValue = static_cast<intptr_t>(unlikelyValue);80 static constexpr unsigned unlikelyValue = 0x7a11; 81 82 static constexpr intptr_t tailMarkerValue = static_cast<intptr_t>(unlikelyValue); 83 83 static JSObject* tailMarker() 84 84 {
Note:
See TracChangeset
for help on using the changeset viewer.