| 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 void ExternalReference::SetUp() { | 919 void ExternalReference::SetUp() { |
| 920 double_constants.min_int = kMinInt; | 920 double_constants.min_int = kMinInt; |
| 921 double_constants.one_half = 0.5; | 921 double_constants.one_half = 0.5; |
| 922 double_constants.minus_one_half = -0.5; | 922 double_constants.minus_one_half = -0.5; |
| 923 double_constants.the_hole_nan = kHoleNanInt64; | 923 double_constants.the_hole_nan = kHoleNanInt64; |
| 924 double_constants.negative_infinity = -V8_INFINITY; | 924 double_constants.negative_infinity = -V8_INFINITY; |
| 925 double_constants.uint32_bias = | 925 double_constants.uint32_bias = |
| 926 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1; | 926 static_cast<double>(static_cast<uint32_t>(0xFFFFFFFF)) + 1; |
| 927 } | 927 } |
| 928 | 928 |
| 929 ExternalReference::ExternalReference(Address address, Isolate* isolate) | 929 ExternalReference::ExternalReference(Address address, Isolate* isolate, |
| 930 : address_(Redirect(isolate, address)) {} | 930 Type type) |
| 931 : address_(Redirect(isolate, address, type)) {} |
| 931 | 932 |
| 932 ExternalReference::ExternalReference( | 933 ExternalReference::ExternalReference( |
| 933 ApiFunction* fun, | 934 ApiFunction* fun, |
| 934 Type type = ExternalReference::BUILTIN_CALL, | 935 Type type = ExternalReference::BUILTIN_CALL, |
| 935 Isolate* isolate = NULL) | 936 Isolate* isolate = NULL) |
| 936 : address_(Redirect(isolate, fun->address(), type)) {} | 937 : address_(Redirect(isolate, fun->address(), type)) {} |
| 937 | 938 |
| 938 | 939 |
| 939 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) | 940 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) |
| 940 : address_(isolate->builtins()->builtin_address(name)) {} | 941 : address_(isolate->builtins()->builtin_address(name)) {} |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 | 1925 |
| 1925 | 1926 |
| 1926 void Assembler::DataAlign(int m) { | 1927 void Assembler::DataAlign(int m) { |
| 1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1928 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 1928 while ((pc_offset() & (m - 1)) != 0) { | 1929 while ((pc_offset() & (m - 1)) != 0) { |
| 1929 db(0); | 1930 db(0); |
| 1930 } | 1931 } |
| 1931 } | 1932 } |
| 1932 } // namespace internal | 1933 } // namespace internal |
| 1933 } // namespace v8 | 1934 } // namespace v8 |
| OLD | NEW |