Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: src/assembler.h

Issue 363323003: More OStreamsUse OStreams more often. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and polished. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698