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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 }; | 60 }; |
61 | 61 |
62 // ----------------------------------------------------------------------------- | 62 // ----------------------------------------------------------------------------- |
63 // Common double constants. | 63 // Common double constants. |
64 | 64 |
65 class DoubleConstant: public AllStatic { | 65 class DoubleConstant: public AllStatic { |
66 public: | 66 public: |
67 static const double min_int; | 67 static const double min_int; |
68 static const double one_half; | 68 static const double one_half; |
69 static const double minus_zero; | 69 static const double minus_zero; |
| 70 static const double zero; |
| 71 static const double uint8_max_value; |
70 static const double negative_infinity; | 72 static const double negative_infinity; |
71 static const double nan; | 73 static const double nan; |
72 }; | 74 }; |
73 | 75 |
74 | 76 |
75 // ----------------------------------------------------------------------------- | 77 // ----------------------------------------------------------------------------- |
76 // Labels represent pc locations; they are typically jump or call targets. | 78 // Labels represent pc locations; they are typically jump or call targets. |
77 // After declaration, a label can be freely used to denote known or (yet) | 79 // After declaration, a label can be freely used to denote known or (yet) |
78 // unknown pc location. Assembler::bind() is used to bind a label to the | 80 // unknown pc location. Assembler::bind() is used to bind a label to the |
79 // current pc. A label can be bound only once. | 81 // current pc. A label can be bound only once. |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 static ExternalReference handle_scope_next_address(); | 602 static ExternalReference handle_scope_next_address(); |
601 static ExternalReference handle_scope_limit_address(); | 603 static ExternalReference handle_scope_limit_address(); |
602 static ExternalReference handle_scope_level_address(); | 604 static ExternalReference handle_scope_level_address(); |
603 | 605 |
604 static ExternalReference scheduled_exception_address(Isolate* isolate); | 606 static ExternalReference scheduled_exception_address(Isolate* isolate); |
605 | 607 |
606 // Static variables containing common double constants. | 608 // Static variables containing common double constants. |
607 static ExternalReference address_of_min_int(); | 609 static ExternalReference address_of_min_int(); |
608 static ExternalReference address_of_one_half(); | 610 static ExternalReference address_of_one_half(); |
609 static ExternalReference address_of_minus_zero(); | 611 static ExternalReference address_of_minus_zero(); |
| 612 static ExternalReference address_of_zero(); |
| 613 static ExternalReference address_of_uint8_max_value(); |
610 static ExternalReference address_of_negative_infinity(); | 614 static ExternalReference address_of_negative_infinity(); |
611 static ExternalReference address_of_nan(); | 615 static ExternalReference address_of_nan(); |
612 | 616 |
613 static ExternalReference math_sin_double_function(Isolate* isolate); | 617 static ExternalReference math_sin_double_function(Isolate* isolate); |
614 static ExternalReference math_cos_double_function(Isolate* isolate); | 618 static ExternalReference math_cos_double_function(Isolate* isolate); |
615 static ExternalReference math_log_double_function(Isolate* isolate); | 619 static ExternalReference math_log_double_function(Isolate* isolate); |
616 | 620 |
617 Address address() const {return reinterpret_cast<Address>(address_);} | 621 Address address() const {return reinterpret_cast<Address>(address_);} |
618 | 622 |
619 #ifdef ENABLE_DEBUGGER_SUPPORT | 623 #ifdef ENABLE_DEBUGGER_SUPPORT |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 public: | 836 public: |
833 NullCallWrapper() { } | 837 NullCallWrapper() { } |
834 virtual ~NullCallWrapper() { } | 838 virtual ~NullCallWrapper() { } |
835 virtual void BeforeCall(int call_size) const { } | 839 virtual void BeforeCall(int call_size) const { } |
836 virtual void AfterCall() const { } | 840 virtual void AfterCall() const { } |
837 }; | 841 }; |
838 | 842 |
839 } } // namespace v8::internal | 843 } } // namespace v8::internal |
840 | 844 |
841 #endif // V8_ASSEMBLER_H_ | 845 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |