OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 emitl(imm32); | 1912 emitl(imm32); |
1913 } | 1913 } |
1914 | 1914 |
1915 | 1915 |
1916 void Assembler::pushfq() { | 1916 void Assembler::pushfq() { |
1917 EnsureSpace ensure_space(this); | 1917 EnsureSpace ensure_space(this); |
1918 emit(0x9C); | 1918 emit(0x9C); |
1919 } | 1919 } |
1920 | 1920 |
1921 | 1921 |
1922 void Assembler::rdtsc() { | |
1923 EnsureSpace ensure_space(this); | |
1924 emit(0x0F); | |
1925 emit(0x31); | |
1926 } | |
1927 | |
1928 | |
1929 void Assembler::ret(int imm16) { | 1922 void Assembler::ret(int imm16) { |
1930 EnsureSpace ensure_space(this); | 1923 EnsureSpace ensure_space(this); |
1931 ASSERT(is_uint16(imm16)); | 1924 ASSERT(is_uint16(imm16)); |
1932 if (imm16 == 0) { | 1925 if (imm16 == 0) { |
1933 emit(0xC3); | 1926 emit(0xC3); |
1934 } else { | 1927 } else { |
1935 emit(0xC2); | 1928 emit(0xC2); |
1936 emit(imm16 & 0xFF); | 1929 emit(imm16 & 0xFF); |
1937 emit((imm16 >> 8) & 0xFF); | 1930 emit((imm16 >> 8) & 0xFF); |
1938 } | 1931 } |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3110 bool RelocInfo::IsCodedSpecially() { | 3103 bool RelocInfo::IsCodedSpecially() { |
3111 // The deserializer needs to know whether a pointer is specially coded. Being | 3104 // The deserializer needs to know whether a pointer is specially coded. Being |
3112 // specially coded on x64 means that it is a relative 32 bit address, as used | 3105 // specially coded on x64 means that it is a relative 32 bit address, as used |
3113 // by branch instructions. | 3106 // by branch instructions. |
3114 return (1 << rmode_) & kApplyMask; | 3107 return (1 << rmode_) & kApplyMask; |
3115 } | 3108 } |
3116 | 3109 |
3117 } } // namespace v8::internal | 3110 } } // namespace v8::internal |
3118 | 3111 |
3119 #endif // V8_TARGET_ARCH_X64 | 3112 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |