| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 6 | 6 |
| 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 | 1655 |
| 1656 void LCodeGen::DoConstantT(LConstantT* instr) { | 1656 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 1657 Handle<Object> object = instr->value(isolate()); | 1657 Handle<Object> object = instr->value(isolate()); |
| 1658 AllowDeferredHandleDereference smi_check; | 1658 AllowDeferredHandleDereference smi_check; |
| 1659 __ Move(ToRegister(instr->result()), object); | 1659 __ Move(ToRegister(instr->result()), object); |
| 1660 } | 1660 } |
| 1661 | 1661 |
| 1662 | 1662 |
| 1663 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | |
| 1664 Register result = ToRegister(instr->result()); | |
| 1665 Register map = ToRegister(instr->value()); | |
| 1666 __ EnumLength(result, map); | |
| 1667 } | |
| 1668 | |
| 1669 | |
| 1670 Operand LCodeGen::BuildSeqStringOperand(Register string, | 1663 Operand LCodeGen::BuildSeqStringOperand(Register string, |
| 1671 LOperand* index, | 1664 LOperand* index, |
| 1672 String::Encoding encoding) { | 1665 String::Encoding encoding) { |
| 1673 if (index->IsConstantOperand()) { | 1666 if (index->IsConstantOperand()) { |
| 1674 int offset = ToInteger32(LConstantOperand::cast(index)); | 1667 int offset = ToInteger32(LConstantOperand::cast(index)); |
| 1675 if (encoding == String::TWO_BYTE_ENCODING) { | 1668 if (encoding == String::TWO_BYTE_ENCODING) { |
| 1676 offset *= kUC16Size; | 1669 offset *= kUC16Size; |
| 1677 } | 1670 } |
| 1678 STATIC_ASSERT(kCharSize == 1); | 1671 STATIC_ASSERT(kCharSize == 1); |
| 1679 return FieldOperand(string, SeqString::kHeaderSize + offset); | 1672 return FieldOperand(string, SeqString::kHeaderSize + offset); |
| (...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5649 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5642 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5650 } | 5643 } |
| 5651 | 5644 |
| 5652 | 5645 |
| 5653 #undef __ | 5646 #undef __ |
| 5654 | 5647 |
| 5655 } // namespace internal | 5648 } // namespace internal |
| 5656 } // namespace v8 | 5649 } // namespace v8 |
| 5657 | 5650 |
| 5658 #endif // V8_TARGET_ARCH_X64 | 5651 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |