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

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

Issue 6991010: Remove NearLabel, replacing remaining occurrences with Label (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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/macro-assembler-ia32.cc ('k') | src/x64/assembler-x64.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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 // Label L; // unbound label 1171 // Label L; // unbound label
1172 // j(cc, &L); // forward branch to unbound label 1172 // j(cc, &L); // forward branch to unbound label
1173 // bind(&L); // bind label to the current pc 1173 // bind(&L); // bind label to the current pc
1174 // j(cc, &L); // backward branch to bound label 1174 // j(cc, &L); // backward branch to bound label
1175 // bind(&L); // illegal: a label may be bound only once 1175 // bind(&L); // illegal: a label may be bound only once
1176 // 1176 //
1177 // Note: The same Label can be used for forward and backward branches 1177 // Note: The same Label can be used for forward and backward branches
1178 // but it may be bound only once. 1178 // but it may be bound only once.
1179 1179
1180 void bind(Label* L); // binds an unbound label L to the current code position 1180 void bind(Label* L); // binds an unbound label L to the current code position
1181 // DEPRECATED. Use bind(Label*) with jmp(Label*, Label::kNear) instead.
1182 void bind(NearLabel* L);
1183 1181
1184 // Calls 1182 // Calls
1185 // Call near relative 32-bit displacement, relative to next instruction. 1183 // Call near relative 32-bit displacement, relative to next instruction.
1186 void call(Label* L); 1184 void call(Label* L);
1187 void call(Handle<Code> target, 1185 void call(Handle<Code> target,
1188 RelocInfo::Mode rmode, 1186 RelocInfo::Mode rmode,
1189 unsigned ast_id = kNoASTId); 1187 unsigned ast_id = kNoASTId);
1190 1188
1191 // Calls directly to the given address using a relative offset. 1189 // Calls directly to the given address using a relative offset.
1192 // Should only ever be used in Code objects for calls within the 1190 // Should only ever be used in Code objects for calls within the
(...skipping 13 matching lines...) Expand all
1206 // Unconditional jump to L 1204 // Unconditional jump to L
1207 void jmp(Label* L, Label::Distance distance = Label::kFar); 1205 void jmp(Label* L, Label::Distance distance = Label::kFar);
1208 void jmp(Handle<Code> target, RelocInfo::Mode rmode); 1206 void jmp(Handle<Code> target, RelocInfo::Mode rmode);
1209 1207
1210 // Jump near absolute indirect (r64) 1208 // Jump near absolute indirect (r64)
1211 void jmp(Register adr); 1209 void jmp(Register adr);
1212 1210
1213 // Jump near absolute indirect (m64) 1211 // Jump near absolute indirect (m64)
1214 void jmp(const Operand& src); 1212 void jmp(const Operand& src);
1215 1213
1216 // Short jump
1217 // DEPRECATED. Use jmp(L, Label::kNear) instead.
1218 void jmp(NearLabel* L);
1219
1220 // Conditional jumps 1214 // Conditional jumps
1221 void j(Condition cc, 1215 void j(Condition cc,
1222 Label* L, 1216 Label* L,
1223 Hint hint, 1217 Hint hint,
1224 Label::Distance distance = Label::kFar); 1218 Label::Distance distance = Label::kFar);
1225 void j(Condition cc, Label* L, Label::Distance distance = Label::kFar) { 1219 void j(Condition cc, Label* L, Label::Distance distance = Label::kFar) {
1226 j(cc, L, no_hint, distance); 1220 j(cc, L, no_hint, distance);
1227 } 1221 }
1228 void j(Condition cc, Handle<Code> target, RelocInfo::Mode rmode); 1222 void j(Condition cc, Handle<Code> target, RelocInfo::Mode rmode);
1229 1223
1230 // Conditional short jump
1231 // DEPRECATED. Use jmp(L, Label::kNear) instead.
1232 void j(Condition cc, NearLabel* L, Hint hint = no_hint);
1233
1234 // Floating-point operations 1224 // Floating-point operations
1235 void fld(int i); 1225 void fld(int i);
1236 1226
1237 void fld1(); 1227 void fld1();
1238 void fldz(); 1228 void fldz();
1239 void fldpi(); 1229 void fldpi();
1240 void fldln2(); 1230 void fldln2();
1241 1231
1242 void fld_s(const Operand& adr); 1232 void fld_s(const Operand& adr);
1243 void fld_d(const Operand& adr); 1233 void fld_d(const Operand& adr);
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 private: 1644 private:
1655 Assembler* assembler_; 1645 Assembler* assembler_;
1656 #ifdef DEBUG 1646 #ifdef DEBUG
1657 int space_before_; 1647 int space_before_;
1658 #endif 1648 #endif
1659 }; 1649 };
1660 1650
1661 } } // namespace v8::internal 1651 } } // namespace v8::internal
1662 1652
1663 #endif // V8_X64_ASSEMBLER_X64_H_ 1653 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698