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

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

Issue 6880036: Merge revision 7664 (revert of 7644 and 7632) to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 8 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/full-codegen.cc ('k') | src/ia32/assembler-ia32.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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 // Note: The same Label can be used for forward and backward branches 841 // Note: The same Label can be used for forward and backward branches
842 // but it may be bound only once. 842 // but it may be bound only once.
843 843
844 void bind(Label* L); // binds an unbound label L to the current code position 844 void bind(Label* L); // binds an unbound label L to the current code position
845 void bind(NearLabel* L); 845 void bind(NearLabel* L);
846 846
847 // Calls 847 // Calls
848 void call(Label* L); 848 void call(Label* L);
849 void call(byte* entry, RelocInfo::Mode rmode); 849 void call(byte* entry, RelocInfo::Mode rmode);
850 void call(const Operand& adr); 850 void call(const Operand& adr);
851 void call(Handle<Code> code, 851 void call(Handle<Code> code, RelocInfo::Mode rmode);
852 RelocInfo::Mode rmode,
853 unsigned ast_id = kNoASTId);
854 852
855 // Jumps 853 // Jumps
856 void jmp(Label* L); // unconditional jump to L 854 void jmp(Label* L); // unconditional jump to L
857 void jmp(byte* entry, RelocInfo::Mode rmode); 855 void jmp(byte* entry, RelocInfo::Mode rmode);
858 void jmp(const Operand& adr); 856 void jmp(const Operand& adr);
859 void jmp(Handle<Code> code, RelocInfo::Mode rmode); 857 void jmp(Handle<Code> code, RelocInfo::Mode rmode);
860 858
861 // Short jump 859 // Short jump
862 void jmp(NearLabel* L); 860 void jmp(NearLabel* L);
863 861
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 return *reinterpret_cast<uint32_t*>(addr_at(pos)); 1063 return *reinterpret_cast<uint32_t*>(addr_at(pos));
1066 } 1064 }
1067 void long_at_put(int pos, uint32_t x) { 1065 void long_at_put(int pos, uint32_t x) {
1068 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x; 1066 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x;
1069 } 1067 }
1070 1068
1071 // code emission 1069 // code emission
1072 void GrowBuffer(); 1070 void GrowBuffer();
1073 inline void emit(uint32_t x); 1071 inline void emit(uint32_t x);
1074 inline void emit(Handle<Object> handle); 1072 inline void emit(Handle<Object> handle);
1075 inline void emit(uint32_t x, 1073 inline void emit(uint32_t x, RelocInfo::Mode rmode);
1076 RelocInfo::Mode rmode,
1077 unsigned ast_id = kNoASTId);
1078 inline void emit(const Immediate& x); 1074 inline void emit(const Immediate& x);
1079 inline void emit_w(const Immediate& x); 1075 inline void emit_w(const Immediate& x);
1080 1076
1081 // Emit the code-object-relative offset of the label's position 1077 // Emit the code-object-relative offset of the label's position
1082 inline void emit_code_relative_offset(Label* label); 1078 inline void emit_code_relative_offset(Label* label);
1083 1079
1084 // instruction generation 1080 // instruction generation
1085 void emit_arith_b(int op1, int op2, Register dst, int imm8); 1081 void emit_arith_b(int op1, int op2, Register dst, int imm8);
1086 1082
1087 // Emit a basic arithmetic instruction (i.e. first byte of the family is 0x81) 1083 // Emit a basic arithmetic instruction (i.e. first byte of the family is 0x81)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 private: 1150 private:
1155 Assembler* assembler_; 1151 Assembler* assembler_;
1156 #ifdef DEBUG 1152 #ifdef DEBUG
1157 int space_before_; 1153 int space_before_;
1158 #endif 1154 #endif
1159 }; 1155 };
1160 1156
1161 } } // namespace v8::internal 1157 } } // namespace v8::internal
1162 1158
1163 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1159 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698