| 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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
| (...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1796 } | 1796 } |
| 1797 | 1797 |
| 1798 | 1798 |
| 1799 void LCodeGen::DoConstantT(LConstantT* instr) { | 1799 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 1800 Handle<Object> object = instr->value(isolate()); | 1800 Handle<Object> object = instr->value(isolate()); |
| 1801 AllowDeferredHandleDereference smi_check; | 1801 AllowDeferredHandleDereference smi_check; |
| 1802 __ Move(ToRegister(instr->result()), object); | 1802 __ Move(ToRegister(instr->result()), object); |
| 1803 } | 1803 } |
| 1804 | 1804 |
| 1805 | 1805 |
| 1806 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | |
| 1807 Register result = ToRegister(instr->result()); | |
| 1808 Register map = ToRegister(instr->value()); | |
| 1809 __ EnumLength(result, map); | |
| 1810 } | |
| 1811 | |
| 1812 | |
| 1813 MemOperand LCodeGen::BuildSeqStringOperand(Register string, | 1806 MemOperand LCodeGen::BuildSeqStringOperand(Register string, |
| 1814 LOperand* index, | 1807 LOperand* index, |
| 1815 String::Encoding encoding) { | 1808 String::Encoding encoding) { |
| 1816 if (index->IsConstantOperand()) { | 1809 if (index->IsConstantOperand()) { |
| 1817 int offset = ToInteger32(LConstantOperand::cast(index)); | 1810 int offset = ToInteger32(LConstantOperand::cast(index)); |
| 1818 if (encoding == String::TWO_BYTE_ENCODING) { | 1811 if (encoding == String::TWO_BYTE_ENCODING) { |
| 1819 offset *= kUC16Size; | 1812 offset *= kUC16Size; |
| 1820 } | 1813 } |
| 1821 STATIC_ASSERT(kCharSize == 1); | 1814 STATIC_ASSERT(kCharSize == 1); |
| 1822 return FieldMemOperand(string, SeqString::kHeaderSize + offset); | 1815 return FieldMemOperand(string, SeqString::kHeaderSize + offset); |
| (...skipping 3762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5585 __ push(ToRegister(instr->function())); | 5578 __ push(ToRegister(instr->function())); |
| 5586 CallRuntime(Runtime::kPushBlockContext, instr); | 5579 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5587 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5580 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5588 } | 5581 } |
| 5589 | 5582 |
| 5590 | 5583 |
| 5591 #undef __ | 5584 #undef __ |
| 5592 | 5585 |
| 5593 } // namespace internal | 5586 } // namespace internal |
| 5594 } // namespace v8 | 5587 } // namespace v8 |
| OLD | NEW |