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
121 Object* code = Heap::CreateCode(desc,
123 Code::ComputeFlags(Code::STUB),
124 Handle<Code>::null());
125 if (!code->IsCode()) return;
127 Code::cast(code), "CpuFeatures::Probe"));
129 F0 probe = FUNCTION_CAST<F0>(Code::cast(code)->entry());
164 // Patch the code at the current address with the supplied instructions.
169 // Indicate that code has changed.
174 // Patch the code at the current PC with a call to the target address.
181 // Create a code patcher.
184 // Add a label for checking the size of the code used for returning.
190 // Patch the code.
193 // Check that the size of the code generated is as expected.
266 && ((buf_[0] & 0x07) == reg.code()); // register codes match.
312 // existing code in it; see CodePatcher::CodePatcher(...).
347 // Finalize code (at this point overflow() may be true, but the gap ensures
350 // Setup code descriptor.
422 EMIT(0x50 | src.code());
444 if (push_reg_code == dst.code()) {
465 op1 = (op1 & ~0x38) | static_cast<byte>(dst.code() << 3);
548 EMIT(0x58 | dst.code());
577 ASSERT(dst.code() < 4);
595 ASSERT(src.code() < 4);
624 EMIT(0xB8 | dst.code());
632 EMIT(0xB8 | dst.code());
640 EMIT(0xB8 | dst.code());
657 EMIT(0xC0 | src.code() << 3 | dst.code());
768 EMIT(0x90 | (src.is(eax) ? dst.code() : src.code()));
771 EMIT(0xC0 | src.code() << 3 | dst.code());
931 emit_operand(eax, op); // eax has same code as register al.
940 emit_operand(eax, op); // eax has same code as register ax.
948 EMIT(0xC8 | dst.code());
955 EMIT(0x48 | dst.code());
978 EMIT(0xF8 | src.code());
986 EMIT(0xE8 | reg.code());
1004 EMIT(0xC0 | dst.code() << 3 | src.code());
1008 EMIT(0xC0 | dst.code() << 3 | src.code());
1017 EMIT(0x40 | dst.code());
1041 EMIT(0xE0 | src.code());
1049 EMIT(0xD8 | dst.code());
1057 EMIT(0xD0 | dst.code());
1097 EMIT(0xD0 | dst.code());
1100 EMIT(0xD0 | dst.code());
1112 EMIT(0xF8 | dst.code());
1115 EMIT(0xF8 | dst.code());
1125 EMIT(0xF8 | dst.code());
1152 EMIT(0xE0 | dst.code());
1155 EMIT(0xE0 | dst.code());
1165 EMIT(0xE0 | dst.code());
1184 EMIT(0xE8 | dst.code());
1187 EMIT(0xE8 | dst.code());
1197 EMIT(0xE8 | dst.code());
1230 ASSERT(dst.code() < 4);
1251 if (imm.rmode_ == RelocInfo::NONE && is_uint8(imm.x_) && reg.code() < 4) {
1266 EMIT(0xC0 | reg.code());
1390 // Labels refer to positions in the (to be) generated code.
1394 // generated code. pos() is the position the label refers to.
1396 // Linked labels refer to unknown positions in the code
1430 // Relative to Code* heap object pointer.
1431 long_at_put(fixup_pos, pos + Code::kHeaderSize - kHeapObjectTag);
1515 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) {
1521 emit(reinterpret_cast<intptr_t>(code.location()), rmode);
1567 void Assembler::jmp(Handle<Code> code, RelocInfo::Mode rmode) {
1572 emit(reinterpret_cast<intptr_t>(code.location()), rmode);
1620 void Assembler::j(Condition cc, Handle<Code> code, Hint hint) {
1627 emit(reinterpret_cast<intptr_t>(code.location()), RelocInfo::CODE_TARGET);
2001 EMIT(0xC0 | reg.code());
2185 Register ireg = { reg.code() };
2191 EMIT(0xC0 | dst.code() << 3 | src.code());
2251 if (!own_buffer_) FATAL("external code buffer is too small");
2273 // sure to get into problems if we ever run uninitialized code.
2323 EMIT(op2 | dst.code());
2351 pc_[0] = (adr.buf_[0] & ~0x38) | (reg.code() << 3);