Ignore:
Timestamp:
Jun 2, 2021, 12:02:15 PM (4 years ago)
Author:
Chris Dumez
Message:

Drop Checked::safeGet()
https://bugs.webkit.org/show_bug.cgi?id=226537

Reviewed by Geoffrey Garen.

Drop Checked::safeGet() and replace with uses of Checked::operator T() or Checked::value().
safeGet() is a bit akward, having both a return value and an out-parameter.

Source/JavaScriptCore:

  • dfg/DFGAbstractInterpreterInlines.h:

(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):

  • runtime/JSArray.cpp:

(JSC::JSArray::appendMemcpy):
(JSC::JSArray::unshiftCountWithAnyIndexingType):

  • runtime/JSStringJoiner.cpp:

(JSC::JSStringJoiner::joinedLength const):

  • wasm/WasmFormat.cpp:

(JSC::Wasm::Segment::create):

  • wasm/WasmOperations.cpp:

(JSC::Wasm::JSC_DEFINE_JIT_OPERATION):

  • wasm/WasmTable.cpp:

(JSC::Wasm::Table::grow):

Source/WebKit:

  • UIProcess/mac/TextCheckerMac.mm:

(WebKit::TextChecker::updateSpellingUIWithGrammarString):

Source/WTF:

  • wtf/CheckedArithmetic.h:

(WTF::Checked::value const):
(WTF::operator+):
(WTF::operator-):
(WTF::operator*):
(WTF::operator/):

Tools:

  • TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:

(TestWebKitAPI::CheckedArithmeticTester::run):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r278366 r278369  
     12021-06-02  Chris Dumez  <[email protected]>
     2
     3        Drop Checked::safeGet()
     4        https://bugs.webkit.org/show_bug.cgi?id=226537
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Drop Checked::safeGet() and replace with uses of Checked::operator T() or Checked::value().
     9        safeGet() is a bit akward, having both a return value and an out-parameter.
     10
     11        * dfg/DFGAbstractInterpreterInlines.h:
     12        (JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
     13        * runtime/JSArray.cpp:
     14        (JSC::JSArray::appendMemcpy):
     15        (JSC::JSArray::unshiftCountWithAnyIndexingType):
     16        * runtime/JSStringJoiner.cpp:
     17        (JSC::JSStringJoiner::joinedLength const):
     18        * wasm/WasmFormat.cpp:
     19        (JSC::Wasm::Segment::create):
     20        * wasm/WasmOperations.cpp:
     21        (JSC::Wasm::JSC_DEFINE_JIT_OPERATION):
     22        * wasm/WasmTable.cpp:
     23        (JSC::Wasm::Table::grow):
     24
    1252021-06-02  Keith Miller  <[email protected]>
    226
Note: See TracChangeset for help on using the changeset viewer.