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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 static ExternalReference handle_scope_limit_address(); | 584 static ExternalReference handle_scope_limit_address(); |
584 static ExternalReference handle_scope_level_address(); | 585 static ExternalReference handle_scope_level_address(); |
585 | 586 |
586 static ExternalReference scheduled_exception_address(); | 587 static ExternalReference scheduled_exception_address(); |
587 | 588 |
588 // Static variables containing common double constants. | 589 // Static variables containing common double constants. |
589 static ExternalReference address_of_min_int(); | 590 static ExternalReference address_of_min_int(); |
590 static ExternalReference address_of_one_half(); | 591 static ExternalReference address_of_one_half(); |
591 static ExternalReference address_of_minus_zero(); | 592 static ExternalReference address_of_minus_zero(); |
592 static ExternalReference address_of_negative_infinity(); | 593 static ExternalReference address_of_negative_infinity(); |
| 594 static ExternalReference address_of_nan(); |
593 | 595 |
594 static ExternalReference math_sin_double_function(); | 596 static ExternalReference math_sin_double_function(); |
595 static ExternalReference math_cos_double_function(); | 597 static ExternalReference math_cos_double_function(); |
596 static ExternalReference math_log_double_function(); | 598 static ExternalReference math_log_double_function(); |
597 | 599 |
598 Address address() const {return reinterpret_cast<Address>(address_);} | 600 Address address() const {return reinterpret_cast<Address>(address_);} |
599 | 601 |
600 #ifdef ENABLE_DEBUGGER_SUPPORT | 602 #ifdef ENABLE_DEBUGGER_SUPPORT |
601 // Function Debug::Break() | 603 // Function Debug::Break() |
602 static ExternalReference debug_break(); | 604 static ExternalReference debug_break(); |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 return num_bits_set; | 784 return num_bits_set; |
783 } | 785 } |
784 | 786 |
785 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 787 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
786 double power_double_int(double x, int y); | 788 double power_double_int(double x, int y); |
787 double power_double_double(double x, double y); | 789 double power_double_double(double x, double y); |
788 | 790 |
789 } } // namespace v8::internal | 791 } } // namespace v8::internal |
790 | 792 |
791 #endif // V8_ASSEMBLER_H_ | 793 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |