Lines Matching defs: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 modified
177 // code object moves.
183 // Patch the code at the current address with the supplied instructions.
188 // Indicate that code has changed.
193 // Patch the code at the current PC with a call to the target address.
200 // Create a code patcher.
203 // Add a label for checking the size of the code used for returning.
209 // Patch the code.
212 // Check that the size of the code generated is as expected.
286 && ((buf_[0] & 0x07) == reg.code()); // register codes match.
332 // existing code in it; see CodePatcher::CodePatcher(...).
364 // Finalize code (at this point overflow() may be true, but the gap ensures
367 // Setup code descriptor.
449 EMIT(0x50 | src.code());
471 if (push_reg_code == dst.code()) {
492 op1 = (op1 & ~0x38) | static_cast<byte>(dst.code() << 3);
575 EMIT(0x58 | dst.code());
604 ASSERT(dst.code() < 4);
622 ASSERT(src.code() < 4);
651 EMIT(0xB8 | dst.code());
659 EMIT(0xB8 | dst.code());
667 EMIT(0xB8 | dst.code());
684 EMIT(0xC0 | src.code() << 3 | dst.code());
817 EMIT(0x90 | (src.is(eax) ? dst.code() : src.code()));
820 EMIT(0xC0 | src.code() << 3 | dst.code());
985 emit_operand(eax, op); // eax has same code as register al.
994 emit_operand(eax, op); // eax has same code as register ax.
1002 EMIT(0xC8 | dst.code());
1017 EMIT(0x48 | dst.code());
1040 EMIT(0xF8 | src.code());
1048 EMIT(0xE8 | reg.code());
1066 EMIT(0xC0 | dst.code() << 3 | src.code());
1070 EMIT(0xC0 | dst.code() << 3 | src.code());
1079 EMIT(0x40 | dst.code());
1103 EMIT(0xE0 | src.code());
1111 EMIT(0xD8 | dst.code());
1119 EMIT(0xD0 | dst.code());
1159 EMIT(0xD0 | dst.code());
1162 EMIT(0xD0 | dst.code());
1174 EMIT(0xD8 | dst.code());
1177 EMIT(0xD8 | dst.code());
1189 EMIT(0xF8 | dst.code());
1192 EMIT(0xF8 | dst.code());
1202 EMIT(0xF8 | dst.code());
1229 EMIT(0xE0 | dst.code());
1232 EMIT(0xE0 | dst.code());
1242 EMIT(0xE0 | dst.code());
1261 EMIT(0xE8 | dst.code());
1264 EMIT(0xE8 | dst.code());
1274 EMIT(0xE8 | dst.code());
1307 ASSERT(dst.code() < 4);
1328 if (imm.rmode_ == RelocInfo::NONE && is_uint8(imm.x_) && reg.code() < 4) {
1343 EMIT(0xC0 | reg.code());
1476 // Labels refer to positions in the (to be) generated code.
1480 // generated code. pos() is the position the label refers to.
1482 // Linked labels refer to unknown positions in the code
1516 // Relative to Code* heap object pointer.
1517 long_at_put(fixup_pos, pos + Code::kHeaderSize - kHeapObjectTag);
1592 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) {
1598 emit(reinterpret_cast<intptr_t>(code.location()), rmode);
1644 void Assembler::jmp(Handle<Code> code, RelocInfo::Mode rmode) {
1649 emit(reinterpret_cast<intptr_t>(code.location()), rmode);
1715 void Assembler::j(Condition cc, Handle<Code> code, Hint hint) {
1722 emit(reinterpret_cast<intptr_t>(code.location()), RelocInfo::CODE_TARGET);
2133 EMIT(0xC0 | reg.code());
2384 XMMRegister code = { level }; // Emit hint number in Reg position of RegR/M.
2385 emit_sse_operand(code, src);
2621 Register ireg = { reg.code() };
2627 EMIT(0xC0 | dst.code() << 3 | src.code());
2632 EMIT(0xC0 | dst.code() << 3 | src.code());
2665 if (!own_buffer_) FATAL("external code buffer is too small");
2687 // sure to get into problems if we ever run uninitialized code.
2738 EMIT(op2 | dst.code());
2766 pc_[0] = (adr.buf_[0] & ~0x38) | (reg.code() << 3);