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 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 if (int_val == 0) { | 1500 if (int_val == 0) { |
1501 __ xorps(res, res); | 1501 __ xorps(res, res); |
1502 } else { | 1502 } else { |
1503 Register tmp = ToRegister(instr->temp()); | 1503 Register tmp = ToRegister(instr->temp()); |
1504 __ Set(tmp, int_val); | 1504 __ Set(tmp, int_val); |
1505 __ movq(res, tmp); | 1505 __ movq(res, tmp); |
1506 } | 1506 } |
1507 } | 1507 } |
1508 | 1508 |
1509 | 1509 |
| 1510 void LCodeGen::DoConstantE(LConstantE* instr) { |
| 1511 __ LoadAddress(ToRegister(instr->result()), instr->value()); |
| 1512 } |
| 1513 |
| 1514 |
1510 void LCodeGen::DoConstantT(LConstantT* instr) { | 1515 void LCodeGen::DoConstantT(LConstantT* instr) { |
1511 Handle<Object> value = instr->value(); | 1516 Handle<Object> value = instr->value(); |
1512 AllowDeferredHandleDereference smi_check; | 1517 AllowDeferredHandleDereference smi_check; |
1513 if (value->IsSmi()) { | 1518 if (value->IsSmi()) { |
1514 __ Move(ToRegister(instr->result()), value); | 1519 __ Move(ToRegister(instr->result()), value); |
1515 } else { | 1520 } else { |
1516 __ LoadHeapObject(ToRegister(instr->result()), | 1521 __ LoadHeapObject(ToRegister(instr->result()), |
1517 Handle<HeapObject>::cast(value)); | 1522 Handle<HeapObject>::cast(value)); |
1518 } | 1523 } |
1519 } | 1524 } |
(...skipping 4018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5538 FixedArray::kHeaderSize - kPointerSize)); | 5543 FixedArray::kHeaderSize - kPointerSize)); |
5539 __ bind(&done); | 5544 __ bind(&done); |
5540 } | 5545 } |
5541 | 5546 |
5542 | 5547 |
5543 #undef __ | 5548 #undef __ |
5544 | 5549 |
5545 } } // namespace v8::internal | 5550 } } // namespace v8::internal |
5546 | 5551 |
5547 #endif // V8_TARGET_ARCH_X64 | 5552 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |