Lines Matching refs:code

8 // - Redistributions of source code must retain the above copyright notice,
33 // The original source code covered by the above license above has been
231 // GetCode emits any pending (non-emitted) code and fills the descriptor desc.
238 // Convenience wrapper for code without safepoint or handler tables.
261 void bind(Label* L); // binds an unbound label L to the current code position
268 // Returns the branch offset to the given label from the current code position
274 // Read/Modify the code target address in the branch/call instruction at pc.
278 // Read/Modify the code target address in the branch/call instruction at pc.
293 // This is for calls and branches within generated code.
295 Address instruction_payload, Code code, Address target);
310 // in the code, so the serializer should not step forwards in memory after
338 ril_format(op_name, r1.code(), i2.immediate()); \
360 rr_format(op_name, r1.code(), r2.code()); \
363 rr_format(op_name, r1.code(), r2.code()); \
366 rr_format(op_name, m1, r2.code()); \
380 rrd_format(op_name, r1.code(), r3.code(), r2.code()); \
394 rre_format(op_name, r1.code(), r2.code()); \
403 void lzdr(DoubleRegister r1) { rre_format(LZDR, r1.code(), 0); }
404 void lzer(DoubleRegister r1) { rre_format(LZER, r1.code(), 0); }
410 rx_format(op_name, r1.code(), x2.code(), b2.code(), d2.immediate()); \
433 rx_format(BC, cond, x2.code(), b2.code(), d2.immediate());
440 rxy_format(op_name, r1.code(), r2.code(), b2.code(), d2.immediate()); \
466 rxy_format(PFD, cond, x2.code(), b2.code(), d2.immediate());
473 uint64_t code =
480 emit6bytes(code);
486 rsy_format(op_name, r1.code(), r3.code(), b2.code(), d2.immediate()); \
497 rsy_format(op_name, r1.code(), m3, b2.code(), d2.immediate()); \
506 uint32_t code =
510 emit4bytes(code);
515 rs_format(op_name, r1.code(), r3.code(), b2.code(), d2.immediate()); \
525 rs_format(op_name, r1.code(), m3, b2.code(), d2.immediate()); \
535 rs_format(opcode, r1.code(), r0.code(), r2.code(), opnd.immediate()); \
538 rs_format(opcode, r1.code(), r0.code(), r0.code(), opnd.immediate()); \
553 uint64_t code =
560 emit6bytes(code);
566 rxe_format(op_name, r1.code(), x2.code(), b2.code(), d2.immediate(), m3); \
570 name(Register::from_code(r1.code()), opnd.rx(), opnd.rb(), \
588 ri_format(op_name, r.code(), i2.immediate()); \
599 ri_format(op_name, r1.code(), halfwordOp.immediate()); \
616 uint32_t code =
620 emit4bytes(code);
625 rrf_format(op_name, r3.code(), m4, r1.code(), r2.code()); \
635 rrf_format(op_name, r3.code(), m4, r1.code(), r2.code()); \
646 rrf_format(op_name, m3, m4, r1.code(), r2.code()); \
658 rrf_format(op_name, m3, m4, r1.code(), r2.code()); \
670 rrf_format(op_name, m3, m4, r1.code(), r2.code()); \
682 uint32_t code =
685 emit4bytes(code);
690 rsi_format(op_name, r1.code(), r3.code(), i2.immediate()); \
698 uint64_t code =
704 emit6bytes(code);
710 rsl_format(op_name, L, b1.code(), d1.immediate(), 0, 0); \
719 rsl_format(op_name, L, b2.code(), d2.immediate(), r1.code(), m3); \
727 uint32_t code = getfield<uint32_t, 4, 0, 16>(op) |
730 emit4bytes(code);
739 s_format(op, b1.code(), d2.immediate()); \
749 uint32_t code =
752 emit4bytes(code);
757 si_format(op_name, i2.immediate(), b1.code(), d1.immediate()); \
769 uint64_t code = getfield<uint64_t, 6, 0, 8>(op >> 8) |
775 emit6bytes(code);
780 siy_format(op_name, i2.immediate(), b1.code(), d1.immediate()); \
791 uint64_t code =
797 emit6bytes(code);
803 rrs_format(op_name, r1.code(), r2.code(), b4.code(), d4.immediate(), m3); \
815 uint64_t code =
821 emit6bytes(code);
827 ris_format(op_name, r1.code(), m3, b4.code(), d4.immediate(), \
841 uint64_t code =
844 emit6bytes(code);
849 sil_format(op_name, b1.code(), d1.immediate(), i2.immediate()); \
860 uint64_t code =
864 emit6bytes(code);
869 rie_d_format(op_name, r1.code(), r3.code(), i2.immediate(), 0); \
877 uint64_t code =
881 emit6bytes(code);
886 rie_e_format(op_name, r1.code(), r3.code(), i2.immediate()); \
895 uint64_t code =
900 emit6bytes(code);
909 rie_f_format(op_name, dst.code(), src.code(), startBit.immediate(), \
920 uint64_t code =
924 emit6bytes(code);
930 ss_a_format(op_name, length.immediate(), b1.code(), d1.immediate(), \
931 b2.code(), d2.immediate()); \
935 ss_a_format(op_name, length.immediate(), opnd1.getBaseRegister().code(), \
936 opnd1.getDisplacement(), opnd2.getBaseRegister().code(), \
1055 // Aligns code to something that's optimal for a jump target for the platform.
1083 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1084 (static_cast<uint64_t>(v1.code())) * B36 | \
1085 (static_cast<uint64_t>(v2.code())) * B32 | \
1091 emit6bytes(code); \
1099 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1100 (static_cast<uint64_t>(v1.code())) * B36 | \
1101 (static_cast<uint64_t>(v2.code())) * B32 | \
1102 (static_cast<uint64_t>(v3.code())) * B28 | \
1108 emit6bytes(code); \
1116 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1117 (static_cast<uint64_t>(v1.code())) * B36 | \
1118 (static_cast<uint64_t>(v2.code())) * B32 | \
1119 (static_cast<uint64_t>(v3.code())) * B28 | \
1124 emit6bytes(code); \
1132 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1133 (static_cast<uint64_t>(v1.code())) * B36 | \
1134 (static_cast<uint64_t>(v2.code())) * B32 | \
1135 (static_cast<uint64_t>(v3.code())) * B28 | \
1138 (static_cast<uint64_t>(v4.code())) * B12 | \
1141 emit6bytes(code); \
1148 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1149 (static_cast<uint64_t>(v1.code())) * B36 | \
1150 (static_cast<uint64_t>(r1.code())) * B32 | \
1151 (static_cast<uint64_t>(r2.code())) * B28 | \
1154 emit6bytes(code); \
1161 uint64_t code = \
1163 (static_cast<uint64_t>(v1.code())) * B36 | \
1164 (static_cast<uint64_t>(opnd.getIndexRegister().code())) * B32 | \
1165 (static_cast<uint64_t>(opnd.getBaseRegister().code())) * B28 | \
1170 emit6bytes(code); \
1178 uint64_t code = \
1180 (static_cast<uint64_t>(v1.code())) * B36 | \
1181 (static_cast<uint64_t>(v2.code())) * B32 | \
1182 (static_cast<uint64_t>(opnd.getBaseRegister().code())) * B28 | \
1187 emit6bytes(code); \
1195 uint64_t code = \
1197 (static_cast<uint64_t>(v1.code())) * B36 | \
1198 (static_cast<uint64_t>(r1.code())) * B32 | \
1199 (static_cast<uint64_t>(opnd.getBaseRegister().code())) * B28 | \
1204 emit6bytes(code); \
1212 uint64_t code = \
1214 (static_cast<uint64_t>(r1.code())) * B36 | \
1215 (static_cast<uint64_t>(v1.code())) * B32 | \
1216 (static_cast<uint64_t>(opnd.getBaseRegister().code())) * B28 | \
1221 emit6bytes(code); \
1228 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1229 (static_cast<uint64_t>(v1.code())) * B36 | \
1234 emit6bytes(code); \
1242 uint64_t code = (static_cast<uint64_t>(opcode_value & 0xFF00)) * B32 | \
1243 (static_cast<uint64_t>(v1.code())) * B36 | \
1244 (static_cast<uint64_t>(v2.code())) * B32 | \
1249 emit6bytes(code); \
1277 void stop(Condition cond = al, int32_t code = kDefaultStopCode,
1282 // Different nop operations are used by the code generator to detect certain
1283 // states of the generated code.
1301 // Check the code size generated from label to here.
1311 // Writes a single byte or word of data in the code stream. Used
1349 // The code currently calls CheckBuffer() too often. This has the side