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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 443 |
444 #ifdef DEBUG | 444 #ifdef DEBUG |
445 // Check whether the given code contains relocation information that | 445 // Check whether the given code contains relocation information that |
446 // either is position-relative or movable by the garbage collector. | 446 // either is position-relative or movable by the garbage collector. |
447 static bool RequiresRelocation(const CodeDesc& desc); | 447 static bool RequiresRelocation(const CodeDesc& desc); |
448 #endif | 448 #endif |
449 | 449 |
450 #ifdef ENABLE_DISASSEMBLER | 450 #ifdef ENABLE_DISASSEMBLER |
451 // Printing | 451 // Printing |
452 static const char* RelocModeName(Mode rmode); | 452 static const char* RelocModeName(Mode rmode); |
453 void Print(FILE* out); | 453 void Print(Isolate* isolate, FILE* out); |
454 #endif // ENABLE_DISASSEMBLER | 454 #endif // ENABLE_DISASSEMBLER |
455 #ifdef VERIFY_HEAP | 455 #ifdef VERIFY_HEAP |
456 void Verify(); | 456 void Verify(); |
457 #endif | 457 #endif |
458 | 458 |
459 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; | 459 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; |
460 static const int kPositionMask = 1 << POSITION | 1 << STATEMENT_POSITION; | 460 static const int kPositionMask = 1 << POSITION | 1 << STATEMENT_POSITION; |
461 static const int kDataMask = | 461 static const int kDataMask = |
462 (1 << CODE_TARGET_WITH_ID) | kPositionMask | (1 << COMMENT); | 462 (1 << CODE_TARGET_WITH_ID) | kPositionMask | (1 << COMMENT); |
463 static const int kApplyMask; // Modes affected by apply. Depends on arch. | 463 static const int kApplyMask; // Modes affected by apply. Depends on arch. |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 public: | 1027 public: |
1028 NullCallWrapper() { } | 1028 NullCallWrapper() { } |
1029 virtual ~NullCallWrapper() { } | 1029 virtual ~NullCallWrapper() { } |
1030 virtual void BeforeCall(int call_size) const { } | 1030 virtual void BeforeCall(int call_size) const { } |
1031 virtual void AfterCall() const { } | 1031 virtual void AfterCall() const { } |
1032 }; | 1032 }; |
1033 | 1033 |
1034 } } // namespace v8::internal | 1034 } } // namespace v8::internal |
1035 | 1035 |
1036 #endif // V8_ASSEMBLER_H_ | 1036 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |