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 #include "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "x64/lithium-codegen-x64.h" | 9 #include "x64/lithium-codegen-x64.h" |
10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
(...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 | 1690 |
1691 | 1691 |
1692 void LCodeGen::DoConstantE(LConstantE* instr) { | 1692 void LCodeGen::DoConstantE(LConstantE* instr) { |
1693 __ LoadAddress(ToRegister(instr->result()), instr->value()); | 1693 __ LoadAddress(ToRegister(instr->result()), instr->value()); |
1694 } | 1694 } |
1695 | 1695 |
1696 | 1696 |
1697 void LCodeGen::DoConstantT(LConstantT* instr) { | 1697 void LCodeGen::DoConstantT(LConstantT* instr) { |
1698 Handle<Object> object = instr->value(isolate()); | 1698 Handle<Object> object = instr->value(isolate()); |
1699 AllowDeferredHandleDereference smi_check; | 1699 AllowDeferredHandleDereference smi_check; |
1700 if (instr->hydrogen()->HasObjectMap()) { | |
1701 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | |
1702 ASSERT(object->IsHeapObject()); | |
1703 ASSERT(!object_map->is_stable() || | |
1704 *object_map == Handle<HeapObject>::cast(object)->map()); | |
1705 USE(object_map); | |
1706 } | |
1707 __ Move(ToRegister(instr->result()), object); | 1700 __ Move(ToRegister(instr->result()), object); |
1708 } | 1701 } |
1709 | 1702 |
1710 | 1703 |
1711 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1704 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
1712 Register result = ToRegister(instr->result()); | 1705 Register result = ToRegister(instr->result()); |
1713 Register map = ToRegister(instr->value()); | 1706 Register map = ToRegister(instr->value()); |
1714 __ EnumLength(result, map); | 1707 __ EnumLength(result, map); |
1715 } | 1708 } |
1716 | 1709 |
(...skipping 4008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5725 __ bind(deferred->exit()); | 5718 __ bind(deferred->exit()); |
5726 __ bind(&done); | 5719 __ bind(&done); |
5727 } | 5720 } |
5728 | 5721 |
5729 | 5722 |
5730 #undef __ | 5723 #undef __ |
5731 | 5724 |
5732 } } // namespace v8::internal | 5725 } } // namespace v8::internal |
5733 | 5726 |
5734 #endif // V8_TARGET_ARCH_X64 | 5727 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |