| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 __ pshufd(input, input, static_cast<uint8_t>(0xe1)); // Order: 11 10 00 01 | 1113 __ pshufd(input, input, static_cast<uint8_t>(0xe1)); // Order: 11 10 00 01 |
| 1114 __ movdbl(double_scratch, Operand::StaticArray( | 1114 __ movdbl(double_scratch, Operand::StaticArray( |
| 1115 temp2, times_8, ExternalReference::math_exp_log_table())); | 1115 temp2, times_8, ExternalReference::math_exp_log_table())); |
| 1116 __ por(input, double_scratch); | 1116 __ por(input, double_scratch); |
| 1117 __ mulsd(result, input); | 1117 __ mulsd(result, input); |
| 1118 __ bind(&done); | 1118 __ bind(&done); |
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 #undef __ | 1121 #undef __ |
| 1122 | 1122 |
| 1123 static const int kNoCodeAgeSequenceLength = 5; | |
| 1124 | 1123 |
| 1125 static byte* GetNoCodeAgeSequence(uint32_t* length) { | 1124 static byte* GetNoCodeAgeSequence(uint32_t* length) { |
| 1126 static bool initialized = false; | 1125 static bool initialized = false; |
| 1127 static byte sequence[kNoCodeAgeSequenceLength]; | 1126 static byte sequence[kNoCodeAgeSequenceLength]; |
| 1128 *length = kNoCodeAgeSequenceLength; | 1127 *length = kNoCodeAgeSequenceLength; |
| 1129 if (!initialized) { | 1128 if (!initialized) { |
| 1130 // The sequence of instructions that is patched out for aging code is the | 1129 // The sequence of instructions that is patched out for aging code is the |
| 1131 // following boilerplate stack-building prologue that is found both in | 1130 // following boilerplate stack-building prologue that is found both in |
| 1132 // FUNCTION and OPTIMIZED_FUNCTION code: | 1131 // FUNCTION and OPTIMIZED_FUNCTION code: |
| 1133 CodePatcher patcher(sequence, kNoCodeAgeSequenceLength); | 1132 CodePatcher patcher(sequence, kNoCodeAgeSequenceLength); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 Code* stub = GetCodeAgeStub(isolate, age, parity); | 1177 Code* stub = GetCodeAgeStub(isolate, age, parity); |
| 1179 CodePatcher patcher(sequence, young_length); | 1178 CodePatcher patcher(sequence, young_length); |
| 1180 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); | 1179 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
| 1181 } | 1180 } |
| 1182 } | 1181 } |
| 1183 | 1182 |
| 1184 | 1183 |
| 1185 } } // namespace v8::internal | 1184 } } // namespace v8::internal |
| 1186 | 1185 |
| 1187 #endif // V8_TARGET_ARCH_IA32 | 1186 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |