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 explicit AssemblerBase(Isolate* isolate); | 60 explicit AssemblerBase(Isolate* isolate); |
61 | 61 |
62 Isolate* isolate() const { return isolate_; } | 62 Isolate* isolate() const { return isolate_; } |
63 int jit_cookie() { return jit_cookie_; } | 63 int jit_cookie() { return jit_cookie_; } |
64 | 64 |
65 private: | 65 private: |
66 Isolate* isolate_; | 66 Isolate* isolate_; |
67 int jit_cookie_; | 67 int jit_cookie_; |
68 }; | 68 }; |
69 | 69 |
| 70 // ----------------------------------------------------------------------------- |
| 71 // Common double constants. |
| 72 |
| 73 class DoubleConstant: public AllStatic { |
| 74 public: |
| 75 static const double min_int; |
| 76 static const double one_half; |
| 77 static const double minus_zero; |
| 78 static const double zero; |
| 79 static const double uint8_max_value; |
| 80 static const double negative_infinity; |
| 81 static const double canonical_non_hole_nan; |
| 82 static const double the_hole_nan; |
| 83 }; |
| 84 |
70 | 85 |
71 // ----------------------------------------------------------------------------- | 86 // ----------------------------------------------------------------------------- |
72 // Labels represent pc locations; they are typically jump or call targets. | 87 // Labels represent pc locations; they are typically jump or call targets. |
73 // After declaration, a label can be freely used to denote known or (yet) | 88 // After declaration, a label can be freely used to denote known or (yet) |
74 // unknown pc location. Assembler::bind() is used to bind a label to the | 89 // unknown pc location. Assembler::bind() is used to bind a label to the |
75 // current pc. A label can be bound only once. | 90 // current pc. A label can be bound only once. |
76 | 91 |
77 class Label BASE_EMBEDDED { | 92 class Label BASE_EMBEDDED { |
78 public: | 93 public: |
79 enum Distance { | 94 enum Distance { |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 public: | 885 public: |
871 NullCallWrapper() { } | 886 NullCallWrapper() { } |
872 virtual ~NullCallWrapper() { } | 887 virtual ~NullCallWrapper() { } |
873 virtual void BeforeCall(int call_size) const { } | 888 virtual void BeforeCall(int call_size) const { } |
874 virtual void AfterCall() const { } | 889 virtual void AfterCall() const { } |
875 }; | 890 }; |
876 | 891 |
877 } } // namespace v8::internal | 892 } } // namespace v8::internal |
878 | 893 |
879 #endif // V8_ASSEMBLER_H_ | 894 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |