| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 // ----------------------------------------------------------------------------- | 59 // ----------------------------------------------------------------------------- |
| 60 // Common double constants. | 60 // Common double constants. |
| 61 | 61 |
| 62 class DoubleConstant: public AllStatic { | 62 class DoubleConstant: public AllStatic { |
| 63 public: | 63 public: |
| 64 static const double min_int; | 64 static const double min_int; |
| 65 static const double one_half; | 65 static const double one_half; |
| 66 static const double minus_zero; | 66 static const double minus_zero; |
| 67 static const double zero; |
| 68 static const double uint8_max_value; |
| 67 static const double negative_infinity; | 69 static const double negative_infinity; |
| 68 static const double nan; | 70 static const double nan; |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 | 73 |
| 72 // ----------------------------------------------------------------------------- | 74 // ----------------------------------------------------------------------------- |
| 73 // Labels represent pc locations; they are typically jump or call targets. | 75 // Labels represent pc locations; they are typically jump or call targets. |
| 74 // After declaration, a label can be freely used to denote known or (yet) | 76 // After declaration, a label can be freely used to denote known or (yet) |
| 75 // unknown pc location. Assembler::bind() is used to bind a label to the | 77 // unknown pc location. Assembler::bind() is used to bind a label to the |
| 76 // current pc. A label can be bound only once. | 78 // current pc. A label can be bound only once. |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 static ExternalReference handle_scope_next_address(); | 620 static ExternalReference handle_scope_next_address(); |
| 619 static ExternalReference handle_scope_limit_address(); | 621 static ExternalReference handle_scope_limit_address(); |
| 620 static ExternalReference handle_scope_level_address(); | 622 static ExternalReference handle_scope_level_address(); |
| 621 | 623 |
| 622 static ExternalReference scheduled_exception_address(Isolate* isolate); | 624 static ExternalReference scheduled_exception_address(Isolate* isolate); |
| 623 | 625 |
| 624 // Static variables containing common double constants. | 626 // Static variables containing common double constants. |
| 625 static ExternalReference address_of_min_int(); | 627 static ExternalReference address_of_min_int(); |
| 626 static ExternalReference address_of_one_half(); | 628 static ExternalReference address_of_one_half(); |
| 627 static ExternalReference address_of_minus_zero(); | 629 static ExternalReference address_of_minus_zero(); |
| 630 static ExternalReference address_of_zero(); |
| 631 static ExternalReference address_of_uint8_max_value(); |
| 628 static ExternalReference address_of_negative_infinity(); | 632 static ExternalReference address_of_negative_infinity(); |
| 629 static ExternalReference address_of_nan(); | 633 static ExternalReference address_of_nan(); |
| 630 | 634 |
| 631 static ExternalReference math_sin_double_function(Isolate* isolate); | 635 static ExternalReference math_sin_double_function(Isolate* isolate); |
| 632 static ExternalReference math_cos_double_function(Isolate* isolate); | 636 static ExternalReference math_cos_double_function(Isolate* isolate); |
| 633 static ExternalReference math_log_double_function(Isolate* isolate); | 637 static ExternalReference math_log_double_function(Isolate* isolate); |
| 634 | 638 |
| 635 Address address() const {return reinterpret_cast<Address>(address_);} | 639 Address address() const {return reinterpret_cast<Address>(address_);} |
| 636 | 640 |
| 637 #ifdef ENABLE_DEBUGGER_SUPPORT | 641 #ifdef ENABLE_DEBUGGER_SUPPORT |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 return num_bits_set; | 831 return num_bits_set; |
| 828 } | 832 } |
| 829 | 833 |
| 830 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 834 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
| 831 double power_double_int(double x, int y); | 835 double power_double_int(double x, int y); |
| 832 double power_double_double(double x, double y); | 836 double power_double_double(double x, double y); |
| 833 | 837 |
| 834 } } // namespace v8::internal | 838 } } // namespace v8::internal |
| 835 | 839 |
| 836 #endif // V8_ASSEMBLER_H_ | 840 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |