Changeset 190927 in webkit


Ignore:
Timestamp:
Oct 12, 2015 11:30:02 PM (9 years ago)
Author:
Yusuke Suzuki
Message:

Unreviewed, register symbol structure to fix Debug build
https://bugs.webkit.org/show_bug.cgi?id=149622

Since InferredTypes for String or Symbol claim that they don't have any structure,
registerInferredType does not register the structure for Symbol.
We take the similar way to String to fix this issue; Registering Symbol structure
explicitly in DFGStructureRegisterationPhase. Because,

  1. InferredType::structure is only allowed for ObjectWithStructure / ObjectWithStructureOrOther. It looks clear to me that only ObjectWithStructure has structure.
  2. Symbol is similar primitive value to String. So handling its structure in similar way to String is nice.
  • dfg/DFGStructureRegistrationPhase.cpp:

(JSC::DFG::StructureRegistrationPhase::run):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r190923 r190927  
     12015-10-12  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        Unreviewed, register symbol structure to fix Debug build
     4        https://bugs.webkit.org/show_bug.cgi?id=149622
     5
     6        Since InferredTypes for String or Symbol claim that they don't have any structure,
     7        `registerInferredType` does not register the structure for Symbol.
     8        We take the similar way to String to fix this issue; Registering Symbol structure
     9        explicitly in DFGStructureRegisterationPhase. Because,
     10
     11        1. InferredType::structure is only allowed for ObjectWithStructure / ObjectWithStructureOrOther.
     12           It looks clear to me that only ObjectWithStructure has structure.
     13        2. Symbol is similar primitive value to String. So handling its structure in similar way to String is nice.
     14
     15        * dfg/DFGStructureRegistrationPhase.cpp:
     16        (JSC::DFG::StructureRegistrationPhase::run):
     17
    1182015-10-12  Yusuke Suzuki  <utatane.tea@gmail.com>
    219
  • trunk/Source/JavaScriptCore/dfg/DFGStructureRegistrationPhase.cpp

    r188545 r190927  
    6262        registerStructure(m_graph.m_vm.structureStructure.get());
    6363        registerStructure(m_graph.m_vm.stringStructure.get());
     64        registerStructure(m_graph.m_vm.symbolStructure.get());
    6465        registerStructure(m_graph.m_vm.getterSetterStructure.get());
    6566       
Note: See TracChangeset for help on using the changeset viewer.