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

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

Issue 10831172: Introduced TypeFeedbackId and BailoutId types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review feedback. Created 8 years, 4 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/utils.h ('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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 // Note: The same Label can be used for forward and backward branches 1200 // Note: The same Label can be used for forward and backward branches
1201 // but it may be bound only once. 1201 // but it may be bound only once.
1202 1202
1203 void bind(Label* L); // binds an unbound label L to the current code position 1203 void bind(Label* L); // binds an unbound label L to the current code position
1204 1204
1205 // Calls 1205 // Calls
1206 // Call near relative 32-bit displacement, relative to next instruction. 1206 // Call near relative 32-bit displacement, relative to next instruction.
1207 void call(Label* L); 1207 void call(Label* L);
1208 void call(Handle<Code> target, 1208 void call(Handle<Code> target,
1209 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, 1209 RelocInfo::Mode rmode = RelocInfo::CODE_TARGET,
1210 unsigned ast_id = kNoASTId); 1210 TypeFeedbackId ast_id = TypeFeedbackId::None());
1211 1211
1212 // Calls directly to the given address using a relative offset. 1212 // Calls directly to the given address using a relative offset.
1213 // Should only ever be used in Code objects for calls within the 1213 // Should only ever be used in Code objects for calls within the
1214 // same Code object. Should not be used when generating new code (use labels), 1214 // same Code object. Should not be used when generating new code (use labels),
1215 // but only when patching existing code. 1215 // but only when patching existing code.
1216 void call(Address target); 1216 void call(Address target);
1217 1217
1218 // Call near absolute indirect, address in register 1218 // Call near absolute indirect, address in register
1219 void call(Register adr); 1219 void call(Register adr);
1220 1220
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 1451
1452 // code emission 1452 // code emission
1453 void GrowBuffer(); 1453 void GrowBuffer();
1454 1454
1455 void emit(byte x) { *pc_++ = x; } 1455 void emit(byte x) { *pc_++ = x; }
1456 inline void emitl(uint32_t x); 1456 inline void emitl(uint32_t x);
1457 inline void emitq(uint64_t x, RelocInfo::Mode rmode); 1457 inline void emitq(uint64_t x, RelocInfo::Mode rmode);
1458 inline void emitw(uint16_t x); 1458 inline void emitw(uint16_t x);
1459 inline void emit_code_target(Handle<Code> target, 1459 inline void emit_code_target(Handle<Code> target,
1460 RelocInfo::Mode rmode, 1460 RelocInfo::Mode rmode,
1461 unsigned ast_id = kNoASTId); 1461 TypeFeedbackId ast_id = TypeFeedbackId::None());
1462 void emit(Immediate x) { emitl(x.value_); } 1462 void emit(Immediate x) { emitl(x.value_); }
1463 1463
1464 // Emits a REX prefix that encodes a 64-bit operand size and 1464 // Emits a REX prefix that encodes a 64-bit operand size and
1465 // the top bit of both register codes. 1465 // the top bit of both register codes.
1466 // High bit of reg goes to REX.R, high bit of rm_reg goes to REX.B. 1466 // High bit of reg goes to REX.R, high bit of rm_reg goes to REX.B.
1467 // REX.W is set. 1467 // REX.W is set.
1468 inline void emit_rex_64(XMMRegister reg, Register rm_reg); 1468 inline void emit_rex_64(XMMRegister reg, Register rm_reg);
1469 inline void emit_rex_64(Register reg, XMMRegister rm_reg); 1469 inline void emit_rex_64(Register reg, XMMRegister rm_reg);
1470 inline void emit_rex_64(Register reg, Register rm_reg); 1470 inline void emit_rex_64(Register reg, Register rm_reg);
1471 1471
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 private: 1672 private:
1673 Assembler* assembler_; 1673 Assembler* assembler_;
1674 #ifdef DEBUG 1674 #ifdef DEBUG
1675 int space_before_; 1675 int space_before_;
1676 #endif 1676 #endif
1677 }; 1677 };
1678 1678
1679 } } // namespace v8::internal 1679 } } // namespace v8::internal
1680 1680
1681 #endif // V8_X64_ASSEMBLER_X64_H_ 1681 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/utils.h ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698