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 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 // | 1161 // |
1162 // Note: The same Label can be used for forward and backward branches | 1162 // Note: The same Label can be used for forward and backward branches |
1163 // but it may be bound only once. | 1163 // but it may be bound only once. |
1164 | 1164 |
1165 void bind(Label* L); // binds an unbound label L to the current code position | 1165 void bind(Label* L); // binds an unbound label L to the current code position |
1166 | 1166 |
1167 // Calls | 1167 // Calls |
1168 // Call near relative 32-bit displacement, relative to next instruction. | 1168 // Call near relative 32-bit displacement, relative to next instruction. |
1169 void call(Label* L); | 1169 void call(Label* L); |
1170 void call(Handle<Code> target, | 1170 void call(Handle<Code> target, |
1171 RelocInfo::Mode rmode, | 1171 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, |
1172 unsigned ast_id = kNoASTId); | 1172 unsigned ast_id = kNoASTId); |
1173 | 1173 |
1174 // Calls directly to the given address using a relative offset. | 1174 // Calls directly to the given address using a relative offset. |
1175 // Should only ever be used in Code objects for calls within the | 1175 // Should only ever be used in Code objects for calls within the |
1176 // same Code object. Should not be used when generating new code (use labels), | 1176 // same Code object. Should not be used when generating new code (use labels), |
1177 // but only when patching existing code. | 1177 // but only when patching existing code. |
1178 void call(Address target); | 1178 void call(Address target); |
1179 | 1179 |
1180 // Call near absolute indirect, address in register | 1180 // Call near absolute indirect, address in register |
1181 void call(Register adr); | 1181 void call(Register adr); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1627 private: | 1627 private: |
1628 Assembler* assembler_; | 1628 Assembler* assembler_; |
1629 #ifdef DEBUG | 1629 #ifdef DEBUG |
1630 int space_before_; | 1630 int space_before_; |
1631 #endif | 1631 #endif |
1632 }; | 1632 }; |
1633 | 1633 |
1634 } } // namespace v8::internal | 1634 } } // namespace v8::internal |
1635 | 1635 |
1636 #endif // V8_X64_ASSEMBLER_X64_H_ | 1636 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |