Lines Matching refs:intptr_t
55 intptr_t GetRegisterValue(int regnum);
58 bool GetValue(const char* desc, intptr_t* value);
91 intptr_t PPCDebugger::GetRegisterValue(int regnum) { in GetRegisterValue()
106 bool PPCDebugger::GetValue(const char* desc, intptr_t* value) { in GetValue()
175 intptr_t last_pc = -1; in Debug()
230 intptr_t value; in Debug()
269 intptr_t value; in Debug()
349 intptr_t value; in Debug()
367 intptr_t value; in Debug()
375 intptr_t* cur = nullptr; in Debug()
376 intptr_t* end = nullptr; in Debug()
380 cur = reinterpret_cast<intptr_t*>(sim_->get_register(Simulator::sp)); in Debug()
382 intptr_t value; in Debug()
387 cur = reinterpret_cast<intptr_t*>(value); in Debug()
391 intptr_t words; // likely inaccurate variable name for 64bit in Debug()
403 reinterpret_cast<intptr_t>(cur), *cur, *cur); in Debug()
405 intptr_t value = *cur; in Debug()
437 intptr_t value; in Debug()
445 intptr_t value; in Debug()
453 intptr_t value1; in Debug()
454 intptr_t value2; in Debug()
464 PrintF(" 0x%08" V8PRIxPTR " %s\n", reinterpret_cast<intptr_t>(prev), in Debug()
473 intptr_t value; in Debug()
499 intptr_t value; in Debug()
500 intptr_t stop_pc = sim_->get_pc() - (kInstrSize + kPointerSize); in Debug()
641 DCHECK_EQ(reinterpret_cast<intptr_t>(one) & CachePage::kPageMask, 0); in ICacheMatch()
642 DCHECK_EQ(reinterpret_cast<intptr_t>(two) & CachePage::kPageMask, 0); in ICacheMatch()
653 intptr_t start_page = (start & ~CachePage::kPageMask); in AllOnOnePage()
654 intptr_t end_page = ((start + size) & ~CachePage::kPageMask); in AllOnOnePage()
670 intptr_t start = reinterpret_cast<intptr_t>(start_addr); in FlushICache()
702 intptr_t start, int size) { in FlushOnePage()
716 intptr_t address = reinterpret_cast<intptr_t>(instr); in CheckICache()
771 reinterpret_cast<intptr_t>(stack_) + stack_size - stack_protection_size_; in Simulator()
799 void Simulator::set_register(int reg, intptr_t value) { in set_register()
806 intptr_t Simulator::get_register(int reg) const { in get_register()
832 void Simulator::set_pc(intptr_t value) { in set_pc()
844 intptr_t Simulator::get_pc() const { return special_reg_pc_; } in get_pc()
851 void Simulator::GetFpArgs(double* x, double* y, intptr_t* z) { in GetFpArgs()
874 uint32_t Simulator::ReadWU(intptr_t addr, Instruction* instr) { in ReadWU()
883 uint32_t Simulator::ReadExWU(intptr_t addr, Instruction* instr) { in ReadExWU()
892 int32_t Simulator::ReadW(intptr_t addr, Instruction* instr) { in ReadW()
902 void Simulator::WriteW(intptr_t addr, uint32_t value, Instruction* instr) { in WriteW()
914 int Simulator::WriteExW(intptr_t addr, uint32_t value, Instruction* instr) { in WriteExW()
927 void Simulator::WriteW(intptr_t addr, int32_t value, Instruction* instr) { in WriteW()
939 uint16_t Simulator::ReadHU(intptr_t addr, Instruction* instr) { in ReadHU()
948 uint16_t Simulator::ReadExHU(intptr_t addr, Instruction* instr) { in ReadExHU()
957 int16_t Simulator::ReadH(intptr_t addr, Instruction* instr) { in ReadH()
967 void Simulator::WriteH(intptr_t addr, uint16_t value, Instruction* instr) { in WriteH()
980 void Simulator::WriteH(intptr_t addr, int16_t value, Instruction* instr) { in WriteH()
992 int Simulator::WriteExH(intptr_t addr, uint16_t value, Instruction* instr) { in WriteExH()
1005 uint8_t Simulator::ReadBU(intptr_t addr) { in ReadBU()
1015 int8_t Simulator::ReadB(intptr_t addr) { in ReadB()
1024 uint8_t Simulator::ReadExBU(intptr_t addr) { in ReadExBU()
1033 void Simulator::WriteB(intptr_t addr, uint8_t value) { in WriteB()
1045 void Simulator::WriteB(intptr_t addr, int8_t value) { in WriteB()
1056 int Simulator::WriteExB(intptr_t addr, uint8_t value) { in WriteExB()
1069 intptr_t* Simulator::ReadDW(intptr_t addr) { in ReadDW()
1074 intptr_t* ptr = reinterpret_cast<intptr_t*>(addr); in ReadDW()
1079 void Simulator::WriteDW(intptr_t addr, int64_t value) { in WriteDW()
1109 reinterpret_cast<intptr_t>(instr), format); in Format()
1156 static void decodeObjectPair(ObjectPair* pair, intptr_t* x, intptr_t* y) { in decodeObjectPair()
1157 *x = reinterpret_cast<intptr_t>(pair->x); in decodeObjectPair()
1158 *y = reinterpret_cast<intptr_t>(pair->y); in decodeObjectPair()
1161 static void decodeObjectPair(ObjectPair* pair, intptr_t* x, intptr_t* y) { in decodeObjectPair()
1173 typedef intptr_t (*SimulatorRuntimeCall)(intptr_t arg0, intptr_t arg1,
1174 intptr_t arg2, intptr_t arg3,
1175 intptr_t arg4, intptr_t arg5,
1176 intptr_t arg6, intptr_t arg7,
1177 intptr_t arg8);
1178 typedef ObjectPair (*SimulatorRuntimePairCall)(intptr_t arg0, intptr_t arg1,
1179 intptr_t arg2, intptr_t arg3,
1180 intptr_t arg4, intptr_t arg5);
1186 typedef double (*SimulatorRuntimeFPIntCall)(double darg0, intptr_t arg0);
1190 typedef void (*SimulatorRuntimeDirectApiCall)(intptr_t arg0);
1191 typedef void (*SimulatorRuntimeProfilingApiCall)(intptr_t arg0, void* arg1);
1194 typedef void (*SimulatorRuntimeDirectGetterCall)(intptr_t arg0, intptr_t arg1);
1195 typedef void (*SimulatorRuntimeProfilingGetterCall)(intptr_t arg0,
1196 intptr_t arg1, void* arg2);
1213 intptr_t result_buffer = 0; in SoftwareInterrupt()
1221 intptr_t arg[kArgCount]; in SoftwareInterrupt()
1226 intptr_t* stack_pointer = reinterpret_cast<intptr_t*>(get_register(sp)); in SoftwareInterrupt()
1238 intptr_t saved_lr = special_reg_lr_; in SoftwareInterrupt()
1239 intptr_t external = in SoftwareInterrupt()
1240 reinterpret_cast<intptr_t>(redirection->external_function()); in SoftwareInterrupt()
1243 intptr_t ival; // zero or one integer parameters in SoftwareInterrupt()
1376 arg[0] = *(reinterpret_cast<intptr_t*>(arg[0])); in SoftwareInterrupt()
1395 arg[0] = *(reinterpret_cast<intptr_t*>(arg[0])); in SoftwareInterrupt()
1422 intptr_t x; in SoftwareInterrupt()
1423 intptr_t y; in SoftwareInterrupt()
1440 intptr_t result = target(arg[0], arg[1], arg[2], arg[3], arg[4], in SoftwareInterrupt()
1555 void Simulator::SetCR0(intptr_t result, bool setSO) { in SetCR0()
1604 intptr_t old_pc = get_pc(); in ExecuteBranchConditional()
1631 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
1634 intptr_t alu_out = im_val - ra_val; in ExecuteGeneric()
1687 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
1735 intptr_t alu_out; in ExecuteGeneric()
1739 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
1750 intptr_t alu_out; in ExecuteGeneric()
1754 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
1898 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
1900 intptr_t alu_out = rs_val | im_val; in ExecuteGeneric()
1907 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
1909 intptr_t alu_out = rs_val | (im_val << 16); in ExecuteGeneric()
1916 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
1918 intptr_t alu_out = rs_val ^ im_val; in ExecuteGeneric()
1926 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
1928 intptr_t alu_out = rs_val ^ (im_val << 16); in ExecuteGeneric()
1935 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
1937 intptr_t alu_out = rs_val & im_val; in ExecuteGeneric()
1945 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
1947 intptr_t alu_out = rs_val & (im_val << 16); in ExecuteGeneric()
1958 intptr_t result = (rb_val > 31) ? 0 : rs_val >> rb_val; in ExecuteGeneric()
1972 intptr_t result = (rb_val > 63) ? 0 : rs_val >> rb_val; in ExecuteGeneric()
2039 intptr_t rb_val = get_register(rb) & 0x3F; in ExecuteGeneric()
2040 intptr_t result = (rb_val > 31) ? rs_val >> 31 : rs_val >> rb_val; in ExecuteGeneric()
2052 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2053 intptr_t rb_val = get_register(rb) & 0x7F; in ExecuteGeneric()
2054 intptr_t result = (rb_val > 63) ? rs_val >> 63 : rs_val >> rb_val; in ExecuteGeneric()
2067 intptr_t result = rs_val >> sh; in ExecuteGeneric()
2079 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2080 intptr_t ra_val = (rs_val << shift) >> shift; in ExecuteGeneric()
2092 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2093 intptr_t ra_val = (rs_val << shift) >> shift; in ExecuteGeneric()
2104 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2105 intptr_t ra_val = (rs_val << shift) >> shift; in ExecuteGeneric()
2117 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2118 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2145 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2146 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2160 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2161 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2190 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2191 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2243 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2257 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2271 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2285 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2286 intptr_t result = rs_val >> sh; in ExecuteGeneric()
2297 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2299 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2307 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2309 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2317 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2319 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2337 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
2338 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2402 SetCR0(static_cast<intptr_t>(alu_out)); in ExecuteGeneric()
2423 SetCR0(static_cast<intptr_t>(alu_out)); in ExecuteGeneric()
2441 SetCR0(static_cast<intptr_t>(alu_out)); in ExecuteGeneric()
2456 SetCR0(static_cast<intptr_t>(alu_out)); in ExecuteGeneric()
2470 SetCR0(static_cast<intptr_t>(alu_out)); in ExecuteGeneric()
2477 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
2478 intptr_t alu_out = 1 + ~ra_val; in ExecuteGeneric()
2480 intptr_t one = 1; // work-around gcc in ExecuteGeneric()
2481 intptr_t kOverflowVal = (one << 63); in ExecuteGeneric()
2483 intptr_t kOverflowVal = kMinInt; in ExecuteGeneric()
2623 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2624 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2625 intptr_t alu_out = rs_val & rb_val; in ExecuteGeneric()
2636 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2637 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2638 intptr_t alu_out = rs_val & ~rb_val; in ExecuteGeneric()
2690 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
2691 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2692 intptr_t alu_out = rb_val - ra_val; in ExecuteGeneric()
2704 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
2719 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2720 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2721 intptr_t alu_out = ~(rs_val | rb_val); in ExecuteGeneric()
2848 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
2849 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2850 intptr_t alu_out = ra_val + rb_val; in ExecuteGeneric()
2862 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2863 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2864 intptr_t alu_out = rs_val ^ rb_val; in ExecuteGeneric()
2875 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2876 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2877 intptr_t alu_out = rs_val | rb_val; in ExecuteGeneric()
2888 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
2889 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2890 intptr_t alu_out = rs_val | ~rb_val; in ExecuteGeneric()
2908 intptr_t rt_val = get_register(rt); in ExecuteGeneric()
2931 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2933 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2946 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2948 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2961 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2963 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2976 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2977 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
2990 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
2991 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3000 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3001 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3002 intptr_t* result = ReadDW(ra_val + rb_val); in ExecuteGeneric()
3015 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3016 intptr_t rs_val = get_register(rs); in ExecuteGeneric()
3017 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3031 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3032 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3045 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3046 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3058 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3059 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3067 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3068 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3076 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3077 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3085 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3086 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3100 intptr_t ra_val = (ra == 0) ? 0 : get_register(ra); in ExecuteGeneric()
3101 intptr_t rb_val = get_register(rb); in ExecuteGeneric()
3102 intptr_t value = (condition_reg_ & condition_mask) ? ra_val : rb_val; in ExecuteGeneric()
3111 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3126 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3140 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3142 intptr_t result = ReadH(ra_val + offset, instr); in ExecuteGeneric()
3154 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3176 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3204 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3219 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3248 intptr_t ra_val = ra == 0 ? 0 : get_register(ra); in ExecuteGeneric()
3750 intptr_t ra_val = get_register(ra); in ExecuteGeneric()
3810 intptr_t* result = ReadDW(ra_val + offset); in ExecuteGeneric()
3815 intptr_t* result = ReadDW(ra_val + offset); in ExecuteGeneric()
3822 intptr_t result = ReadW(ra_val + offset, instr); in ExecuteGeneric()
3902 reinterpret_cast<intptr_t>(instr), buffer.start()); in Trace()
3922 set_pc(reinterpret_cast<intptr_t>(instr) + kInstrSize); in ExecuteInstruction()
3929 intptr_t program_counter = get_pc(); in Execute()
3964 set_pc(*(reinterpret_cast<intptr_t*>(entry))); in CallInternal()
3967 set_pc(static_cast<intptr_t>(entry)); in CallInternal()
3981 intptr_t r2_val = get_register(r2); in CallInternal()
3982 intptr_t r13_val = get_register(r13); in CallInternal()
3983 intptr_t r14_val = get_register(r14); in CallInternal()
3984 intptr_t r15_val = get_register(r15); in CallInternal()
3985 intptr_t r16_val = get_register(r16); in CallInternal()
3986 intptr_t r17_val = get_register(r17); in CallInternal()
3987 intptr_t r18_val = get_register(r18); in CallInternal()
3988 intptr_t r19_val = get_register(r19); in CallInternal()
3989 intptr_t r20_val = get_register(r20); in CallInternal()
3990 intptr_t r21_val = get_register(r21); in CallInternal()
3991 intptr_t r22_val = get_register(r22); in CallInternal()
3992 intptr_t r23_val = get_register(r23); in CallInternal()
3993 intptr_t r24_val = get_register(r24); in CallInternal()
3994 intptr_t r25_val = get_register(r25); in CallInternal()
3995 intptr_t r26_val = get_register(r26); in CallInternal()
3996 intptr_t r27_val = get_register(r27); in CallInternal()
3997 intptr_t r28_val = get_register(r28); in CallInternal()
3998 intptr_t r29_val = get_register(r29); in CallInternal()
3999 intptr_t r30_val = get_register(r30); in CallInternal()
4000 intptr_t r31_val = get_register(fp); in CallInternal()
4004 intptr_t callee_saved_value = icount_; in CallInternal()
4078 intptr_t Simulator::CallImpl(Address entry, int argument_count, in CallImpl()
4079 const intptr_t* arguments) { in CallImpl()
4090 intptr_t original_stack = get_register(sp); in CallImpl()
4092 intptr_t entry_stack = in CallImpl()
4094 (kNumRequiredStackFrameSlots + stack_arg_count) * sizeof(intptr_t)); in CallImpl()
4100 intptr_t* stack_argument = in CallImpl()
4101 reinterpret_cast<intptr_t*>(entry_stack) + kStackFrameExtraParamSlot; in CallImpl()