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 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 void ExternalReference::SetUp() { | 889 void ExternalReference::SetUp() { |
890 double_constants.min_int = kMinInt; | 890 double_constants.min_int = kMinInt; |
891 double_constants.one_half = 0.5; | 891 double_constants.one_half = 0.5; |
892 double_constants.minus_one_half = -0.5; | 892 double_constants.minus_one_half = -0.5; |
893 double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64); | 893 double_constants.the_hole_nan = bit_cast<double>(kHoleNanInt64); |
894 double_constants.negative_infinity = -V8_INFINITY; | 894 double_constants.negative_infinity = -V8_INFINITY; |
895 double_constants.uint32_bias = | 895 double_constants.uint32_bias = |
896 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1; | 896 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1; |
897 } | 897 } |
898 | 898 |
899 | 899 ExternalReference::ExternalReference(Address address, Isolate* isolate) |
900 ExternalReference::ExternalReference(Builtins::CFunctionId id, Isolate* isolate) | 900 : address_(Redirect(isolate, address)) {} |
901 : address_(Redirect(isolate, Builtins::c_function_address(id))) {} | |
902 | |
903 | 901 |
904 ExternalReference::ExternalReference( | 902 ExternalReference::ExternalReference( |
905 ApiFunction* fun, | 903 ApiFunction* fun, |
906 Type type = ExternalReference::BUILTIN_CALL, | 904 Type type = ExternalReference::BUILTIN_CALL, |
907 Isolate* isolate = NULL) | 905 Isolate* isolate = NULL) |
908 : address_(Redirect(isolate, fun->address(), type)) {} | 906 : address_(Redirect(isolate, fun->address(), type)) {} |
909 | 907 |
910 | 908 |
911 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) | 909 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) |
912 : address_(isolate->builtins()->builtin_address(name)) {} | 910 : address_(isolate->builtins()->builtin_address(name)) {} |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 | 1892 |
1895 | 1893 |
1896 void Assembler::DataAlign(int m) { | 1894 void Assembler::DataAlign(int m) { |
1897 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1895 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
1898 while ((pc_offset() & (m - 1)) != 0) { | 1896 while ((pc_offset() & (m - 1)) != 0) { |
1899 db(0); | 1897 db(0); |
1900 } | 1898 } |
1901 } | 1899 } |
1902 } // namespace internal | 1900 } // namespace internal |
1903 } // namespace v8 | 1901 } // namespace v8 |
OLD | NEW |