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 2943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2954 GenerateConvertHashCodeToIndex(masm, scratch, mask); | 2954 GenerateConvertHashCodeToIndex(masm, scratch, mask); |
2955 | 2955 |
2956 Register index = scratch; | 2956 Register index = scratch; |
2957 Register probe = mask; | 2957 Register probe = mask; |
2958 __ movq(probe, | 2958 __ movq(probe, |
2959 FieldOperand(number_string_cache, | 2959 FieldOperand(number_string_cache, |
2960 index, | 2960 index, |
2961 times_1, | 2961 times_1, |
2962 FixedArray::kHeaderSize)); | 2962 FixedArray::kHeaderSize)); |
2963 __ JumpIfSmi(probe, not_found); | 2963 __ JumpIfSmi(probe, not_found); |
2964 ASSERT(CpuFeatures::IsSupported(SSE2)); | |
2965 CpuFeatures::Scope fscope(SSE2); | |
2966 __ movsd(xmm0, FieldOperand(object, HeapNumber::kValueOffset)); | 2964 __ movsd(xmm0, FieldOperand(object, HeapNumber::kValueOffset)); |
2967 __ movsd(xmm1, FieldOperand(probe, HeapNumber::kValueOffset)); | 2965 __ movsd(xmm1, FieldOperand(probe, HeapNumber::kValueOffset)); |
2968 __ ucomisd(xmm0, xmm1); | 2966 __ ucomisd(xmm0, xmm1); |
2969 __ j(parity_even, not_found); // Bail out if NaN is involved. | 2967 __ j(parity_even, not_found); // Bail out if NaN is involved. |
2970 __ j(not_equal, not_found); // The cache did not contain this value. | 2968 __ j(not_equal, not_found); // The cache did not contain this value. |
2971 __ jmp(&load_result_from_cache); | 2969 __ jmp(&load_result_from_cache); |
2972 } | 2970 } |
2973 | 2971 |
2974 __ bind(&is_smi); | 2972 __ bind(&is_smi); |
2975 __ SmiToInteger32(scratch, object); | 2973 __ SmiToInteger32(scratch, object); |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5125 // Do a tail call to the rewritten stub. | 5123 // Do a tail call to the rewritten stub. |
5126 __ jmp(rdi); | 5124 __ jmp(rdi); |
5127 } | 5125 } |
5128 | 5126 |
5129 | 5127 |
5130 #undef __ | 5128 #undef __ |
5131 | 5129 |
5132 } } // namespace v8::internal | 5130 } } // namespace v8::internal |
5133 | 5131 |
5134 #endif // V8_TARGET_ARCH_X64 | 5132 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |