⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 277312 in webkit


Ignore:
Timestamp:
May 10, 2021, 5:44:47 PM (5 years ago)
Author:
mark.lam@apple.com
Message:

Removed unused CallRecord::bytecodeIndex field.
https://bugs.webkit.org/show_bug.cgi?id=225627

Reviewed by Yusuke Suzuki.

  • jit/JIT.cpp:

(JSC::JIT::privateCompileExceptionHandlers):

  • jit/JIT.h:

(JSC::CallRecord::CallRecord):

  • jit/JITInlines.h:

(JSC::JIT::emitNakedNearCall):
(JSC::JIT::emitNakedNearTailCall):

Location:
trunk/Source/JavaScriptCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r277305 r277312  
     12021-05-10  Mark Lam  <mark.lam@apple.com>
     2
     3        Removed unused CallRecord::bytecodeIndex field.
     4        https://bugs.webkit.org/show_bug.cgi?id=225627
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * jit/JIT.cpp:
     9        (JSC::JIT::privateCompileExceptionHandlers):
     10        * jit/JIT.h:
     11        (JSC::CallRecord::CallRecord):
     12        * jit/JITInlines.h:
     13        (JSC::JIT::emitNakedNearCall):
     14        (JSC::JIT::emitNakedNearTailCall):
     15
    1162021-05-10  Mark Lam  <mark.lam@apple.com>
    217
  • trunk/Source/JavaScriptCore/jit/JIT.cpp

    r277305 r277312  
    10281028        move(TrustedImmPtr(&vm()), GPRInfo::argumentGPR0);
    10291029        prepareCallOperation(vm());
    1030         m_farCalls.append(FarCallRecord(call(OperationPtrTag), BytecodeIndex(), FunctionPtr<OperationPtrTag>(operationLookupExceptionHandlerFromCallerFrame)));
     1030        m_farCalls.append(FarCallRecord(call(OperationPtrTag), FunctionPtr<OperationPtrTag>(operationLookupExceptionHandlerFromCallerFrame)));
    10311031        jumpToExceptionHandler(vm());
    10321032    }
     
    10411041        move(TrustedImmPtr(&vm()), GPRInfo::argumentGPR0);
    10421042        prepareCallOperation(vm());
    1043         m_farCalls.append(FarCallRecord(call(OperationPtrTag), BytecodeIndex(), FunctionPtr<OperationPtrTag>(operationLookupExceptionHandler)));
     1043        m_farCalls.append(FarCallRecord(call(OperationPtrTag), FunctionPtr<OperationPtrTag>(operationLookupExceptionHandler)));
    10441044        jumpToExceptionHandler(vm());
    10451045    }
  • trunk/Source/JavaScriptCore/jit/JIT.h

    r276516 r277312  
    7979    struct CallRecord {
    8080        MacroAssembler::Call from;
    81         BytecodeIndex bytecodeIndex;
    8281        FunctionPtr<tag> callee;
    8382
     
    8685        }
    8786
    88         CallRecord(MacroAssembler::Call from, BytecodeIndex bytecodeIndex, FunctionPtr<tag> callee)
     87        CallRecord(MacroAssembler::Call from, FunctionPtr<tag> callee)
    8988            : from(from)
    90             , bytecodeIndex(bytecodeIndex)
    9189            , callee(callee)
    9290        {
     
    280278        {
    281279            Call functionCall = call(OperationPtrTag);
    282             m_farCalls.append(FarCallRecord(functionCall, m_bytecodeIndex, function.retagged<OperationPtrTag>()));
     280            m_farCalls.append(FarCallRecord(functionCall, function.retagged<OperationPtrTag>()));
    283281            return functionCall;
    284282        }
     
    288286        {
    289287            Call functionCall = callWithSlowPathReturnType(OperationPtrTag);
    290             m_farCalls.append(FarCallRecord(functionCall, m_bytecodeIndex, function.retagged<OperationPtrTag>()));
     288            m_farCalls.append(FarCallRecord(functionCall, function.retagged<OperationPtrTag>()));
    291289            return functionCall;
    292290        }
  • trunk/Source/JavaScriptCore/jit/JITInlines.h

    r273217 r277312  
    11/*
    2  * Copyright (C) 2008-2019 Apple Inc. All rights reserved.
     2 * Copyright (C) 2008-2021 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    9494    ASSERT(m_bytecodeIndex); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
    9595    Call nakedCall = nearCall();
    96     m_nearCalls.append(NearCallRecord(nakedCall, m_bytecodeIndex, FunctionPtr<JSInternalPtrTag>(target.retagged<JSInternalPtrTag>())));
     96    m_nearCalls.append(NearCallRecord(nakedCall, FunctionPtr<JSInternalPtrTag>(target.retagged<JSInternalPtrTag>())));
    9797    return nakedCall;
    9898}
     
    102102    ASSERT(m_bytecodeIndex); // This method should only be called during hot/cold path generation, so that m_bytecodeIndex is set.
    103103    Call nakedCall = nearTailCall();
    104     m_nearCalls.append(NearCallRecord(nakedCall, m_bytecodeIndex, FunctionPtr<JSInternalPtrTag>(target.retagged<JSInternalPtrTag>())));
     104    m_nearCalls.append(NearCallRecord(nakedCall, FunctionPtr<JSInternalPtrTag>(target.retagged<JSInternalPtrTag>())));
    105105    return nakedCall;
    106106}
Note: See TracChangeset for help on using the changeset viewer.