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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 567 |
568 #ifdef DEBUG | 568 #ifdef DEBUG |
569 // Check whether the given code contains relocation information that | 569 // Check whether the given code contains relocation information that |
570 // either is position-relative or movable by the garbage collector. | 570 // either is position-relative or movable by the garbage collector. |
571 static bool RequiresRelocation(const CodeDesc& desc); | 571 static bool RequiresRelocation(const CodeDesc& desc); |
572 #endif | 572 #endif |
573 | 573 |
574 #ifdef ENABLE_DISASSEMBLER | 574 #ifdef ENABLE_DISASSEMBLER |
575 // Printing | 575 // Printing |
576 static const char* RelocModeName(Mode rmode); | 576 static const char* RelocModeName(Mode rmode); |
577 void Print(Isolate* isolate, FILE* out); | 577 void Print(Isolate* isolate, OStream& os); // NOLINT |
578 #endif // ENABLE_DISASSEMBLER | 578 #endif // ENABLE_DISASSEMBLER |
579 #ifdef VERIFY_HEAP | 579 #ifdef VERIFY_HEAP |
580 void Verify(Isolate* isolate); | 580 void Verify(Isolate* isolate); |
581 #endif | 581 #endif |
582 | 582 |
583 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; | 583 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; |
584 static const int kPositionMask = 1 << POSITION | 1 << STATEMENT_POSITION; | 584 static const int kPositionMask = 1 << POSITION | 1 << STATEMENT_POSITION; |
585 static const int kDataMask = | 585 static const int kDataMask = |
586 (1 << CODE_TARGET_WITH_ID) | kPositionMask | (1 << COMMENT); | 586 (1 << CODE_TARGET_WITH_ID) | kPositionMask | (1 << COMMENT); |
587 static const int kApplyMask; // Modes affected by apply. Depends on arch. | 587 static const int kApplyMask; // Modes affected by apply. Depends on arch. |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 | 1153 |
1154 private: | 1154 private: |
1155 int32_t multiplier_; | 1155 int32_t multiplier_; |
1156 int32_t shift_; | 1156 int32_t shift_; |
1157 }; | 1157 }; |
1158 | 1158 |
1159 | 1159 |
1160 } } // namespace v8::internal | 1160 } } // namespace v8::internal |
1161 | 1161 |
1162 #endif // V8_ASSEMBLER_H_ | 1162 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |