| 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 |
| 396 FIRST_REAL_RELOC_MODE = CODE_TARGET, | 401 FIRST_REAL_RELOC_MODE = CODE_TARGET, |
| 397 LAST_REAL_RELOC_MODE = VENEER_POOL, | 402 LAST_REAL_RELOC_MODE = VENEER_POOL, |
| 398 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, | 403 FIRST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, |
| 399 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, | 404 LAST_PSEUDO_RELOC_MODE = CODE_AGE_SEQUENCE, |
| 400 LAST_CODE_ENUM = DEBUG_BREAK, | 405 LAST_CODE_ENUM = DEBUG_BREAK, |
| 401 LAST_GCED_ENUM = CELL, | 406 LAST_GCED_ENUM = CELL, |
| 402 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding. | 407 // Modes <= LAST_COMPACT_ENUM are guaranteed to have compact encoding. |
| 403 LAST_COMPACT_ENUM = CODE_TARGET_WITH_ID, | 408 LAST_COMPACT_ENUM = CODE_TARGET_WITH_ID, |
| 404 LAST_STANDARD_NONCOMPACT_ENUM = INTERNAL_REFERENCE | 409 LAST_STANDARD_NONCOMPACT_ENUM = INTERNAL_REFERENCE |
| 405 }; | 410 }; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 } | 463 } |
| 459 static inline bool IsStatementPosition(Mode mode) { | 464 static inline bool IsStatementPosition(Mode mode) { |
| 460 return mode == STATEMENT_POSITION; | 465 return mode == STATEMENT_POSITION; |
| 461 } | 466 } |
| 462 static inline bool IsExternalReference(Mode mode) { | 467 static inline bool IsExternalReference(Mode mode) { |
| 463 return mode == EXTERNAL_REFERENCE; | 468 return mode == EXTERNAL_REFERENCE; |
| 464 } | 469 } |
| 465 static inline bool IsInternalReference(Mode mode) { | 470 static inline bool IsInternalReference(Mode mode) { |
| 466 return mode == INTERNAL_REFERENCE; | 471 return mode == INTERNAL_REFERENCE; |
| 467 } | 472 } |
| 473 static inline bool IsInternalReferenceEncoded(Mode mode) { |
| 474 return mode == INTERNAL_REFERENCE_ENCODED; |
| 475 } |
| 468 static inline bool IsDebugBreakSlot(Mode mode) { | 476 static inline bool IsDebugBreakSlot(Mode mode) { |
| 469 return mode == DEBUG_BREAK_SLOT; | 477 return mode == DEBUG_BREAK_SLOT; |
| 470 } | 478 } |
| 471 static inline bool IsNone(Mode mode) { | 479 static inline bool IsNone(Mode mode) { |
| 472 return mode == NONE32 || mode == NONE64; | 480 return mode == NONE32 || mode == NONE64; |
| 473 } | 481 } |
| 474 static inline bool IsCodeAgeSequence(Mode mode) { | 482 static inline bool IsCodeAgeSequence(Mode mode) { |
| 475 return mode == CODE_AGE_SEQUENCE; | 483 return mode == CODE_AGE_SEQUENCE; |
| 476 } | 484 } |
| 477 static inline int ModeMask(Mode mode) { return 1 << mode; } | 485 static inline int ModeMask(Mode mode) { return 1 << mode; } |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 NullCallWrapper() { } | 1163 NullCallWrapper() { } |
| 1156 virtual ~NullCallWrapper() { } | 1164 virtual ~NullCallWrapper() { } |
| 1157 virtual void BeforeCall(int call_size) const { } | 1165 virtual void BeforeCall(int call_size) const { } |
| 1158 virtual void AfterCall() const { } | 1166 virtual void AfterCall() const { } |
| 1159 }; | 1167 }; |
| 1160 | 1168 |
| 1161 | 1169 |
| 1162 } } // namespace v8::internal | 1170 } } // namespace v8::internal |
| 1163 | 1171 |
| 1164 #endif // V8_ASSEMBLER_H_ | 1172 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |