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

Side by Side Diff: src/x64/assembler-x64.h

Issue 126193: Remove the unused support for jump-table switch statements. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/ia32/codegen-ia32.cc ('k') | no next file » | 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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 void WriteRecordedPositions(); 805 void WriteRecordedPositions();
806 806
807 // Writes a doubleword of data in the code stream. 807 // Writes a doubleword of data in the code stream.
808 // Used for inline tables, e.g., jump-tables. 808 // Used for inline tables, e.g., jump-tables.
809 // void dd(uint32_t data); 809 // void dd(uint32_t data);
810 810
811 // Writes a quadword of data in the code stream. 811 // Writes a quadword of data in the code stream.
812 // Used for inline tables, e.g., jump-tables. 812 // Used for inline tables, e.g., jump-tables.
813 // void dd(uint64_t data, RelocInfo::Mode reloc_info); 813 // void dd(uint64_t data, RelocInfo::Mode reloc_info);
814 814
815 // Writes the absolute address of a bound label at the given position in
816 // the generated code. That positions should have the relocation mode
817 // internal_reference!
818 void WriteInternalReference(int position, const Label& bound_label);
819
820 int pc_offset() const { return pc_ - buffer_; } 815 int pc_offset() const { return pc_ - buffer_; }
821 int current_statement_position() const { return current_statement_position_; } 816 int current_statement_position() const { return current_statement_position_; }
822 int current_position() const { return current_position_; } 817 int current_position() const { return current_position_; }
823 818
824 // Check if there is less than kGap bytes available in the buffer. 819 // Check if there is less than kGap bytes available in the buffer.
825 // If this is the case, we need to grow the buffer before emitting 820 // If this is the case, we need to grow the buffer before emitting
826 // an instruction or relocation information. 821 // an instruction or relocation information.
827 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } 822 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; }
828 823
829 // Get the number of bytes available in the buffer. 824 // Get the number of bytes available in the buffer.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 private: 1030 private:
1036 Assembler* assembler_; 1031 Assembler* assembler_;
1037 #ifdef DEBUG 1032 #ifdef DEBUG
1038 int space_before_; 1033 int space_before_;
1039 #endif 1034 #endif
1040 }; 1035 };
1041 1036
1042 } } // namespace v8::internal 1037 } } // namespace v8::internal
1043 1038
1044 #endif // V8_X64_ASSEMBLER_X64_H_ 1039 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698