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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 | 1661 |
1662 | 1662 |
1663 void LCodeGen::DoConstantT(LConstantT* instr) { | 1663 void LCodeGen::DoConstantT(LConstantT* instr) { |
1664 Register reg = ToRegister(instr->result()); | 1664 Register reg = ToRegister(instr->result()); |
1665 Handle<Object> object = instr->value(isolate()); | 1665 Handle<Object> object = instr->value(isolate()); |
1666 AllowDeferredHandleDereference smi_check; | 1666 AllowDeferredHandleDereference smi_check; |
1667 __ LoadObject(reg, object); | 1667 __ LoadObject(reg, object); |
1668 } | 1668 } |
1669 | 1669 |
1670 | 1670 |
1671 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | |
1672 Register result = ToRegister(instr->result()); | |
1673 Register map = ToRegister(instr->value()); | |
1674 __ EnumLength(result, map); | |
1675 } | |
1676 | |
1677 | |
1678 Operand LCodeGen::BuildSeqStringOperand(Register string, | 1671 Operand LCodeGen::BuildSeqStringOperand(Register string, |
1679 LOperand* index, | 1672 LOperand* index, |
1680 String::Encoding encoding) { | 1673 String::Encoding encoding) { |
1681 if (index->IsConstantOperand()) { | 1674 if (index->IsConstantOperand()) { |
1682 int offset = ToRepresentation(LConstantOperand::cast(index), | 1675 int offset = ToRepresentation(LConstantOperand::cast(index), |
1683 Representation::Integer32()); | 1676 Representation::Integer32()); |
1684 if (encoding == String::TWO_BYTE_ENCODING) { | 1677 if (encoding == String::TWO_BYTE_ENCODING) { |
1685 offset *= kUC16Size; | 1678 offset *= kUC16Size; |
1686 } | 1679 } |
1687 STATIC_ASSERT(kCharSize == 1); | 1680 STATIC_ASSERT(kCharSize == 1); |
(...skipping 3771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5459 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5452 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5460 } | 5453 } |
5461 | 5454 |
5462 | 5455 |
5463 #undef __ | 5456 #undef __ |
5464 | 5457 |
5465 } // namespace internal | 5458 } // namespace internal |
5466 } // namespace v8 | 5459 } // namespace v8 |
5467 | 5460 |
5468 #endif // V8_TARGET_ARCH_IA32 | 5461 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |