夜读V8 之 Assembler

聪明的工程师

dancefish posted @ 2011年9月07日 16:58 in 书摘 , 1049 阅读

 

void MacroAssembler::Swap(Register reg1,
                          Register reg2,
                          Register scratch,
                          Condition cond) {
  if (scratch.is(no_reg)) {
    eor(reg1, reg1, Operand(reg2), LeaveCC, cond);
    eor(reg2, reg2, Operand(reg1), LeaveCC, cond);
    eor(reg1, reg1, Operand(reg2), LeaveCC, cond);
  } else {
    mov(scratch, reg1, LeaveCC, cond);
    mov(reg1, reg2, LeaveCC, cond);
    mov(reg2, scratch, LeaveCC, cond);
  }
}
Avatar_small
Alicia Hobson 说:
2019年2月19日 13:38

A new program of the dance fish is arranged for the excitement of the visitors. All the challenges of the dance and bestessays reviews are made part of the main function. The fish is included in the program at the request of the novel programmers in the town.

Avatar_small
cleaning services 说:
2019年9月12日 15:24

This can be a same pertaining to private residences. Many men and women love developing a cleaning service appear in to clean up those parts on the town that most of the people hate to scrub. Perhaps they may contract which has a company for you to just accomplish floors, glass windows, toilets along with bathtubs plus the rest the actual will accomplish. Or they will often have someone would you want your entire home cleaned once or twice a 1 week. Having a new cleaning firm who give a large various services could surely remember to everyone.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter