OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1740 } | 1740 } |
1741 | 1741 |
1742 | 1742 |
1743 void LCodeGen::DoConstantT(LConstantT* instr) { | 1743 void LCodeGen::DoConstantT(LConstantT* instr) { |
1744 Handle<Object> object = instr->value(isolate()); | 1744 Handle<Object> object = instr->value(isolate()); |
1745 AllowDeferredHandleDereference smi_check; | 1745 AllowDeferredHandleDereference smi_check; |
1746 __ li(ToRegister(instr->result()), object); | 1746 __ li(ToRegister(instr->result()), object); |
1747 } | 1747 } |
1748 | 1748 |
1749 | 1749 |
1750 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | |
1751 Register result = ToRegister(instr->result()); | |
1752 Register map = ToRegister(instr->value()); | |
1753 __ EnumLength(result, map); | |
1754 } | |
1755 | |
1756 | |
1757 MemOperand LCodeGen::BuildSeqStringOperand(Register string, | 1750 MemOperand LCodeGen::BuildSeqStringOperand(Register string, |
1758 LOperand* index, | 1751 LOperand* index, |
1759 String::Encoding encoding) { | 1752 String::Encoding encoding) { |
1760 if (index->IsConstantOperand()) { | 1753 if (index->IsConstantOperand()) { |
1761 int offset = ToInteger32(LConstantOperand::cast(index)); | 1754 int offset = ToInteger32(LConstantOperand::cast(index)); |
1762 if (encoding == String::TWO_BYTE_ENCODING) { | 1755 if (encoding == String::TWO_BYTE_ENCODING) { |
1763 offset *= kUC16Size; | 1756 offset *= kUC16Size; |
1764 } | 1757 } |
1765 STATIC_ASSERT(kCharSize == 1); | 1758 STATIC_ASSERT(kCharSize == 1); |
1766 return FieldMemOperand(string, SeqString::kHeaderSize + offset); | 1759 return FieldMemOperand(string, SeqString::kHeaderSize + offset); |
(...skipping 4042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5809 __ Push(at, ToRegister(instr->function())); | 5802 __ Push(at, ToRegister(instr->function())); |
5810 CallRuntime(Runtime::kPushBlockContext, instr); | 5803 CallRuntime(Runtime::kPushBlockContext, instr); |
5811 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5804 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5812 } | 5805 } |
5813 | 5806 |
5814 | 5807 |
5815 #undef __ | 5808 #undef __ |
5816 | 5809 |
5817 } // namespace internal | 5810 } // namespace internal |
5818 } // namespace v8 | 5811 } // namespace v8 |
OLD | NEW |