| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 DEOPT_REASON, // Deoptimization reason index. | 387 DEOPT_REASON, // Deoptimization reason index. |
| 388 | 388 |
| 389 // add more as needed | 389 // add more as needed |
| 390 // Pseudo-types | 390 // Pseudo-types |
| 391 NUMBER_OF_MODES, // There are at most 15 modes with noncompact encoding. | 391 NUMBER_OF_MODES, // There are at most 15 modes with noncompact encoding. |
| 392 NONE32, // never recorded 32-bit value | 392 NONE32, // never recorded 32-bit value |
| 393 NONE64, // never recorded 64-bit value | 393 NONE64, // never recorded 64-bit value |
| 394 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by | 394 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by |
| 395 // code aging. | 395 // code aging. |
| 396 | |
| 397 // Encoded internal reference, used only on MIPS and MIPS64. | |
| 398 // Re-uses previous ARM-only encoding, to fit in RealRelocMode space. | |
| 399 INTERNAL_REFERENCE_ENCODED = CONST_POOL, | |
| 400 | |
| 401 FIRST_REAL_RELOC_MODE = CODE_TARGET, | 396 FIRST_REAL_RELOC_MODE = CODE_TARGET, |
| 402 LAST_REAL_RELOC_MODE = VENEER_POOL, | 397 LAST_REAL_RELOC_MODE = VENEER_POOL, |
| 403 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, | 398 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, |
| 404 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, | 399 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, |
| 405 LAST_CODE_ENUM = DEBUG_BREAK, | 400 LAST_CODE_ENUM = DEBUG_BREAK, |
| 406 LAST_GCED_ENUM = CELL, | 401 LAST_GCED_ENUM = CELL, |
| 407 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding. | 402 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding. |
| 408 LAST_COMPACT_ENUM = CODE_TARGET_WITH_ID, | 403 LAST_COMPACT_ENUM = CODE_TARGET_WITH_ID, |
| 409 LAST_STANDARD_NONCOMPACT_ENUM = INTERNAL_REFERENCE | 404 LAST_STANDARD_NONCOMPACT_ENUM = INTERNAL_REFERENCE |
| 410 }; | 405 }; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 } | 458 } |
| 464 static inline bool IsStatementPosition(Mode mode) { | 459 static inline bool IsStatementPosition(Mode mode) { |
| 465 return mode == STATEMENT_POSITION; | 460 return mode == STATEMENT_POSITION; |
| 466 } | 461 } |
| 467 static inline bool IsExternalReference(Mode mode) { | 462 static inline bool IsExternalReference(Mode mode) { |
| 468 return mode == EXTERNAL_REFERENCE; | 463 return mode == EXTERNAL_REFERENCE; |
| 469 } | 464 } |
| 470 static inline bool IsInternalReference(Mode mode) { | 465 static inline bool IsInternalReference(Mode mode) { |
| 471 return mode == INTERNAL_REFERENCE; | 466 return mode == INTERNAL_REFERENCE; |
| 472 } | 467 } |
| 473 static inline bool IsInternalReferenceEncoded(Mode mode) { | |
| 474 return mode == INTERNAL_REFERENCE_ENCODED; | |
| 475 } | |
| 476 static inline bool IsDebugBreakSlot(Mode mode) { | 468 static inline bool IsDebugBreakSlot(Mode mode) { |
| 477 return mode == DEBUG_BREAK_SLOT; | 469 return mode == DEBUG_BREAK_SLOT; |
| 478 } | 470 } |
| 479 static inline bool IsNone(Mode mode) { | 471 static inline bool IsNone(Mode mode) { |
| 480 return mode == NONE32 || mode == NONE64; | 472 return mode == NONE32 || mode == NONE64; |
| 481 } | 473 } |
| 482 static inline bool IsCodeAgeSequence(Mode mode) { | 474 static inline bool IsCodeAgeSequence(Mode mode) { |
| 483 return mode == CODE_AGE_SEQUENCE; | 475 return mode == CODE_AGE_SEQUENCE; |
| 484 } | 476 } |
| 485 static inline int ModeMask(Mode mode) { return 1 << mode; } | 477 static inline int ModeMask(Mode mode) { return 1 << mode; } |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 NullCallWrapper() { } | 1155 NullCallWrapper() { } |
| 1164 virtual ~NullCallWrapper() { } | 1156 virtual ~NullCallWrapper() { } |
| 1165 virtual void BeforeCall(int call_size) const { } | 1157 virtual void BeforeCall(int call_size) const { } |
| 1166 virtual void AfterCall() const { } | 1158 virtual void AfterCall() const { } |
| 1167 }; | 1159 }; |
| 1168 | 1160 |
| 1169 | 1161 |
| 1170 } } // namespace v8::internal | 1162 } } // namespace v8::internal |
| 1171 | 1163 |
| 1172 #endif // V8_ASSEMBLER_H_ | 1164 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |