| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // ----------------------------------------------------------------------------- | 46 // ----------------------------------------------------------------------------- |
| 47 // Common double constants. | 47 // Common double constants. |
| 48 | 48 |
| 49 class DoubleConstant: public AllStatic { | 49 class DoubleConstant: public AllStatic { |
| 50 public: | 50 public: |
| 51 static const double min_int; | 51 static const double min_int; |
| 52 static const double one_half; | 52 static const double one_half; |
| 53 static const double minus_zero; | 53 static const double minus_zero; |
| 54 static const double negative_infinity; | 54 static const double negative_infinity; |
| 55 static const double nan; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 | 58 |
| 58 // ----------------------------------------------------------------------------- | 59 // ----------------------------------------------------------------------------- |
| 59 // Labels represent pc locations; they are typically jump or call targets. | 60 // Labels represent pc locations; they are typically jump or call targets. |
| 60 // After declaration, a label can be freely used to denote known or (yet) | 61 // After declaration, a label can be freely used to denote known or (yet) |
| 61 // unknown pc location. Assembler::bind() is used to bind a label to the | 62 // unknown pc location. Assembler::bind() is used to bind a label to the |
| 62 // current pc. A label can be bound only once. | 63 // current pc. A label can be bound only once. |
| 63 | 64 |
| 64 class Label BASE_EMBEDDED { | 65 class Label BASE_EMBEDDED { |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 static ExternalReference handle_scope_limit_address(); | 586 static ExternalReference handle_scope_limit_address(); |
| 586 static ExternalReference handle_scope_level_address(); | 587 static ExternalReference handle_scope_level_address(); |
| 587 | 588 |
| 588 static ExternalReference scheduled_exception_address(); | 589 static ExternalReference scheduled_exception_address(); |
| 589 | 590 |
| 590 // Static variables containing common double constants. | 591 // Static variables containing common double constants. |
| 591 static ExternalReference address_of_min_int(); | 592 static ExternalReference address_of_min_int(); |
| 592 static ExternalReference address_of_one_half(); | 593 static ExternalReference address_of_one_half(); |
| 593 static ExternalReference address_of_minus_zero(); | 594 static ExternalReference address_of_minus_zero(); |
| 594 static ExternalReference address_of_negative_infinity(); | 595 static ExternalReference address_of_negative_infinity(); |
| 596 static ExternalReference address_of_nan(); |
| 595 | 597 |
| 596 static ExternalReference math_sin_double_function(); | 598 static ExternalReference math_sin_double_function(); |
| 597 static ExternalReference math_cos_double_function(); | 599 static ExternalReference math_cos_double_function(); |
| 598 static ExternalReference math_log_double_function(); | 600 static ExternalReference math_log_double_function(); |
| 599 | 601 |
| 600 Address address() const {return reinterpret_cast<Address>(address_);} | 602 Address address() const {return reinterpret_cast<Address>(address_);} |
| 601 | 603 |
| 602 #ifdef ENABLE_DEBUGGER_SUPPORT | 604 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 603 // Function Debug::Break() | 605 // Function Debug::Break() |
| 604 static ExternalReference debug_break(); | 606 static ExternalReference debug_break(); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 return num_bits_set; | 792 return num_bits_set; |
| 791 } | 793 } |
| 792 | 794 |
| 793 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 795 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
| 794 double power_double_int(double x, int y); | 796 double power_double_int(double x, int y); |
| 795 double power_double_double(double x, double y); | 797 double power_double_double(double x, double y); |
| 796 | 798 |
| 797 } } // namespace v8::internal | 799 } } // namespace v8::internal |
| 798 | 800 |
| 799 #endif // V8_ASSEMBLER_H_ | 801 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |