Changeset 243697 in webkit


Ignore:
Timestamp:
Apr 1, 2019 10:27:53 AM (5 years ago)
Author:
Michael Catanzaro
Message:

Stop trying to support building JSC with clang 3.8
https://bugs.webkit.org/show_bug.cgi?id=195947
<rdar://problem/49069219>

Reviewed by Darin Adler.

It seems WebKit hasn't built with clang 3.8 in a while, no devs are using this compiler, we
don't know how much effort it would be to make JSC work again, and it's making the code
Source/JavaScriptCore:

worse. Remove my hacks to support clang 3.8 from JSC.

  • bindings/ScriptValue.cpp:

(Inspector::jsToInspectorValue):

  • bytecode/GetterSetterAccessCase.cpp:

(JSC::GetterSetterAccessCase::create):
(JSC::GetterSetterAccessCase::clone const):

  • bytecode/InstanceOfAccessCase.cpp:

(JSC::InstanceOfAccessCase::clone const):

  • bytecode/IntrinsicGetterAccessCase.cpp:

(JSC::IntrinsicGetterAccessCase::clone const):

  • bytecode/ModuleNamespaceAccessCase.cpp:

(JSC::ModuleNamespaceAccessCase::clone const):

  • bytecode/ProxyableAccessCase.cpp:

(JSC::ProxyableAccessCase::clone const):

Source/WTF:

worse. Remove my hacks to support clang 3.8 from WTF.

  • wtf/MetaAllocator.cpp:

(WTF::MetaAllocator::allocate):

  • wtf/text/StringConcatenate.h:

(WTF::tryMakeStringFromAdapters):

Location:
trunk/Source
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r243688 r243697  
     12019-04-01  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Stop trying to support building JSC with clang 3.8
     4        https://bugs.webkit.org/show_bug.cgi?id=195947
     5        <rdar://problem/49069219>
     6
     7        Reviewed by Darin Adler.
     8
     9        It seems WebKit hasn't built with clang 3.8 in a while, no devs are using this compiler, we
     10        don't know how much effort it would be to make JSC work again, and it's making the code
     11        worse. Remove my hacks to support clang 3.8 from JSC.
     12
     13        * bindings/ScriptValue.cpp:
     14        (Inspector::jsToInspectorValue):
     15        * bytecode/GetterSetterAccessCase.cpp:
     16        (JSC::GetterSetterAccessCase::create):
     17        (JSC::GetterSetterAccessCase::clone const):
     18        * bytecode/InstanceOfAccessCase.cpp:
     19        (JSC::InstanceOfAccessCase::clone const):
     20        * bytecode/IntrinsicGetterAccessCase.cpp:
     21        (JSC::IntrinsicGetterAccessCase::clone const):
     22        * bytecode/ModuleNamespaceAccessCase.cpp:
     23        (JSC::ModuleNamespaceAccessCase::clone const):
     24        * bytecode/ProxyableAccessCase.cpp:
     25        (JSC::ProxyableAccessCase::clone const):
     26
    1272019-03-31  Yusuke Suzuki  <ysuzuki@apple.com>
    228
  • trunk/Source/JavaScriptCore/bindings/ScriptValue.cpp

    r243323 r243697  
    7575                inspectorArray->pushValue(WTFMove(elementValue));
    7676            }
    77             return RefPtr<JSON::Value> { WTFMove(inspectorArray) };
     77            return inspectorArray;
    7878        }
    7979        VM& vm = scriptState.vm();
     
    8888            inspectorObject->setValue(name.string(), WTFMove(inspectorValue));
    8989        }
    90         return RefPtr<JSON::Value> { WTFMove(inspectorObject) };
     90        return inspectorObject;
    9191    }
    9292
  • trunk/Source/JavaScriptCore/bytecode/GetterSetterAccessCase.cpp

    r243323 r243697  
    6767    result->m_domAttribute = domAttribute;
    6868    result->m_customAccessor = customGetter ? FunctionPtr<OperationPtrTag>(customGetter) : nullptr;
    69     return std::unique_ptr<AccessCase> { WTFMove(result) };
     69    return result;
    7070}
    7171
     
    7777    std::unique_ptr<GetterSetterAccessCase> result(new GetterSetterAccessCase(vm, owner, type, offset, structure, conditionSet, false, nullptr, customSlotBase, WTFMove(prototypeAccessChain)));
    7878    result->m_customAccessor = customSetter ? FunctionPtr<OperationPtrTag>(customSetter) : nullptr;
    79     return std::unique_ptr<AccessCase> { WTFMove(result) };
     79    return result;
    8080}
    8181
     
    9898    std::unique_ptr<GetterSetterAccessCase> result(new GetterSetterAccessCase(*this));
    9999    result->resetState();
    100     return std::unique_ptr<AccessCase> { WTFMove(result) };
     100    return result;
    101101}
    102102
  • trunk/Source/JavaScriptCore/bytecode/InstanceOfAccessCase.cpp

    r243323 r243697  
    4848    std::unique_ptr<InstanceOfAccessCase> result(new InstanceOfAccessCase(*this));
    4949    result->resetState();
    50     return std::unique_ptr<AccessCase> { WTFMove(result) };
     50    return result;
    5151}
    5252
  • trunk/Source/JavaScriptCore/bytecode/IntrinsicGetterAccessCase.cpp

    r243323 r243697  
    5252    std::unique_ptr<IntrinsicGetterAccessCase> result(new IntrinsicGetterAccessCase(*this));
    5353    result->resetState();
    54     return std::unique_ptr<AccessCase> { WTFMove(result) };
     54    return result;
    5555}
    5656
  • trunk/Source/JavaScriptCore/bytecode/ModuleNamespaceAccessCase.cpp

    r243323 r243697  
    5959    std::unique_ptr<ModuleNamespaceAccessCase> result(new ModuleNamespaceAccessCase(*this));
    6060    result->resetState();
    61     return std::unique_ptr<AccessCase> { WTFMove(result) };
     61    return result;
    6262}
    6363
  • trunk/Source/JavaScriptCore/bytecode/ProxyableAccessCase.cpp

    r243323 r243697  
    5353    std::unique_ptr<ProxyableAccessCase> result(new ProxyableAccessCase(*this));
    5454    result->resetState();
    55     return std::unique_ptr<AccessCase> { WTFMove(result) };
     55    return result;
    5656}
    5757
  • trunk/Source/WTF/ChangeLog

    r243688 r243697  
     12019-04-01  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Stop trying to support building JSC with clang 3.8
     4        https://bugs.webkit.org/show_bug.cgi?id=195947
     5        <rdar://problem/49069219>
     6
     7        Reviewed by Darin Adler.
     8
     9        It seems WebKit hasn't built with clang 3.8 in a while, no devs are using this compiler, we
     10        don't know how much effort it would be to make JSC work again, and it's making the code
     11        worse. Remove my hacks to support clang 3.8 from WTF.
     12
     13        * wtf/MetaAllocator.cpp:
     14        (WTF::MetaAllocator::allocate):
     15        * wtf/text/StringConcatenate.h:
     16        (WTF::tryMakeStringFromAdapters):
     17
    1182019-03-31  Yusuke Suzuki  <ysuzuki@apple.com>
    219
  • trunk/Source/WTF/wtf/MetaAllocator.cpp

    r243216 r243697  
    195195        m_tracker->notify(handle.ptr());
    196196
    197     return RefPtr<MetaAllocatorHandle> { WTFMove(handle) };
     197    return handle;
    198198}
    199199
  • trunk/Source/WTF/wtf/text/StringConcatenate.h

    r243215 r243697  
    279279        makeStringAccumulator(buffer, adapter, adapters...);
    280280
    281         return String { WTFMove(resultImpl) };
     281        return resultImpl;
    282282    }
    283283
     
    289289    makeStringAccumulator(buffer, adapter, adapters...);
    290290
    291     return String { WTFMove(resultImpl) };
     291    return resultImpl;
    292292}
    293293
Note: See TracChangeset for help on using the changeset viewer.