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