OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 math_exp_log_table_array[i] = mantissa; | 930 math_exp_log_table_array[i] = mantissa; |
931 } | 931 } |
932 | 932 |
933 math_exp_data_initialized = true; | 933 math_exp_data_initialized = true; |
934 } | 934 } |
935 } | 935 } |
936 | 936 |
937 | 937 |
938 void ExternalReference::TearDownMathExpData() { | 938 void ExternalReference::TearDownMathExpData() { |
939 delete[] math_exp_constants_array; | 939 delete[] math_exp_constants_array; |
| 940 math_exp_constants_array = NULL; |
940 delete[] math_exp_log_table_array; | 941 delete[] math_exp_log_table_array; |
| 942 math_exp_log_table_array = NULL; |
941 delete math_exp_data_mutex; | 943 delete math_exp_data_mutex; |
| 944 math_exp_data_mutex = NULL; |
942 } | 945 } |
943 | 946 |
944 | 947 |
945 ExternalReference::ExternalReference(Builtins::CFunctionId id, Isolate* isolate) | 948 ExternalReference::ExternalReference(Builtins::CFunctionId id, Isolate* isolate) |
946 : address_(Redirect(isolate, Builtins::c_function_address(id))) {} | 949 : address_(Redirect(isolate, Builtins::c_function_address(id))) {} |
947 | 950 |
948 | 951 |
949 ExternalReference::ExternalReference( | 952 ExternalReference::ExternalReference( |
950 ApiFunction* fun, | 953 ApiFunction* fun, |
951 Type type = ExternalReference::BUILTIN_CALL, | 954 Type type = ExternalReference::BUILTIN_CALL, |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1596 r2 = r2 - ad; | 1599 r2 = r2 - ad; |
1597 } | 1600 } |
1598 delta = ad - r2; | 1601 delta = ad - r2; |
1599 } while (q1 < delta || (q1 == delta && r1 == 0)); | 1602 } while (q1 < delta || (q1 == delta && r1 == 0)); |
1600 int32_t mul = static_cast<int32_t>(q2 + 1); | 1603 int32_t mul = static_cast<int32_t>(q2 + 1); |
1601 multiplier_ = (d < 0) ? -mul : mul; | 1604 multiplier_ = (d < 0) ? -mul : mul; |
1602 shift_ = p - 32; | 1605 shift_ = p - 32; |
1603 } | 1606 } |
1604 | 1607 |
1605 } } // namespace v8::internal | 1608 } } // namespace v8::internal |
OLD | NEW |