Ignore:
Timestamp:
Jan 10, 2012, 4:18:05 PM (13 years ago)
Author:
[email protected]
Message:

CodeBlock.h declares too many things
https://bugs.webkit.org/show_bug.cgi?id=76001

Rubber stamped by Gavin Barraclough.

Removed all non-CodeBlock type declarations from CodeBlock.h, and put them
into separate header files. Also removed all non-CodeBlock method implementations
from CodeBlock.cpp and put them into corresponding cpp files.

  • CMakeLists.txt:
  • GNUmakefile.list.am:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • Target.pri:
  • assembler/RepatchBuffer.h:
  • bytecode/CallLinkInfo.cpp: Added.

(JSC::CallLinkInfo::unlink):

  • bytecode/CallLinkInfo.h: Added.

(JSC::CallLinkInfo::callTypeFor):
(JSC::CallLinkInfo::CallLinkInfo):
(JSC::CallLinkInfo::~CallLinkInfo):
(JSC::CallLinkInfo::isLinked):
(JSC::CallLinkInfo::seenOnce):
(JSC::CallLinkInfo::setSeen):
(JSC::getCallLinkInfoReturnLocation):
(JSC::getCallLinkInfoBytecodeIndex):

  • bytecode/CallReturnOffsetToBytecodeOffset.h: Added.

(JSC::CallReturnOffsetToBytecodeOffset::CallReturnOffsetToBytecodeOffset):
(JSC::getCallReturnOffset):

  • bytecode/CodeBlock.cpp:
  • bytecode/CodeBlock.h:
  • bytecode/CodeType.h: Added.
  • bytecode/ExpressionRangeInfo.h: Added.
  • bytecode/GlobalResolveInfo.h: Added.

(JSC::GlobalResolveInfo::GlobalResolveInfo):

  • bytecode/HandlerInfo.h: Added.
  • bytecode/LineInfo.h: Added.
  • bytecode/MethodCallLinkInfo.cpp: Added.

(JSC::MethodCallLinkInfo::reset):

  • bytecode/MethodCallLinkInfo.h: Added.

(JSC::MethodCallLinkInfo::MethodCallLinkInfo):
(JSC::MethodCallLinkInfo::seenOnce):
(JSC::MethodCallLinkInfo::setSeen):
(JSC::getMethodCallLinkInfoReturnLocation):
(JSC::getMethodCallLinkInfoBytecodeIndex):

  • bytecode/StructureStubInfo.h:

(JSC::getStructureStubInfoReturnLocation):
(JSC::getStructureStubInfoBytecodeIndex):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp

    r104630 r104646  
    20572057   
    20582058#if ENABLE(JIT)
    2059 void CallLinkInfo::unlink(JSGlobalData& globalData, RepatchBuffer& repatchBuffer)
    2060 {
    2061     ASSERT(isLinked());
    2062    
    2063     if (isDFG) {
    2064 #if ENABLE(DFG_JIT)
    2065         repatchBuffer.relink(CodeLocationCall(callReturnLocation), callType == Construct ? operationLinkConstruct : operationLinkCall);
    2066 #else
    2067         ASSERT_NOT_REACHED();
    2068 #endif
    2069     } else
    2070         repatchBuffer.relink(CodeLocationNearCall(callReturnLocation), callType == Construct ? globalData.jitStubs->ctiVirtualConstructLink() : globalData.jitStubs->ctiVirtualCallLink());
    2071     hasSeenShouldRepatch = false;
    2072     callee.clear();
    2073 
    2074     // It will be on a list if the callee has a code block.
    2075     if (isOnList())
    2076         remove();
    2077 }
    2078 
    2079 void MethodCallLinkInfo::reset(RepatchBuffer& repatchBuffer, JITCode::JITType jitType)
    2080 {
    2081     cachedStructure.clearToMaxUnsigned();
    2082     cachedPrototype.clear();
    2083     cachedPrototypeStructure.clearToMaxUnsigned();
    2084     cachedFunction.clear();
    2085    
    2086     ASSERT_UNUSED(jitType, jitType == JITCode::BaselineJIT);
    2087    
    2088     repatchBuffer.relink(callReturnLocation, cti_op_get_by_id_method_check);
    2089 }
    2090 
    20912059void CodeBlock::unlinkCalls()
    20922060{
Note: See TracChangeset for help on using the changeset viewer.