| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2959 GenerateConvertHashCodeToIndex(masm, scratch, mask); | 2959 GenerateConvertHashCodeToIndex(masm, scratch, mask); |
| 2960 | 2960 |
| 2961 Register index = scratch; | 2961 Register index = scratch; |
| 2962 Register probe = mask; | 2962 Register probe = mask; |
| 2963 __ movq(probe, | 2963 __ movq(probe, |
| 2964 FieldOperand(number_string_cache, | 2964 FieldOperand(number_string_cache, |
| 2965 index, | 2965 index, |
| 2966 times_1, | 2966 times_1, |
| 2967 FixedArray::kHeaderSize)); | 2967 FixedArray::kHeaderSize)); |
| 2968 __ JumpIfSmi(probe, not_found); | 2968 __ JumpIfSmi(probe, not_found); |
| 2969 ASSERT(CpuFeatures::IsSupported(SSE2)); | 2969 ASSERT(Isolate::Current()->cpu_features()->IsSupported(SSE2)); |
| 2970 CpuFeatures::Scope fscope(SSE2); | 2970 CpuFeatures::Scope fscope(SSE2); |
| 2971 __ movsd(xmm0, FieldOperand(object, HeapNumber::kValueOffset)); | 2971 __ movsd(xmm0, FieldOperand(object, HeapNumber::kValueOffset)); |
| 2972 __ movsd(xmm1, FieldOperand(probe, HeapNumber::kValueOffset)); | 2972 __ movsd(xmm1, FieldOperand(probe, HeapNumber::kValueOffset)); |
| 2973 __ ucomisd(xmm0, xmm1); | 2973 __ ucomisd(xmm0, xmm1); |
| 2974 __ j(parity_even, not_found); // Bail out if NaN is involved. | 2974 __ j(parity_even, not_found); // Bail out if NaN is involved. |
| 2975 __ j(not_equal, not_found); // The cache did not contain this value. | 2975 __ j(not_equal, not_found); // The cache did not contain this value. |
| 2976 __ jmp(&load_result_from_cache); | 2976 __ jmp(&load_result_from_cache); |
| 2977 } | 2977 } |
| 2978 | 2978 |
| 2979 __ bind(&is_smi); | 2979 __ bind(&is_smi); |
| (...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5130 // Do a tail call to the rewritten stub. | 5130 // Do a tail call to the rewritten stub. |
| 5131 __ jmp(rdi); | 5131 __ jmp(rdi); |
| 5132 } | 5132 } |
| 5133 | 5133 |
| 5134 | 5134 |
| 5135 #undef __ | 5135 #undef __ |
| 5136 | 5136 |
| 5137 } } // namespace v8::internal | 5137 } } // namespace v8::internal |
| 5138 | 5138 |
| 5139 #endif // V8_TARGET_ARCH_X64 | 5139 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |