|
| 1 | +2022-04-05 Yusuke Suzuki <ysuzuki@apple.com> |
| 2 | + |
| 3 | + [JSC] Strictly annotate pointers with TrustedImmPtr in CCallHelpers |
| 4 | + https://bugs.webkit.org/show_bug.cgi?id=238827 |
| 5 | + |
| 6 | + Reviewed by Mark Lam. |
| 7 | + |
| 8 | + This allows us to detect pointer use in DFG easy. This is important in unlinked DFG development. |
| 9 | + We also consistently use m_graph instead of m_jit.graph() in DFG::SpeculativeJIT. |
| 10 | + |
| 11 | + We also purge CodeBlock* embedding in DFG code completely. Now we load it from the cfr |
| 12 | + instead (compileLogShadowChickenTail and callOperationWithCallFrameRollbackOnException). |
| 13 | + |
| 14 | + * dfg/DFGArrayifySlowPathGenerator.h: |
| 15 | + * dfg/DFGCallArrayAllocatorSlowPathGenerator.h: |
| 16 | + * dfg/DFGCallCreateDirectArgumentsSlowPathGenerator.h: |
| 17 | + * dfg/DFGJITCompiler.cpp: |
| 18 | + (JSC::DFG::JITCompiler::compile): |
| 19 | + (JSC::DFG::JITCompiler::compileFunction): |
| 20 | + * dfg/DFGOSRExit.cpp: |
| 21 | + (JSC::DFG::OSRExit::OSRExit): |
| 22 | + (JSC::DFG::OSRExit::compileExit): |
| 23 | + * dfg/DFGOSRExitCompilerCommon.cpp: |
| 24 | + (JSC::DFG::osrWriteBarrier): |
| 25 | + * dfg/DFGSpeculativeJIT.cpp: |
| 26 | + (JSC::DFG::SpeculativeJIT::SpeculativeJIT): |
| 27 | + (JSC::DFG::SpeculativeJIT::emitGetCallee): |
| 28 | + (JSC::DFG::SpeculativeJIT::emitOSRExitFuzzCheck): |
| 29 | + (JSC::DFG::SpeculativeJIT::speculationCheck): |
| 30 | + (JSC::DFG::SpeculativeJIT::silentSavePlanForGPR): |
| 31 | + (JSC::DFG::SpeculativeJIT::checkArray): |
| 32 | + (JSC::DFG::SpeculativeJIT::useChildren): |
| 33 | + (JSC::DFG::SpeculativeJIT::compileGetById): |
| 34 | + (JSC::DFG::SpeculativeJIT::compileGetByIdFlush): |
| 35 | + (JSC::DFG::SpeculativeJIT::compileDeleteById): |
| 36 | + (JSC::DFG::SpeculativeJIT::compileDeleteByVal): |
| 37 | + (JSC::DFG::SpeculativeJIT::compileInById): |
| 38 | + (JSC::DFG::SpeculativeJIT::compileInByVal): |
| 39 | + (JSC::DFG::SpeculativeJIT::compileHasPrivate): |
| 40 | + (JSC::DFG::SpeculativeJIT::compileStringSlice): |
| 41 | + (JSC::DFG::SpeculativeJIT::compileLoopHint): |
| 42 | + (JSC::DFG::SpeculativeJIT::compileCurrentBlock): |
| 43 | + (JSC::DFG::SpeculativeJIT::checkArgumentTypes): |
| 44 | + (JSC::DFG::SpeculativeJIT::compile): |
| 45 | + (JSC::DFG::SpeculativeJIT::createOSREntries): |
| 46 | + (JSC::DFG::SpeculativeJIT::linkOSREntries): |
| 47 | + (JSC::DFG::SpeculativeJIT::compileCheckTraps): |
| 48 | + (JSC::DFG::SpeculativeJIT::compileContiguousPutByVal): |
| 49 | + (JSC::DFG::SpeculativeJIT::compileDoublePutByVal): |
| 50 | + (JSC::DFG::SpeculativeJIT::compilePutByVal): |
| 51 | + (JSC::DFG::SpeculativeJIT::compileGetByValOnString): |
| 52 | + (JSC::DFG::compileClampDoubleToByte): |
| 53 | + (JSC::DFG::SpeculativeJIT::jumpForTypedArrayOutOfBounds): |
| 54 | + (JSC::DFG::SpeculativeJIT::compilePutByValForIntTypedArray): |
| 55 | + * dfg/DFGSpeculativeJIT.h: |
| 56 | + (JSC::DFG::SpeculativeJIT::nextBlock): |
| 57 | + (JSC::DFG::SpeculativeJIT::masqueradesAsUndefinedWatchpointIsStillValid): |
| 58 | + (JSC::DFG::SpeculativeJIT::identifierUID): |
| 59 | + (JSC::DFG::SpeculativeJIT::callOperationWithCallFrameRollbackOnException): |
| 60 | + * dfg/DFGSpeculativeJIT32_64.cpp: |
| 61 | + (JSC::DFG::SpeculativeJIT::cachedGetById): |
| 62 | + (JSC::DFG::SpeculativeJIT::cachedGetByIdWithThis): |
| 63 | + (JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompareNullOrUndefined): |
| 64 | + (JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranchNullOrUndefined): |
| 65 | + (JSC::DFG::SpeculativeJIT::emitCall): |
| 66 | + (JSC::DFG::SpeculativeJIT::compileToBooleanObjectOrOther): |
| 67 | + (JSC::DFG::SpeculativeJIT::compileToBoolean): |
| 68 | + (JSC::DFG::SpeculativeJIT::emitObjectOrOtherBranch): |
| 69 | + (JSC::DFG::SpeculativeJIT::emitBranch): |
| 70 | + (JSC::DFG::SpeculativeJIT::compileGetByVal): |
| 71 | + (JSC::DFG::SpeculativeJIT::compile): |
| 72 | + (JSC::DFG::SpeculativeJIT::compileArithRandom): |
| 73 | + * dfg/DFGSpeculativeJIT64.cpp: |
| 74 | + (JSC::DFG::SpeculativeJIT::fillJSValue): |
| 75 | + (JSC::DFG::SpeculativeJIT::cachedGetById): |
| 76 | + (JSC::DFG::SpeculativeJIT::cachedGetByIdWithThis): |
| 77 | + (JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompareNullOrUndefined): |
| 78 | + (JSC::DFG::SpeculativeJIT::nonSpeculativePeepholeBranchNullOrUndefined): |
| 79 | + (JSC::DFG::SpeculativeJIT::emitCall): |
| 80 | + (JSC::DFG::SpeculativeJIT::fillSpeculateInt32Internal): |
| 81 | + (JSC::DFG::SpeculativeJIT::fillSpeculateInt32Strict): |
| 82 | + (JSC::DFG::SpeculativeJIT::fillSpeculateInt52): |
| 83 | + (JSC::DFG::SpeculativeJIT::fillSpeculateDouble): |
| 84 | + (JSC::DFG::SpeculativeJIT::fillSpeculateCell): |
| 85 | + (JSC::DFG::SpeculativeJIT::fillSpeculateBoolean): |
| 86 | + (JSC::DFG::SpeculativeJIT::fillSpeculateBigInt32): |
| 87 | + (JSC::DFG::SpeculativeJIT::compileCompareEqPtr): |
| 88 | + (JSC::DFG::SpeculativeJIT::compileToBooleanObjectOrOther): |
| 89 | + (JSC::DFG::SpeculativeJIT::compileToBoolean): |
| 90 | + (JSC::DFG::SpeculativeJIT::emitObjectOrOtherBranch): |
| 91 | + (JSC::DFG::SpeculativeJIT::emitUntypedBranch): |
| 92 | + (JSC::DFG::SpeculativeJIT::emitBranch): |
| 93 | + (JSC::DFG::SpeculativeJIT::compileGetByVal): |
| 94 | + (JSC::DFG::SpeculativeJIT::compileNewTypedArrayWithInt52Size): |
| 95 | + (JSC::DFG::SpeculativeJIT::compile): |
| 96 | + (JSC::DFG::SpeculativeJIT::compileArithRandom): |
| 97 | + (JSC::DFG::SpeculativeJIT::compileDateGet): |
| 98 | + * ftl/FTLLowerDFGToB3.cpp: |
| 99 | + (JSC::FTL::DFG::LowerDFGToB3::compileUnaryMathIC): |
| 100 | + (JSC::FTL::DFG::LowerDFGToB3::compileBinaryMathIC): |
| 101 | + (JSC::FTL::DFG::LowerDFGToB3::getPrivateName): |
| 102 | + (JSC::FTL::DFG::LowerDFGToB3::compilePrivateBrandAccess): |
| 103 | + (JSC::FTL::DFG::LowerDFGToB3::compilePutPrivateName): |
| 104 | + (JSC::FTL::DFG::LowerDFGToB3::cachedPutById): |
| 105 | + (JSC::FTL::DFG::LowerDFGToB3::compileGetByValImpl): |
| 106 | + (JSC::FTL::DFG::LowerDFGToB3::compilePutByVal): |
| 107 | + (JSC::FTL::DFG::LowerDFGToB3::compileDelBy): |
| 108 | + (JSC::FTL::DFG::LowerDFGToB3::compileCreateActivation): |
| 109 | + (JSC::FTL::DFG::LowerDFGToB3::compileNewFunction): |
| 110 | + (JSC::FTL::DFG::LowerDFGToB3::compileCreateDirectArguments): |
| 111 | + (JSC::FTL::DFG::LowerDFGToB3::compileObjectKeysOrObjectGetOwnPropertyNames): |
| 112 | + (JSC::FTL::DFG::LowerDFGToB3::compileNewStringObject): |
| 113 | + (JSC::FTL::DFG::LowerDFGToB3::emitNewTypedArrayWithSize): |
| 114 | + (JSC::FTL::DFG::LowerDFGToB3::compileMakeRope): |
| 115 | + (JSC::FTL::DFG::LowerDFGToB3::compileNotifyWrite): |
| 116 | + (JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq): |
| 117 | + * ftl/FTLOSRExitCompiler.cpp: |
| 118 | + (JSC::FTL::compileStub): |
| 119 | + * jit/CCallHelpers.cpp: |
| 120 | + * jit/CCallHelpers.h: |
| 121 | + (JSC::CCallHelpers::std::is_pointer<CURRENT_ARGUMENT_TYPE>::value): Deleted. |
| 122 | + * jit/JIT.cpp: |
| 123 | + (JSC::JIT::emitEnterOptimizationCheck): |
| 124 | + * jit/JITArithmetic.cpp: |
| 125 | + (JSC::JIT::emitMathICFast): |
| 126 | + (JSC::JIT::emitMathICSlow): |
| 127 | + * jit/JITOpcodes.cpp: |
| 128 | + (JSC::JIT::emitSlow_op_new_object): |
| 129 | + (JSC::JIT::emit_op_catch): |
| 130 | + (JSC::JIT::emit_op_switch_imm): |
| 131 | + (JSC::JIT::op_enter_handlerGenerator): |
| 132 | + (JSC::JIT::emit_op_debug): |
| 133 | + (JSC::JIT::emitSlow_op_loop_hint): |
| 134 | + (JSC::JIT::emit_op_new_regexp): |
| 135 | + (JSC::JIT::emitNewFuncCommon): |
| 136 | + (JSC::JIT::emitNewFuncExprCommon): |
| 137 | + (JSC::JIT::emit_op_profile_type): |
| 138 | + * jit/JITPropertyAccess.cpp: |
| 139 | + (JSC::JIT::emit_op_put_getter_by_id): |
| 140 | + (JSC::JIT::emit_op_put_setter_by_id): |
| 141 | + (JSC::JIT::emit_op_put_getter_setter_by_id): |
| 142 | + (JSC::JIT::emitWriteBarrier): |
| 143 | + * wasm/js/WasmToJS.cpp: |
| 144 | + (JSC::Wasm::wasmToJS): |
| 145 | + |
1 | 146 | 2022-04-05 Chris Dumez <cdumez@apple.com> |
2 | 147 |
|
3 | 148 | Avoid unnecessary String constructions in IdentifiersFactory.cpp |
|
0 commit comments