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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 409 |
410 // Continuation points for a generator yield. | 410 // Continuation points for a generator yield. |
411 GENERATOR_CONTINUATION, | 411 GENERATOR_CONTINUATION, |
412 | 412 |
413 // Marks constant and veneer pools. Only used on ARM and ARM64. | 413 // Marks constant and veneer pools. Only used on ARM and ARM64. |
414 // They use a custom noncompact encoding. | 414 // They use a custom noncompact encoding. |
415 CONST_POOL, | 415 CONST_POOL, |
416 VENEER_POOL, | 416 VENEER_POOL, |
417 | 417 |
418 DEOPT_REASON, // Deoptimization reason index. | 418 DEOPT_REASON, // Deoptimization reason index. |
| 419 DEOPT_ID, // Deoptimization inlining id. |
419 | 420 |
420 // This is not an actual reloc mode, but used to encode a long pc jump that | 421 // This is not an actual reloc mode, but used to encode a long pc jump that |
421 // cannot be encoded as part of another record. | 422 // cannot be encoded as part of another record. |
422 PC_JUMP, | 423 PC_JUMP, |
423 | 424 |
424 // Pseudo-types | 425 // Pseudo-types |
425 NUMBER_OF_MODES, | 426 NUMBER_OF_MODES, |
426 NONE32, // never recorded 32-bit value | 427 NONE32, // never recorded 32-bit value |
427 NONE64, // never recorded 64-bit value | 428 NONE64, // never recorded 64-bit value |
428 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by | 429 CODE_AGE_SEQUENCE, // Not stored in RelocInfo array, used explictly by |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 } | 470 } |
470 static inline bool IsConstPool(Mode mode) { | 471 static inline bool IsConstPool(Mode mode) { |
471 return mode == CONST_POOL; | 472 return mode == CONST_POOL; |
472 } | 473 } |
473 static inline bool IsVeneerPool(Mode mode) { | 474 static inline bool IsVeneerPool(Mode mode) { |
474 return mode == VENEER_POOL; | 475 return mode == VENEER_POOL; |
475 } | 476 } |
476 static inline bool IsDeoptReason(Mode mode) { | 477 static inline bool IsDeoptReason(Mode mode) { |
477 return mode == DEOPT_REASON; | 478 return mode == DEOPT_REASON; |
478 } | 479 } |
| 480 static inline bool IsDeoptId(Mode mode) { |
| 481 return mode == DEOPT_ID; |
| 482 } |
479 static inline bool IsPosition(Mode mode) { | 483 static inline bool IsPosition(Mode mode) { |
480 return mode == POSITION || mode == STATEMENT_POSITION; | 484 return mode == POSITION || mode == STATEMENT_POSITION; |
481 } | 485 } |
482 static inline bool IsStatementPosition(Mode mode) { | 486 static inline bool IsStatementPosition(Mode mode) { |
483 return mode == STATEMENT_POSITION; | 487 return mode == STATEMENT_POSITION; |
484 } | 488 } |
485 static inline bool IsExternalReference(Mode mode) { | 489 static inline bool IsExternalReference(Mode mode) { |
486 return mode == EXTERNAL_REFERENCE; | 490 return mode == EXTERNAL_REFERENCE; |
487 } | 491 } |
488 static inline bool IsInternalReference(Mode mode) { | 492 static inline bool IsInternalReference(Mode mode) { |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1332 std::vector<ConstantPoolEntry> shared_entries; | 1336 std::vector<ConstantPoolEntry> shared_entries; |
1333 }; | 1337 }; |
1334 | 1338 |
1335 Label emitted_label_; // Records pc_offset of emitted pool | 1339 Label emitted_label_; // Records pc_offset of emitted pool |
1336 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1340 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
1337 }; | 1341 }; |
1338 | 1342 |
1339 } // namespace internal | 1343 } // namespace internal |
1340 } // namespace v8 | 1344 } // namespace v8 |
1341 #endif // V8_ASSEMBLER_H_ | 1345 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |