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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "ia32/lithium-codegen-ia32.h" | 9 #include "ia32/lithium-codegen-ia32.h" |
10 #include "ic.h" | 10 #include "ic.h" |
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 | 1742 |
1743 void LCodeGen::DoConstantE(LConstantE* instr) { | 1743 void LCodeGen::DoConstantE(LConstantE* instr) { |
1744 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value())); | 1744 __ lea(ToRegister(instr->result()), Operand::StaticVariable(instr->value())); |
1745 } | 1745 } |
1746 | 1746 |
1747 | 1747 |
1748 void LCodeGen::DoConstantT(LConstantT* instr) { | 1748 void LCodeGen::DoConstantT(LConstantT* instr) { |
1749 Register reg = ToRegister(instr->result()); | 1749 Register reg = ToRegister(instr->result()); |
1750 Handle<Object> object = instr->value(isolate()); | 1750 Handle<Object> object = instr->value(isolate()); |
1751 AllowDeferredHandleDereference smi_check; | 1751 AllowDeferredHandleDereference smi_check; |
1752 if (instr->hydrogen()->HasObjectMap()) { | |
1753 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | |
1754 ASSERT(object->IsHeapObject()); | |
1755 ASSERT(!object_map->is_stable() || | |
1756 *object_map == Handle<HeapObject>::cast(object)->map()); | |
1757 USE(object_map); | |
1758 } | |
1759 __ LoadObject(reg, object); | 1752 __ LoadObject(reg, object); |
1760 } | 1753 } |
1761 | 1754 |
1762 | 1755 |
1763 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1756 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1764 Register result = ToRegister(instr->result()); | 1757 Register result = ToRegister(instr->result()); |
1765 Register map = ToRegister(instr->value()); | 1758 Register map = ToRegister(instr->value()); |
1766 __ EnumLength(result, map); | 1759 __ EnumLength(result, map); |
1767 } | 1760 } |
1768 | 1761 |
(...skipping 3919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5688 __ bind(deferred->exit()); | 5681 __ bind(deferred->exit()); |
5689 __ bind(&done); | 5682 __ bind(&done); |
5690 } | 5683 } |
5691 | 5684 |
5692 | 5685 |
5693 #undef __ | 5686 #undef __ |
5694 | 5687 |
5695 } } // namespace v8::internal | 5688 } } // namespace v8::internal |
5696 | 5689 |
5697 #endif // V8_TARGET_ARCH_IA32 | 5690 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |