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 "codegen.h" | 9 #include "codegen.h" |
10 #include "ic-inl.h" | 10 #include "ic-inl.h" |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 // We have to see if the double version of the hole is present. If so | 768 // We have to see if the double version of the hole is present. If so |
769 // go to the runtime. | 769 // go to the runtime. |
770 uint32_t offset = FixedDoubleArray::kHeaderSize + sizeof(kHoleNanLower32); | 770 uint32_t offset = FixedDoubleArray::kHeaderSize + sizeof(kHoleNanLower32); |
771 __ cmp(FieldOperand(ebx, ecx, times_4, offset), Immediate(kHoleNanUpper32)); | 771 __ cmp(FieldOperand(ebx, ecx, times_4, offset), Immediate(kHoleNanUpper32)); |
772 __ j(not_equal, &fast_double_without_map_check); | 772 __ j(not_equal, &fast_double_without_map_check); |
773 __ JumpIfDictionaryInPrototypeChain(edx, ebx, edi, slow); | 773 __ JumpIfDictionaryInPrototypeChain(edx, ebx, edi, slow); |
774 __ mov(ebx, FieldOperand(edx, JSObject::kElementsOffset)); | 774 __ mov(ebx, FieldOperand(edx, JSObject::kElementsOffset)); |
775 | 775 |
776 __ bind(&fast_double_without_map_check); | 776 __ bind(&fast_double_without_map_check); |
777 __ StoreNumberToDoubleElements(eax, ebx, ecx, edi, xmm0, | 777 __ StoreNumberToDoubleElements(eax, ebx, ecx, edi, xmm0, |
778 &transition_double_elements, false); | 778 &transition_double_elements); |
779 if (increment_length == kIncrementLength) { | 779 if (increment_length == kIncrementLength) { |
780 // Add 1 to receiver->length. | 780 // Add 1 to receiver->length. |
781 __ add(FieldOperand(edx, JSArray::kLengthOffset), | 781 __ add(FieldOperand(edx, JSArray::kLengthOffset), |
782 Immediate(Smi::FromInt(1))); | 782 Immediate(Smi::FromInt(1))); |
783 } | 783 } |
784 __ ret(0); | 784 __ ret(0); |
785 | 785 |
786 __ bind(&transition_smi_elements); | 786 __ bind(&transition_smi_elements); |
787 __ mov(ebx, FieldOperand(edx, HeapObject::kMapOffset)); | 787 __ mov(ebx, FieldOperand(edx, HeapObject::kMapOffset)); |
788 | 788 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1277 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1278 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1278 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1279 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1279 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1280 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1280 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1281 } | 1281 } |
1282 | 1282 |
1283 | 1283 |
1284 } } // namespace v8::internal | 1284 } } // namespace v8::internal |
1285 | 1285 |
1286 #endif // V8_TARGET_ARCH_IA32 | 1286 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |