Ignore:
Timestamp:
Sep 7, 2011, 10:55:50 AM (14 years ago)
Author:
[email protected]
Message:

Refactor JIT checks for ObjectType into helper functions.

Rubber stamped by Sam Weinig.

  • dfg/DFGJITCompiler.h:

(JSC::DFG::JITCompiler::branchIfNotObject):

  • dfg/DFGNonSpeculativeJIT.cpp:

(JSC::DFG::NonSpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • jit/JIT.h:
  • jit/JITCall32_64.cpp:

(JSC::JIT::emit_op_ret_object_or_this):

  • jit/JITInlineMethods.h:

(JSC::JIT::emitJumpIfNotObject):

  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_instanceof):
(JSC::JIT::emit_op_ret_object_or_this):
(JSC::JIT::emit_op_get_pnames):
(JSC::JIT::emit_op_create_this):

  • jit/JITOpcodes32_64.cpp:

(JSC::JIT::emit_op_instanceof):
(JSC::JIT::emit_op_get_pnames):
(JSC::JIT::emit_op_create_this):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.h

    r94629 r94688  
    186186        return Address(GPRInfo::callFrameRegister, virtualRegister * sizeof(Register) + OBJECT_OFFSETOF(EncodedValueDescriptor, asBits.payload));
    187187    }
    188    
     188
     189    Jump branchIfNotObject(GPRReg structureReg)
     190    {
     191        return branch8(NotEqual, Address(structureReg, Structure::typeInfoTypeOffset()), TrustedImm32(ObjectType));
     192    }
     193
    189194    // Notify the JIT of a call that does not require linking.
    190195    void notifyCall(Call call, unsigned exceptionInfo)
Note: See TracChangeset for help on using the changeset viewer.