| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. | 
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without | 
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are | 
| 4 // met: | 4 // met: | 
| 5 // | 5 // | 
| 6 //     * Redistributions of source code must retain the above copyright | 6 //     * Redistributions of source code must retain the above copyright | 
| 7 //       notice, this list of conditions and the following disclaimer. | 7 //       notice, this list of conditions and the following disclaimer. | 
| 8 //     * Redistributions in binary form must reproduce the above | 8 //     * Redistributions in binary form must reproduce the above | 
| 9 //       copyright notice, this list of conditions and the following | 9 //       copyright notice, this list of conditions and the following | 
| 10 //       disclaimer in the documentation and/or other materials provided | 10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1512   if (int_val == 0) { | 1512   if (int_val == 0) { | 
| 1513     __ xorps(res, res); | 1513     __ xorps(res, res); | 
| 1514   } else { | 1514   } else { | 
| 1515     Register tmp = ToRegister(instr->temp()); | 1515     Register tmp = ToRegister(instr->temp()); | 
| 1516     __ Set(tmp, int_val); | 1516     __ Set(tmp, int_val); | 
| 1517     __ movq(res, tmp); | 1517     __ movq(res, tmp); | 
| 1518   } | 1518   } | 
| 1519 } | 1519 } | 
| 1520 | 1520 | 
| 1521 | 1521 | 
|  | 1522 void LCodeGen::DoConstantE(LConstantE* instr) { | 
|  | 1523   __ LoadAddress(ToRegister(instr->result()), instr->value()); | 
|  | 1524 } | 
|  | 1525 | 
|  | 1526 | 
| 1522 void LCodeGen::DoConstantT(LConstantT* instr) { | 1527 void LCodeGen::DoConstantT(LConstantT* instr) { | 
| 1523   Handle<Object> value = instr->value(); | 1528   Handle<Object> value = instr->value(); | 
| 1524   AllowDeferredHandleDereference smi_check; | 1529   AllowDeferredHandleDereference smi_check; | 
| 1525   __ LoadObject(ToRegister(instr->result()), value); | 1530   __ LoadObject(ToRegister(instr->result()), value); | 
| 1526 } | 1531 } | 
| 1527 | 1532 | 
| 1528 | 1533 | 
| 1529 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1534 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 
| 1530   Register result = ToRegister(instr->result()); | 1535   Register result = ToRegister(instr->result()); | 
| 1531   Register map = ToRegister(instr->value()); | 1536   Register map = ToRegister(instr->value()); | 
| (...skipping 4026 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5558                                FixedArray::kHeaderSize - kPointerSize)); | 5563                                FixedArray::kHeaderSize - kPointerSize)); | 
| 5559   __ bind(&done); | 5564   __ bind(&done); | 
| 5560 } | 5565 } | 
| 5561 | 5566 | 
| 5562 | 5567 | 
| 5563 #undef __ | 5568 #undef __ | 
| 5564 | 5569 | 
| 5565 } }  // namespace v8::internal | 5570 } }  // namespace v8::internal | 
| 5566 | 5571 | 
| 5567 #endif  // V8_TARGET_ARCH_X64 | 5572 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|