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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 } | 1416 } |
1417 void long_at_put(int pos, uint32_t x) { | 1417 void long_at_put(int pos, uint32_t x) { |
1418 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x; | 1418 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x; |
1419 } | 1419 } |
1420 | 1420 |
1421 // code emission | 1421 // code emission |
1422 void GrowBuffer(); | 1422 void GrowBuffer(); |
1423 | 1423 |
1424 void emit(byte x) { *pc_++ = x; } | 1424 void emit(byte x) { *pc_++ = x; } |
1425 inline void emitl(uint32_t x); | 1425 inline void emitl(uint32_t x); |
| 1426 inline void emitp(void* x, RelocInfo::Mode rmode); |
1426 inline void emitq(uint64_t x, RelocInfo::Mode rmode); | 1427 inline void emitq(uint64_t x, RelocInfo::Mode rmode); |
1427 inline void emitw(uint16_t x); | 1428 inline void emitw(uint16_t x); |
1428 inline void emit_code_target(Handle<Code> target, | 1429 inline void emit_code_target(Handle<Code> target, |
1429 RelocInfo::Mode rmode, | 1430 RelocInfo::Mode rmode, |
1430 TypeFeedbackId ast_id = TypeFeedbackId::None()); | 1431 TypeFeedbackId ast_id = TypeFeedbackId::None()); |
1431 inline void emit_runtime_entry(Address entry, RelocInfo::Mode rmode); | 1432 inline void emit_runtime_entry(Address entry, RelocInfo::Mode rmode); |
1432 void emit(Immediate x) { emitl(x.value_); } | 1433 void emit(Immediate x) { emitl(x.value_); } |
1433 | 1434 |
1434 // Emits a REX prefix that encodes a 64-bit operand size and | 1435 // Emits a REX prefix that encodes a 64-bit operand size and |
1435 // the top bit of both register codes. | 1436 // the top bit of both register codes. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 private: | 1631 private: |
1631 Assembler* assembler_; | 1632 Assembler* assembler_; |
1632 #ifdef DEBUG | 1633 #ifdef DEBUG |
1633 int space_before_; | 1634 int space_before_; |
1634 #endif | 1635 #endif |
1635 }; | 1636 }; |
1636 | 1637 |
1637 } } // namespace v8::internal | 1638 } } // namespace v8::internal |
1638 | 1639 |
1639 #endif // V8_X64_ASSEMBLER_X64_H_ | 1640 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |