Home
last modified time | relevance | path

Searched refs:patcher (Results 1 – 25 of 33) sorted by relevance

12

/external/v8/src/mips/
Ddebug-mips.cc34 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); in SetDebugBreakAtReturn() local
36 patcher.masm()->li(v8::internal::t9, Operand(reinterpret_cast<int32_t>( in SetDebugBreakAtReturn()
38 patcher.masm()->Call(v8::internal::t9); in SetDebugBreakAtReturn()
39 patcher.masm()->nop(); in SetDebugBreakAtReturn()
40 patcher.masm()->nop(); in SetDebugBreakAtReturn()
41 patcher.masm()->nop(); in SetDebugBreakAtReturn()
80 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); in SetDebugBreakAtSlot() local
81 patcher.masm()->li(v8::internal::t9, Operand(reinterpret_cast<int32_t>( in SetDebugBreakAtSlot()
83 patcher.masm()->Call(v8::internal::t9); in SetDebugBreakAtSlot()
Ddeoptimizer-mips.cc37 CodePatcher patcher(pointer, 1); in PatchCodeForDeoptimization() local
38 patcher.masm()->break_(0xCC); in PatchCodeForDeoptimization()
65 CodePatcher patcher(call_address, call_size_in_words); in PatchCodeForDeoptimization() local
66 patcher.masm()->Call(deopt_entry, RelocInfo::NONE32); in PatchCodeForDeoptimization()
Dcodegen-mips.cc1181 SmartPointer<CodePatcher> patcher( in CodeAgingHelper() local
1185 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); in CodeAgingHelper()
1186 patcher->masm()->Push(ra, fp, cp, a1); in CodeAgingHelper()
1187 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); in CodeAgingHelper()
1188 patcher->masm()->Addu( in CodeAgingHelper()
1231 CodePatcher patcher(sequence, young_length / Assembler::kInstrSize); in PatchPlatformCodeAge() local
1233 patcher.masm()->nop(Assembler::CODE_AGE_MARKER_NOP); in PatchPlatformCodeAge()
1236 patcher.masm()->li( in PatchPlatformCodeAge()
1240 patcher.masm()->nop(); // Prevent jalr to jal optimization. in PatchPlatformCodeAge()
1241 patcher.masm()->jalr(t9, a0); in PatchPlatformCodeAge()
[all …]
/external/v8/src/arm64/
Ddebug-arm64.cc43 PatchingAssembler patcher(reinterpret_cast<Instruction*>(rinfo()->pc()), 5); in SetDebugBreakAtReturn() local
49 patcher.ldr_pcrel(ip0, (3 * kInstructionSize) >> kLoadLiteralScaleLog2); in SetDebugBreakAtReturn()
56 patcher.blr(ip0); in SetDebugBreakAtReturn()
57 patcher.hlt(kHltBadCode); in SetDebugBreakAtReturn()
58 patcher.dc64(reinterpret_cast<int64_t>(entry)); in SetDebugBreakAtReturn()
102 PatchingAssembler patcher(reinterpret_cast<Instruction*>(rinfo()->pc()), 4); in SetDebugBreakAtSlot() local
108 patcher.ldr_pcrel(ip0, (2 * kInstructionSize) >> kLoadLiteralScaleLog2); in SetDebugBreakAtSlot()
115 patcher.blr(ip0); in SetDebugBreakAtSlot()
116 patcher.dc64(reinterpret_cast<int64_t>(entry)); in SetDebugBreakAtSlot()
Dcode-stubs-arm64.h133 PatchingAssembler patcher( in Patch()
135 Instruction* instr1 = patcher.InstructionAt(0); in Patch()
136 Instruction* instr2 = patcher.InstructionAt(kInstructionSize); in Patch()
148 patcher.adr(xzr, offset_to_incremental_noncompacting); in Patch()
149 patcher.adr(xzr, offset_to_incremental_compacting); in Patch()
153 patcher.b(offset_to_incremental_noncompacting >> kInstructionSizeLog2); in Patch()
154 patcher.adr(xzr, offset_to_incremental_compacting); in Patch()
158 patcher.adr(xzr, offset_to_incremental_noncompacting); in Patch()
159 patcher.b(offset_to_incremental_compacting >> kInstructionSizeLog2); in Patch()
Ddeoptimizer-arm64.cc47 PatchingAssembler patcher(call_address, patch_size() / kInstructionSize); in PatchCodeForDeoptimization() local
48 patcher.ldr_pcrel(ip0, (2 * kInstructionSize) >> kLoadLiteralScaleLog2); in PatchCodeForDeoptimization()
49 patcher.blr(ip0); in PatchCodeForDeoptimization()
50 patcher.dc64(reinterpret_cast<intptr_t>(deopt_entry)); in PatchCodeForDeoptimization()
Dinstructions-arm64.cc242 PatchingAssembler patcher(this, in SetPCRelImmTarget() local
244 patcher.PatchAdrFar(target_offset); in SetPCRelImmTarget()
Dcodegen-arm64.cc363 PatchingAssembler patcher(young_sequence_.start(), in CodeAgingHelper() local
367 MacroAssembler::EmitFrameSetupForCodeAgePatching(&patcher); in CodeAgingHelper()
407 PatchingAssembler patcher(sequence, in PatchPlatformCodeAge() local
410 MacroAssembler::EmitFrameSetupForCodeAgePatching(&patcher); in PatchPlatformCodeAge()
413 MacroAssembler::EmitCodeAgeSequence(&patcher, stub); in PatchPlatformCodeAge()
/external/v8/src/arm/
Ddebug-arm.cc31 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); in SetDebugBreakAtReturn() local
32 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); in SetDebugBreakAtReturn()
33 patcher.masm()->blx(v8::internal::ip); in SetDebugBreakAtReturn()
34 patcher.Emit( in SetDebugBreakAtReturn()
36 patcher.masm()->bkpt(0); in SetDebugBreakAtReturn()
72 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); in SetDebugBreakAtSlot() local
73 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); in SetDebugBreakAtSlot()
74 patcher.masm()->blx(v8::internal::ip); in SetDebugBreakAtSlot()
75 patcher.Emit( in SetDebugBreakAtSlot()
Ddeoptimizer-arm.cc38 CodePatcher patcher(pointer, 1); in PatchCodeForDeoptimization() local
39 patcher.masm()->bkpt(0); in PatchCodeForDeoptimization()
70 CodePatcher patcher(call_address, call_size_in_words); in PatchCodeForDeoptimization() local
71 patcher.masm()->Call(deopt_entry, RelocInfo::NONE32); in PatchCodeForDeoptimization()
Dcodegen-arm.cc877 SmartPointer<CodePatcher> patcher( in CodeAgingHelper() local
881 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); in CodeAgingHelper()
882 patcher->masm()->PushFixedFrame(r1); in CodeAgingHelper()
883 patcher->masm()->nop(ip.code()); in CodeAgingHelper()
884 patcher->masm()->add( in CodeAgingHelper()
927 CodePatcher patcher(sequence, young_length / Assembler::kInstrSize); in PatchPlatformCodeAge() local
928 patcher.masm()->add(r0, pc, Operand(-8)); in PatchPlatformCodeAge()
929 patcher.masm()->ldr(pc, MemOperand(pc, -4)); in PatchPlatformCodeAge()
930 patcher.masm()->emit_code_stub_address(stub); in PatchPlatformCodeAge()
Dassembler-arm.cc828 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos), in target_at_put() local
831 patcher.masm()->mov(dst, Operand(target24)); in target_at_put()
838 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos), in target_at_put() local
841 patcher.masm()->movw(dst, target16_0); in target_at_put()
843 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos), in target_at_put() local
846 patcher.masm()->movw(dst, target16_0); in target_at_put()
847 patcher.masm()->movt(dst, target16_1); in target_at_put()
855 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos), in target_at_put() local
858 patcher.masm()->mov(dst, Operand(target8_0)); in target_at_put()
859 patcher.masm()->orr(dst, dst, Operand(target8_1 << 8)); in target_at_put()
[all …]
/external/v8/src/mips64/
Ddebug-mips64.cc34 CodePatcher patcher(rinfo()->pc(), Assembler::kJSReturnSequenceInstructions); in SetDebugBreakAtReturn() local
36 patcher.masm()->li(v8::internal::t9, Operand(reinterpret_cast<int64_t>( in SetDebugBreakAtReturn()
39 patcher.masm()->Call(v8::internal::t9); in SetDebugBreakAtReturn()
41 patcher.masm()->nop(); in SetDebugBreakAtReturn()
81 CodePatcher patcher(rinfo()->pc(), Assembler::kDebugBreakSlotInstructions); in SetDebugBreakAtSlot() local
82 patcher.masm()->li(v8::internal::t9, in SetDebugBreakAtSlot()
86 patcher.masm()->Call(v8::internal::t9); in SetDebugBreakAtSlot()
Dcodegen-mips64.cc1069 SmartPointer<CodePatcher> patcher( in CodeAgingHelper() local
1073 PredictableCodeSizeScope scope(patcher->masm(), young_sequence_.length()); in CodeAgingHelper()
1074 patcher->masm()->Push(ra, fp, cp, a1); in CodeAgingHelper()
1075 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); in CodeAgingHelper()
1076 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); in CodeAgingHelper()
1077 patcher->masm()->nop(Assembler::CODE_AGE_SEQUENCE_NOP); in CodeAgingHelper()
1078 patcher->masm()->Daddu( in CodeAgingHelper()
1121 CodePatcher patcher(sequence, young_length / Assembler::kInstrSize); in PatchPlatformCodeAge() local
1123 patcher.masm()->nop(Assembler::CODE_AGE_MARKER_NOP); in PatchPlatformCodeAge()
1126 patcher.masm()->li( in PatchPlatformCodeAge()
[all …]
Ddeoptimizer-mips64.cc36 CodePatcher patcher(pointer, 1); in PatchCodeForDeoptimization() local
37 patcher.masm()->break_(0xCC); in PatchCodeForDeoptimization()
64 CodePatcher patcher(call_address, call_size_in_words); in PatchCodeForDeoptimization() local
65 patcher.masm()->Call(deopt_entry, RelocInfo::NONE32); in PatchCodeForDeoptimization()
/external/v8/src/x64/
Dcodegen-x64.cc637 CodePatcher patcher(young_sequence_.start(), young_sequence_.length()); in CodeAgingHelper() local
638 patcher.masm()->pushq(rbp); in CodeAgingHelper()
639 patcher.masm()->movp(rbp, rsp); in CodeAgingHelper()
640 patcher.masm()->Push(rsi); in CodeAgingHelper()
641 patcher.masm()->Push(rdi); in CodeAgingHelper()
684 CodePatcher patcher(sequence, young_length); in PatchPlatformCodeAge() local
685 patcher.masm()->call(stub->instruction_start()); in PatchPlatformCodeAge()
686 patcher.masm()->Nop( in PatchPlatformCodeAge()
Ddeoptimizer-x64.cc39 CodePatcher patcher(pointer, 1); in PatchCodeForDeoptimization() local
40 patcher.masm()->int3(); in PatchCodeForDeoptimization()
72 CodePatcher patcher(call_address, Assembler::kCallSequenceLength); in PatchCodeForDeoptimization() local
73 patcher.masm()->Call(GetDeoptimizationEntry(isolate, i, LAZY), in PatchCodeForDeoptimization()
/external/v8/src/x87/
Dcodegen-x87.cc563 CodePatcher patcher(young_sequence_.start(), young_sequence_.length()); in CodeAgingHelper() local
564 patcher.masm()->push(ebp); in CodeAgingHelper()
565 patcher.masm()->mov(ebp, esp); in CodeAgingHelper()
566 patcher.masm()->push(esi); in CodeAgingHelper()
567 patcher.masm()->push(edi); in CodeAgingHelper()
610 CodePatcher patcher(sequence, young_length); in PatchPlatformCodeAge() local
611 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); in PatchPlatformCodeAge()
Ddeoptimizer-x87.cc104 CodePatcher patcher(pointer, 1); in PatchCodeForDeoptimization() local
105 patcher.masm()->int3(); in PatchCodeForDeoptimization()
140 CodePatcher patcher(call_address, patch_size()); in PatchCodeForDeoptimization() local
142 patcher.masm()->call(deopt_entry, RelocInfo::NONE32); in PatchCodeForDeoptimization()
Dassembler-x87.cc124 CodePatcher patcher(pc_, code_size); in PatchCodeWithCall() local
129 patcher.masm()->bind(&check_codesize); in PatchCodeWithCall()
133 patcher.masm()->call(target, RelocInfo::NONE32); in PatchCodeWithCall()
137 patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); in PatchCodeWithCall()
142 patcher.masm()->int3(); in PatchCodeWithCall()
/external/v8/src/ia32/
Ddeoptimizer-ia32.cc104 CodePatcher patcher(pointer, 1); in PatchCodeForDeoptimization() local
105 patcher.masm()->int3(); in PatchCodeForDeoptimization()
140 CodePatcher patcher(call_address, patch_size()); in PatchCodeForDeoptimization() local
142 patcher.masm()->call(deopt_entry, RelocInfo::NONE32); in PatchCodeForDeoptimization()
Dcodegen-ia32.cc978 CodePatcher patcher(young_sequence_.start(), young_sequence_.length()); in CodeAgingHelper() local
979 patcher.masm()->push(ebp); in CodeAgingHelper()
980 patcher.masm()->mov(ebp, esp); in CodeAgingHelper()
981 patcher.masm()->push(esi); in CodeAgingHelper()
982 patcher.masm()->push(edi); in CodeAgingHelper()
1025 CodePatcher patcher(sequence, young_length); in PatchPlatformCodeAge() local
1026 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); in PatchPlatformCodeAge()
/external/v8/src/ic/mips64/
Dic-mips64.cc1009 CodePatcher patcher(patch_address, 2); in PatchInlinedSmiCode() local
1014 patcher.masm()->andi(at, reg, kSmiTagMask); in PatchInlinedSmiCode()
1018 patcher.masm()->andi(at, reg, 0); in PatchInlinedSmiCode()
1022 patcher.ChangeBranchCondition(ne); in PatchInlinedSmiCode()
1025 patcher.ChangeBranchCondition(eq); in PatchInlinedSmiCode()
/external/v8/src/ic/arm/
Dic-arm.cc996 CodePatcher patcher(patch_address, 2); in PatchInlinedSmiCode() local
1002 patcher.masm()->tst(reg, Operand(kSmiTagMask)); in PatchInlinedSmiCode()
1006 patcher.masm()->cmp(reg, reg); in PatchInlinedSmiCode()
1010 patcher.EmitCondition(ne); in PatchInlinedSmiCode()
1013 patcher.EmitCondition(eq); in PatchInlinedSmiCode()
/external/v8/src/ic/mips/
Dic-mips.cc1002 CodePatcher patcher(patch_address, 2); in PatchInlinedSmiCode() local
1007 patcher.masm()->andi(at, reg, kSmiTagMask); in PatchInlinedSmiCode()
1011 patcher.masm()->andi(at, reg, 0); in PatchInlinedSmiCode()
1015 patcher.ChangeBranchCondition(ne); in PatchInlinedSmiCode()
1018 patcher.ChangeBranchCondition(eq); in PatchInlinedSmiCode()

12