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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // or | 299 // or |
300 // pc-jump (variable length): | 300 // pc-jump (variable length): |
301 // 01 1111 11, | 301 // 01 1111 11, |
302 // [7 bits data] 0 | 302 // [7 bits data] 0 |
303 // ... | 303 // ... |
304 // [7 bits data] 1 | 304 // [7 bits data] 1 |
305 // (Bits 6..31 of pc delta, with leading zeroes | 305 // (Bits 6..31 of pc delta, with leading zeroes |
306 // dropped, and last non-zero chunk tagged with 1.) | 306 // dropped, and last non-zero chunk tagged with 1.) |
307 | 307 |
308 | 308 |
| 309 #ifdef DEBUG |
309 const int kMaxStandardNonCompactModes = 14; | 310 const int kMaxStandardNonCompactModes = 14; |
| 311 #endif |
310 | 312 |
311 const int kTagBits = 2; | 313 const int kTagBits = 2; |
312 const int kTagMask = (1 << kTagBits) - 1; | 314 const int kTagMask = (1 << kTagBits) - 1; |
313 const int kExtraTagBits = 4; | 315 const int kExtraTagBits = 4; |
314 const int kLocatableTypeTagBits = 2; | 316 const int kLocatableTypeTagBits = 2; |
315 const int kSmallDataBits = kBitsPerByte - kLocatableTypeTagBits; | 317 const int kSmallDataBits = kBitsPerByte - kLocatableTypeTagBits; |
316 | 318 |
317 const int kEmbeddedObjectTag = 0; | 319 const int kEmbeddedObjectTag = 0; |
318 const int kCodeTargetTag = 1; | 320 const int kCodeTargetTag = 1; |
319 const int kLocatableTag = 2; | 321 const int kLocatableTag = 2; |
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1659 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1658 state_.written_position = state_.current_position; | 1660 state_.written_position = state_.current_position; |
1659 written = true; | 1661 written = true; |
1660 } | 1662 } |
1661 | 1663 |
1662 // Return whether something was written. | 1664 // Return whether something was written. |
1663 return written; | 1665 return written; |
1664 } | 1666 } |
1665 | 1667 |
1666 } } // namespace v8::internal | 1668 } } // namespace v8::internal |
OLD | NEW |