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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // location of a stack frame as close as possible. The "statement position" is | 164 // location of a stack frame as close as possible. The "statement position" is |
165 // collected at the beginning at each statement, and is used to indicate | 165 // collected at the beginning at each statement, and is used to indicate |
166 // possible break locations. kNoPosition is used to indicate an | 166 // possible break locations. kNoPosition is used to indicate an |
167 // invalid/uninitialized position value. | 167 // invalid/uninitialized position value. |
168 static const int kNoPosition = -1; | 168 static const int kNoPosition = -1; |
169 | 169 |
170 // This string is used to add padding comments to the reloc info in cases | 170 // This string is used to add padding comments to the reloc info in cases |
171 // where we are not sure to have enough space for patching in during | 171 // where we are not sure to have enough space for patching in during |
172 // lazy deoptimization. This is the case if we have indirect calls for which | 172 // lazy deoptimization. This is the case if we have indirect calls for which |
173 // we do not normally record relocation info. | 173 // we do not normally record relocation info. |
174 static const char* kFillerCommentString; | 174 static const char* const kFillerCommentString; |
175 | 175 |
176 // The minimum size of a comment is equal to three bytes for the extra tagged | 176 // The minimum size of a comment is equal to three bytes for the extra tagged |
177 // pc + the tag for the data, and kPointerSize for the actual pointer to the | 177 // pc + the tag for the data, and kPointerSize for the actual pointer to the |
178 // comment. | 178 // comment. |
179 static const int kMinRelocCommentSize = 3 + kPointerSize; | 179 static const int kMinRelocCommentSize = 3 + kPointerSize; |
180 | 180 |
181 // The maximum size for a call instruction including pc-jump. | 181 // The maximum size for a call instruction including pc-jump. |
182 static const int kMaxCallSize = 6; | 182 static const int kMaxCallSize = 6; |
183 | 183 |
184 // The maximum pc delta that will use the short encoding. | 184 // The maximum pc delta that will use the short encoding. |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 public: | 855 public: |
856 NullCallWrapper() { } | 856 NullCallWrapper() { } |
857 virtual ~NullCallWrapper() { } | 857 virtual ~NullCallWrapper() { } |
858 virtual void BeforeCall(int call_size) const { } | 858 virtual void BeforeCall(int call_size) const { } |
859 virtual void AfterCall() const { } | 859 virtual void AfterCall() const { } |
860 }; | 860 }; |
861 | 861 |
862 } } // namespace v8::internal | 862 } } // namespace v8::internal |
863 | 863 |
864 #endif // V8_ASSEMBLER_H_ | 864 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |