Lines Matching defs:code
8 // - Redistributions of source code must retain the above copyright notice,
31 // The original source code covered by the above license above has been
71 // compatible with int, which has caused code-generation bugs.
83 // code generated for some assembly instructions (because they boil down
84 // to a few constants). If this is a problem, we could change the code
87 // and best performance in optimized code.
91 static Register toRegister(int code) {
92 Register r = { code };
97 int code() const {
105 // Return the high bit of the register code as a 0 or 1. Used often
110 // Return the 3 low bits of the register code. Used when encoding registers
142 int code() const {
147 // Return the high bit of the register code as a 0 or 1. Used often
152 // Return the 3 low bits of the register code. Used when encoding registers
332 // // Generate SSE3 floating point code.
334 // // Generate standard x87 or SSE2 floating point code.
407 // for code generation and assumes its size to be buffer_size. If the buffer
413 // GetCode emits any pending (non-emitted) code and fills the descriptor
418 // Read/Modify the code target in the relative branch/call instruction at pc.
420 // to jump to other Code objects in the Code space in the heap.
423 // These functions convert between absolute Addresses of Code objects and
424 // the relative displacements stored in the code.
429 // This is for calls and branches within generated code.
436 // This is for calls and branches to runtime code.
443 // Number of bytes taken up by the branch target in the code.
446 // Distance between the address of the code target in the call instruction
463 // Code generation
928 if (dst.code() == src.code()) {
985 void bind(Label* L); // binds an unbound label L to the current code position
990 void call(Handle<Code> target, RelocInfo::Mode rmode);
1002 void jmp(Handle<Code> target, RelocInfo::Mode rmode);
1012 void j(Condition cc, Handle<Code> target, RelocInfo::Mode rmode);
1112 // Check the code size generated from label to here.
1115 // Mark address of the ExitJSFrame code.
1156 // code emission
1163 inline void emit_code_target(Handle<Code> target, RelocInfo::Mode rmode);
1182 // the top bit of the register code.
1265 void emit_modrm(int code, Register rm_reg) {
1266 ASSERT(is_uint3(code));
1267 emit(0xC0 | code << 3 | rm_reg.low_bits());
1270 // Emit the code-object-relative offset of the label's position
1273 // Emit machine code for one of the operations ADD, ADC, SUB, SBC,
1307 // Emit machine code for a shift operation.
1328 // Code buffer:
1329 // The buffer into which code and relocation info are generated.
1337 // code generation
1341 List< Handle<Code> > code_targets_;