/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testcallable.py | 58 patcher = patch('%s.X' % __name__, spec=True) 59 mock = patcher.start() 60 self.addCleanup(patcher.stop) 70 patcher = patch('%s.X' % __name__, spec_set=True) 71 mock = patcher.start() 72 self.addCleanup(patcher.stop) 82 patcher = patch('%s.X' % __name__, spec=X()) 83 mock = patcher.start() 84 self.addCleanup(patcher.stop) 91 patcher = patch('%s.X' % __name__, spec_set=X()) [all …]
|
D | testpatch.py | 745 patcher = patch('%s.something' % __name__) 747 mock = patcher.start() 752 patcher.stop() 757 patcher = patch(foo_name, 'bar', 3) 760 self.assertRaises(RuntimeError, patcher.stop) 765 patcher = patch.object(PTModule, 'something', 'foo') 767 replaced = patcher.start() 772 patcher.stop() 779 patcher = patch.dict(d, [('spam', 'eggs')], clear=True) 782 patcher.start() [all …]
|
/external/v8/src/debug/arm/ |
D | debug-arm.cc | 39 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in ClearDebugBreakSlot() local 40 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 47 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in PatchDebugBreakSlot() local 60 patcher.masm()->ldr(ip, MemOperand(v8::internal::pc, 0)); in PatchDebugBreakSlot() 61 patcher.masm()->b(&skip_constant); in PatchDebugBreakSlot() 62 patcher.Emit(code->entry()); in PatchDebugBreakSlot() 63 patcher.masm()->bind(&skip_constant); in PatchDebugBreakSlot() 64 patcher.masm()->blx(ip); in PatchDebugBreakSlot()
|
/external/v8/src/debug/arm64/ |
D | debug-arm64.cc | 40 PatchingAssembler patcher(isolate, reinterpret_cast<Instruction*>(pc), in ClearDebugBreakSlot() local 42 EmitDebugBreakSlot(&patcher); in ClearDebugBreakSlot() 49 PatchingAssembler patcher(isolate, reinterpret_cast<Instruction*>(pc), in PatchDebugBreakSlot() local 68 patcher.ldr_pcrel(ip0, (2 * kInstructionSize) >> kLoadLiteralScaleLog2); in PatchDebugBreakSlot() 69 patcher.b(&skip_constant); in PatchDebugBreakSlot() 70 patcher.dc64(reinterpret_cast<int64_t>(code->entry())); in PatchDebugBreakSlot() 71 patcher.bind(&skip_constant); in PatchDebugBreakSlot() 76 patcher.blr(ip0); in PatchDebugBreakSlot()
|
/external/v8/src/debug/x64/ |
D | debug-x64.cc | 37 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); in ClearDebugBreakSlot() local 38 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 46 CodePatcher patcher(isolate, pc, kSize); in PatchDebugBreakSlot() local 48 patcher.masm()->bind(&check_codesize); in PatchDebugBreakSlot() 49 patcher.masm()->movp(kScratchRegister, reinterpret_cast<void*>(code->entry()), in PatchDebugBreakSlot() 51 patcher.masm()->call(kScratchRegister); in PatchDebugBreakSlot() 53 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); in PatchDebugBreakSlot()
|
/external/v8/src/debug/ppc/ |
D | debug-ppc.cc | 39 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in ClearDebugBreakSlot() local 40 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 47 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in PatchDebugBreakSlot() local 62 Assembler::BlockTrampolinePoolScope block_trampoline_pool(patcher.masm()); in PatchDebugBreakSlot() 63 patcher.masm()->mov(v8::internal::r0, in PatchDebugBreakSlot() 65 patcher.masm()->mtctr(v8::internal::r0); in PatchDebugBreakSlot() 66 patcher.masm()->bctrl(); in PatchDebugBreakSlot()
|
/external/v8/src/ic/s390/ |
D | ic-s390.cc | 102 CodePatcher patcher(isolate, patch_address, patch_size); in PatchInlinedSmiCode() local 106 patcher.masm()->TestIfSmi(reg); in PatchInlinedSmiCode() 111 patcher.masm()->CmpP(reg, reg); in PatchInlinedSmiCode() 113 patcher.masm()->nop(); in PatchInlinedSmiCode() 122 patcher.masm()->brc(cc, Operand(branch_instr & 0xffff)); in PatchInlinedSmiCode() 128 patcher.masm()->brcl(cc, Operand(branch_instr & 0xffffffff)); in PatchInlinedSmiCode()
|
/external/v8/src/s390/ |
D | codegen-s390.cc | 177 std::unique_ptr<CodePatcher> patcher( in CodeAgingHelper() local 180 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); in CodeAgingHelper() 181 patcher->masm()->PushStandardFrame(r3); in CodeAgingHelper() 215 CodePatcher patcher(isolate, sequence, young_length); in PatchPlatformCodeAge() local 223 patcher.masm()->nop(); // marker to detect sequence (see IsOld) in PatchPlatformCodeAge() 224 patcher.masm()->CleanseP(r14); in PatchPlatformCodeAge() 225 patcher.masm()->Push(r14); in PatchPlatformCodeAge() 226 patcher.masm()->mov(r2, Operand(target)); in PatchPlatformCodeAge() 227 patcher.masm()->Call(r2); in PatchPlatformCodeAge() 232 patcher.masm()->nop(); // 2-byte nops(). in PatchPlatformCodeAge()
|
/external/v8/src/ppc/ |
D | codegen-ppc.cc | 179 std::unique_ptr<CodePatcher> patcher( in CodeAgingHelper() local 183 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); in CodeAgingHelper() 184 patcher->masm()->PushStandardFrame(r4); in CodeAgingHelper() 186 patcher->masm()->nop(); in CodeAgingHelper() 223 CodePatcher patcher(isolate, sequence, in PatchPlatformCodeAge() local 225 Assembler::BlockTrampolinePoolScope block_trampoline_pool(patcher.masm()); in PatchPlatformCodeAge() 229 patcher.masm()->nop(); // marker to detect sequence (see IsOld) in PatchPlatformCodeAge() 230 patcher.masm()->mov(r3, Operand(target)); in PatchPlatformCodeAge() 231 patcher.masm()->Jump(r3); in PatchPlatformCodeAge() 233 patcher.masm()->nop(); in PatchPlatformCodeAge()
|
/external/v8/src/debug/ia32/ |
D | debug-ia32.cc | 36 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); in ClearDebugBreakSlot() local 37 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 45 CodePatcher patcher(isolate, pc, kSize); in PatchDebugBreakSlot() local 49 patcher.masm()->bind(&check_codesize); in PatchDebugBreakSlot() 50 patcher.masm()->call(code->entry(), RelocInfo::NONE32); in PatchDebugBreakSlot() 52 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); in PatchDebugBreakSlot()
|
/external/autotest/client/common_lib/cros/ |
D | retry_unittest.py | 34 patcher = mock.patch('time.sleep', autospec=True) 35 self._sleep_mock = patcher.start() 36 self.addCleanup(patcher.stop) 38 patcher = mock.patch('time.time', autospec=True) 39 self._time_mock = patcher.start() 40 self.addCleanup(patcher.stop)
|
/external/v8/src/ic/arm/ |
D | ic-arm.cc | 86 CodePatcher patcher(isolate, patch_address, 2); in PatchInlinedSmiCode() local 92 patcher.masm()->tst(reg, Operand(kSmiTagMask)); in PatchInlinedSmiCode() 96 patcher.masm()->cmp(reg, reg); in PatchInlinedSmiCode() 100 patcher.EmitCondition(ne); in PatchInlinedSmiCode() 103 patcher.EmitCondition(eq); in PatchInlinedSmiCode()
|
/external/v8/src/ic/ppc/ |
D | ic-ppc.cc | 88 CodePatcher patcher(isolate, patch_address, 2); in PatchInlinedSmiCode() local 94 patcher.masm()->TestIfSmi(reg, r0); in PatchInlinedSmiCode() 98 patcher.masm()->cmp(reg, reg, cr0); in PatchInlinedSmiCode() 104 patcher.EmitCondition(ne); in PatchInlinedSmiCode() 107 patcher.EmitCondition(eq); in PatchInlinedSmiCode()
|
/external/v8/src/debug/x87/ |
D | debug-x87.cc | 36 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); in ClearDebugBreakSlot() local 37 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 45 CodePatcher patcher(isolate, pc, kSize); in PatchDebugBreakSlot() local 49 patcher.masm()->bind(&check_codesize); in PatchDebugBreakSlot() 50 patcher.masm()->call(code->entry(), RelocInfo::NONE32); in PatchDebugBreakSlot() 52 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); in PatchDebugBreakSlot()
|
/external/v8/src/arm64/ |
D | code-stubs-arm64.h | 133 PatchingAssembler patcher( in Patch() 136 Instruction* instr1 = patcher.InstructionAt(0); in Patch() 137 Instruction* instr2 = patcher.InstructionAt(kInstructionSize); in Patch() 151 patcher.adr(xzr, offset_to_incremental_noncompacting); in Patch() 152 patcher.adr(xzr, offset_to_incremental_compacting); in Patch() 156 patcher.b(offset_to_incremental_noncompacting >> kInstructionSizeLog2); in Patch() 157 patcher.adr(xzr, offset_to_incremental_compacting); in Patch() 161 patcher.adr(xzr, offset_to_incremental_noncompacting); in Patch() 162 patcher.b(offset_to_incremental_compacting >> kInstructionSizeLog2); in Patch()
|
D | codegen-arm64.cc | 49 PatchingAssembler patcher(isolate, young_sequence_.start(), in CodeAgingHelper() local 53 MacroAssembler::EmitFrameSetupForCodeAgePatching(&patcher); in CodeAgingHelper() 85 PatchingAssembler patcher(isolate, sequence, in PatchPlatformCodeAge() local 88 MacroAssembler::EmitFrameSetupForCodeAgePatching(&patcher); in PatchPlatformCodeAge() 91 MacroAssembler::EmitCodeAgeSequence(&patcher, stub); in PatchPlatformCodeAge()
|
D | instructions-arm64.cc | 246 PatchingAssembler patcher(isolate, this, in SetPCRelImmTarget() local 248 patcher.PatchAdrFar(target_offset); in SetPCRelImmTarget() 297 PatchingAssembler patcher(isolate, this, 2); in SetUnresolvedInternalReferenceImmTarget() local 298 patcher.brk(high16); in SetUnresolvedInternalReferenceImmTarget() 299 patcher.brk(low16); in SetUnresolvedInternalReferenceImmTarget()
|
/external/v8/src/x64/ |
D | codegen-x64.cc | 184 CodePatcher patcher(isolate, young_sequence_.start(), in CodeAgingHelper() local 186 patcher.masm()->pushq(rbp); in CodeAgingHelper() 187 patcher.masm()->movp(rbp, rsp); in CodeAgingHelper() 188 patcher.masm()->Push(rsi); in CodeAgingHelper() 189 patcher.masm()->Push(rdi); in CodeAgingHelper() 224 CodePatcher patcher(isolate, sequence, young_length); in PatchPlatformCodeAge() local 225 patcher.masm()->call(stub->instruction_start()); in PatchPlatformCodeAge() 226 patcher.masm()->Nop( in PatchPlatformCodeAge()
|
/external/v8/src/debug/mips/ |
D | debug-mips.cc | 39 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in ClearDebugBreakSlot() local 40 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 47 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in PatchDebugBreakSlot() local 56 patcher.masm()->li(v8::internal::t9, in PatchDebugBreakSlot() 58 patcher.masm()->Call(v8::internal::t9); in PatchDebugBreakSlot()
|
/external/v8/src/debug/mips64/ |
D | debug-mips64.cc | 38 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in ClearDebugBreakSlot() local 39 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 46 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotInstructions); in PatchDebugBreakSlot() local 57 patcher.masm()->li(v8::internal::t9, in PatchDebugBreakSlot() 60 patcher.masm()->Call(v8::internal::t9); in PatchDebugBreakSlot()
|
/external/v8/src/debug/s390/ |
D | debug-s390.cc | 44 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); in ClearDebugBreakSlot() local 45 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 51 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); in PatchDebugBreakSlot() local 69 patcher.masm()->mov(v8::internal::r14, in PatchDebugBreakSlot() 71 patcher.masm()->basr(v8::internal::r14, v8::internal::r14); in PatchDebugBreakSlot()
|
/external/v8/src/ic/mips/ |
D | ic-mips.cc | 86 CodePatcher patcher(isolate, patch_address, 2); in PatchInlinedSmiCode() local 91 patcher.masm()->andi(at, reg, kSmiTagMask); in PatchInlinedSmiCode() 95 patcher.masm()->andi(at, reg, 0); in PatchInlinedSmiCode() 134 patcher.ChangeBranchCondition(branch_instr, opcode); in PatchInlinedSmiCode()
|
/external/v8/src/ic/mips64/ |
D | ic-mips64.cc | 86 CodePatcher patcher(isolate, patch_address, 2); in PatchInlinedSmiCode() local 91 patcher.masm()->andi(at, reg, kSmiTagMask); in PatchInlinedSmiCode() 95 patcher.masm()->andi(at, reg, 0); in PatchInlinedSmiCode() 134 patcher.ChangeBranchCondition(branch_instr, opcode); in PatchInlinedSmiCode()
|
/external/v8/src/ic/arm64/ |
D | ic-arm64.cc | 72 PatchingAssembler patcher(isolate, to_patch, 1); in PatchInlinedSmiCode() local 93 patcher.tbnz(smi_reg, 0, branch_imm); in PatchInlinedSmiCode() 97 patcher.tbz(smi_reg, 0, branch_imm); in PatchInlinedSmiCode()
|
/external/autotest/skylab_migration/venv/skylab_venv/ |
D | test_sso_discovery.py | 17 patcher = mock.patch.object(subprocess, 'check_output') 18 self.mock_run_cmd = patcher.start() 19 self.addCleanup(patcher.stop)
|