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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3168 times_pointer_size, | 3168 times_pointer_size, |
3169 FixedArray::kHeaderSize)); | 3169 FixedArray::kHeaderSize)); |
3170 __ RecordWrite(elements, key, value); | 3170 __ RecordWrite(elements, key, value); |
3171 } | 3171 } |
3172 } | 3172 } |
3173 | 3173 |
3174 | 3174 |
3175 void LCodeGen::DoStoreKeyedFastDoubleElement( | 3175 void LCodeGen::DoStoreKeyedFastDoubleElement( |
3176 LStoreKeyedFastDoubleElement* instr) { | 3176 LStoreKeyedFastDoubleElement* instr) { |
3177 XMMRegister value = ToDoubleRegister(instr->value()); | 3177 XMMRegister value = ToDoubleRegister(instr->value()); |
3178 Register key = instr->key()->IsRegister() ? ToRegister(instr->key()) : no_reg; | |
3179 Label have_value; | 3178 Label have_value; |
3180 | 3179 |
3181 __ ucomisd(value, value); | 3180 __ ucomisd(value, value); |
3182 __ j(parity_odd, &have_value); // NaN. | 3181 __ j(parity_odd, &have_value); // NaN. |
3183 | 3182 |
3184 ExternalReference canonical_nan_reference = | 3183 ExternalReference canonical_nan_reference = |
3185 ExternalReference::address_of_canonical_non_hole_nan(); | 3184 ExternalReference::address_of_canonical_non_hole_nan(); |
3186 __ movdbl(value, Operand::StaticVariable(canonical_nan_reference)); | 3185 __ movdbl(value, Operand::StaticVariable(canonical_nan_reference)); |
3187 __ bind(&have_value); | 3186 __ bind(&have_value); |
3188 | 3187 |
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4378 env->deoptimization_index()); | 4377 env->deoptimization_index()); |
4379 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4378 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
4380 } | 4379 } |
4381 | 4380 |
4382 | 4381 |
4383 #undef __ | 4382 #undef __ |
4384 | 4383 |
4385 } } // namespace v8::internal | 4384 } } // namespace v8::internal |
4386 | 4385 |
4387 #endif // V8_TARGET_ARCH_IA32 | 4386 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |