Lines Matching defs:code
6 // * Redistributions of source code must retain the above copyright
156 // Patch the code at the current PC with a call to the target address.
164 // Create a code patcher.
167 // Add a label for checking the size of the code used for returning.
173 // Patch the code.
177 // Check that the size of the code generated is as expected.
189 // Patch the code at the current address with the supplied instructions.
194 // Indicate that code has changed.
314 int code = reg.code();
319 if (base_code == rsp.code()) {
323 // Index code (including REX.X) of 0x04 (rsp) means no index register.
324 if (index_code != rsp.code() && index_code == code) return true;
325 // Add REX.B to get the full base register code.
328 if (base_code == rbp.code() && ((buf_[0] & 0xC0) == 0)) return false;
329 return code == base_code;
333 if (base_code == rbp.code() && ((buf_[0] & 0xC0) == 0)) return false;
335 return code == base_code;
379 // existing code in it.
412 // Finalize code (at this point overflow() may be true, but the gap ensures
415 // Setup code descriptor.
419 ASSERT(desc->instr_size > 0); // Zero-size code objects upset the system.
485 if (!own_buffer_) FATAL("external code buffer is too small");
508 // sure to get into problems if we ever run uninitialized code.
550 void Assembler::emit_operand(int code, const Operand& adr) {
551 ASSERT(is_uint3(code));
557 pc_[0] = adr.buf_[0] | code << 3;
774 if (dst.code() > 3) {
872 void Assembler::call(Handle<Code> target, RelocInfo::Mode rmode) {
902 // Should only ever be used in Code objects for calls within the
903 // same Code object. Should not be used when generating new code (use labels),
904 // but only when patching existing code.
1056 if (dst.code() > 3) {
1257 Handle<Code> target,
1320 void Assembler::jmp(Handle<Code> target, RelocInfo::Mode rmode) {
1401 if (dst.code() > 3) {
1414 if (dst.code() > 3) {
1424 if (src.code() > 3) {
1954 if (reg.code() > 3) { // Use x64 byte registers, where different.
2019 if (dst.code() > 3 || src.code() > 3) {
2036 if (reg.code() > 3) {
2052 emit_operand(rax, op); // Operation code 0
2059 if (reg.code() > 3) {
2112 emit_operand(rax, op); // Operation code 0
2877 Register ireg = { reg.code() };