| 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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 void LCodeGen::DoConstantE(LConstantE* instr) { | 1688 void LCodeGen::DoConstantE(LConstantE* instr) { |
| 1689 __ LoadAddress(ToRegister(instr->result()), instr->value()); | 1689 __ LoadAddress(ToRegister(instr->result()), instr->value()); |
| 1690 } | 1690 } |
| 1691 | 1691 |
| 1692 | 1692 |
| 1693 void LCodeGen::DoConstantT(LConstantT* instr) { | 1693 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 1694 Handle<Object> object = instr->value(isolate()); | 1694 Handle<Object> object = instr->value(isolate()); |
| 1695 AllowDeferredHandleDereference smi_check; | 1695 AllowDeferredHandleDereference smi_check; |
| 1696 if (instr->hydrogen()->HasObjectMap()) { | 1696 if (instr->hydrogen()->HasObjectMap()) { |
| 1697 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); | 1697 Handle<Map> object_map = instr->hydrogen()->ObjectMap().handle(); |
| 1698 CHECK(object->IsHeapObject()); | 1698 ASSERT(object->IsHeapObject()); |
| 1699 CHECK(!object_map->is_stable() || | 1699 ASSERT(!object_map->is_stable() || |
| 1700 *object_map == Handle<HeapObject>::cast(object)->map()); | 1700 *object_map == Handle<HeapObject>::cast(object)->map()); |
| 1701 USE(object_map); |
| 1701 } | 1702 } |
| 1702 __ Move(ToRegister(instr->result()), object); | 1703 __ Move(ToRegister(instr->result()), object); |
| 1703 } | 1704 } |
| 1704 | 1705 |
| 1705 | 1706 |
| 1706 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { | 1707 void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) { |
| 1707 Register result = ToRegister(instr->result()); | 1708 Register result = ToRegister(instr->result()); |
| 1708 Register map = ToRegister(instr->value()); | 1709 Register map = ToRegister(instr->value()); |
| 1709 __ EnumLength(result, map); | 1710 __ EnumLength(result, map); |
| 1710 } | 1711 } |
| (...skipping 4000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5711 __ bind(deferred->exit()); | 5712 __ bind(deferred->exit()); |
| 5712 __ bind(&done); | 5713 __ bind(&done); |
| 5713 } | 5714 } |
| 5714 | 5715 |
| 5715 | 5716 |
| 5716 #undef __ | 5717 #undef __ |
| 5717 | 5718 |
| 5718 } } // namespace v8::internal | 5719 } } // namespace v8::internal |
| 5719 | 5720 |
| 5720 #endif // V8_TARGET_ARCH_X64 | 5721 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |