Changeset 261441 in webkit


Ignore:
Timestamp:
May 9, 2020 3:40:13 PM (4 years ago)
Author:
Ross Kirsling
Message:

Fix build errors and warnings for non-unified JSCOnly
https://bugs.webkit.org/show_bug.cgi?id=211655

Reviewed by Darin Adler and Yusuke Suzuki.

  • bytecode/BytecodeDumper.cpp:

(JSC::isConstantRegisterIndex): Deleted.
Remove unused function.

  • llint/LLIntEntrypoint.cpp:
  • llint/LLIntThunks.cpp:
  • llint/LLIntThunks.h:
  • runtime/AggregateErrorConstructor.cpp:
  • runtime/AggregateErrorPrototype.cpp:
  • wasm/js/WebAssemblyFunction.cpp:

Fix includes.

  • tools/JSDollarVM.cpp:

Deal with "unused constant" warnings for needsDestruction.

  • wasm/WasmLLIntPlan.cpp:
  • wasm/WasmSignature.cpp:

Remove unused constants.

Location:
trunk/Source/JavaScriptCore
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r261437 r261441  
     12020-05-09  Ross Kirsling  <ross.kirsling@sony.com>
     2
     3        Fix build errors and warnings for non-unified JSCOnly
     4        https://bugs.webkit.org/show_bug.cgi?id=211655
     5
     6        Reviewed by Darin Adler and Yusuke Suzuki.
     7
     8        * bytecode/BytecodeDumper.cpp:
     9        (JSC::isConstantRegisterIndex): Deleted.
     10        Remove unused function.
     11
     12        * llint/LLIntEntrypoint.cpp:
     13        * llint/LLIntThunks.cpp:
     14        * llint/LLIntThunks.h:
     15        * runtime/AggregateErrorConstructor.cpp:
     16        * runtime/AggregateErrorPrototype.cpp:
     17        * wasm/js/WebAssemblyFunction.cpp:
     18        Fix includes.
     19
     20        * tools/JSDollarVM.cpp:
     21        Deal with "unused constant" warnings for needsDestruction.
     22
     23        * wasm/WasmLLIntPlan.cpp:
     24        * wasm/WasmSignature.cpp:
     25        Remove unused constants.
     26
    1272020-05-08  Darin Adler  <darin@apple.com>
    228
  • trunk/Source/JavaScriptCore/bytecode/BytecodeDumper.cpp

    r259676 r261441  
    5050namespace JSC {
    5151
    52 static ALWAYS_INLINE bool isConstantRegisterIndex(int index)
    53 {
    54     return index >= FirstConstantRegisterIndex;
    55 }
    56 
    5752void BytecodeDumperBase::printLocationAndOp(InstructionStream::Offset location, const char* op)
    5853{
  • trunk/Source/JavaScriptCore/llint/LLIntEntrypoint.cpp

    r244764 r261441  
    3636#include "MaxFrameExtentForSlowPathCall.h"
    3737#include "StackAlignment.h"
    38 #include "VM.h"
    3938
    4039namespace JSC { namespace LLInt {
  • trunk/Source/JavaScriptCore/llint/LLIntThunks.cpp

    r251886 r261441  
    3939#include "ProtoCallFrame.h"
    4040#include "StackAlignment.h"
    41 #include "VM.h"
    4241#include "WasmCallingConvention.h"
    4342#include "WasmContextInlines.h"
  • trunk/Source/JavaScriptCore/llint/LLIntThunks.h

    r261181 r261441  
    2727
    2828#include "MacroAssemblerCodeRef.h"
     29#include "VM.h"
    2930#include <wtf/Scope.h>
    3031
    3132namespace JSC {
    3233
    33 class VM;
    3434struct ProtoCallFrame;
    3535typedef int64_t EncodedJSValue;
  • trunk/Source/JavaScriptCore/runtime/AggregateErrorConstructor.cpp

    r260732 r261441  
    3232#include "GCAssertions.h"
    3333#include "JSCJSValueInlines.h"
    34 #include "JSCellInlines.h"
     34#include "JSGlobalObjectInlines.h"
    3535#include "RuntimeType.h"
     36#include "StructureInlines.h"
    3637#include "VMInlines.h"
    3738
  • trunk/Source/JavaScriptCore/runtime/AggregateErrorPrototype.cpp

    r260417 r261441  
    2929#include "AggregateError.h"
    3030#include "CallFrame.h"
    31 #include "Error.h"
    3231#include "IdentifierInlines.h"
    3332#include "JSCJSValueInlines.h"
    3433#include "JSCell.h"
    35 #include "JSCellInlines.h"
    3634#include "JSGlobalObjectInlines.h"
    37 #include "JSObject.h"
     35#include "JSObjectInlines.h"
    3836#include "ThrowScope.h"
    3937#include "VMInlines.h"
  • trunk/Source/JavaScriptCore/tools/JSDollarVM.cpp

    r261271 r261441  
    325325
    326326    typedef JSNonFinalObject Base;
    327     static constexpr bool needsDestruction = false;
    328327    template<typename CellType, SubspaceAccess>
    329328    static CompleteSubspace* subspaceFor(VM& vm)
     
    536535    static constexpr unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | OverridesGetPropertyNames;
    537536
     537IGNORE_WARNINGS_BEGIN("unused-const-variable")
     538    static constexpr bool needsDestruction = false;
     539IGNORE_WARNINGS_END
     540
    538541    template<typename CellType, SubspaceAccess>
    539542    static CompleteSubspace* subspaceFor(VM& vm)
     
    560563        static_cast<RuntimeArray*>(cell)->RuntimeArray::~RuntimeArray();
    561564    }
    562 
    563     static constexpr bool needsDestruction = false;
    564565
    565566    static bool getOwnPropertySlot(JSObject* object, JSGlobalObject* globalObject, PropertyName propertyName, PropertySlot& slot)
  • trunk/Source/JavaScriptCore/wasm/WasmLLIntPlan.cpp

    r256665 r261441  
    4141namespace JSC { namespace Wasm {
    4242
    43 namespace WasmLLIntPlanInternal {
    44 static const bool verbose = false;
    45 }
    46 
    4743LLIntPlan::LLIntPlan(Context* context, Vector<uint8_t>&& source, AsyncWork work, CompletionTask&& task)
    4844    : Base(context, WTFMove(source), work, WTFMove(task))
  • trunk/Source/JavaScriptCore/wasm/WasmSignature.cpp

    r250857 r261441  
    3838
    3939namespace JSC { namespace Wasm {
    40 
    41 namespace {
    42 namespace WasmSignatureInternal {
    43 static constexpr bool verbose = false;
    44 }
    45 }
    4640
    4741SignatureInformation* SignatureInformation::theOne { nullptr };
  • trunk/Source/JavaScriptCore/wasm/js/WebAssemblyFunction.cpp

    r259463 r261441  
    4242#include "LinkBuffer.h"
    4343#include "ProtoCallFrameInlines.h"
    44 #include "VM.h"
    4544#include "WasmCallee.h"
    4645#include "WasmCallingConvention.h"
Note: See TracChangeset for help on using the changeset viewer.