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

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

Issue 2266003: X64: Many small tweaks and more usages of "load smi as int32". (Closed)
Patch Set: Created 10 years, 6 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
« no previous file with comments | « no previous file | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 ScaleFactor scale, 300 ScaleFactor scale,
301 int32_t disp); 301 int32_t disp);
302 302
303 // Offset from existing memory operand. 303 // Offset from existing memory operand.
304 // Offset is added to existing displacement as 32-bit signed values and 304 // Offset is added to existing displacement as 32-bit signed values and
305 // this must not overflow. 305 // this must not overflow.
306 Operand(const Operand& base, int32_t offset); 306 Operand(const Operand& base, int32_t offset);
307 307
308 private: 308 private:
309 byte rex_; 309 byte rex_;
310 byte buf_[10]; 310 byte buf_[6];
311 // The number of bytes in buf_. 311 // The number of bytes in buf_.
312 unsigned int len_; 312 unsigned int len_;
313 313
314 // Set the ModR/M byte without an encoded 'reg' register. The 314 // Set the ModR/M byte without an encoded 'reg' register. The
315 // register is encoded later as part of the emit_operand operation. 315 // register is encoded later as part of the emit_operand operation.
316 // set_modrm can be called before or after set_sib and set_disp*. 316 // set_modrm can be called before or after set_sib and set_disp*.
317 inline void set_modrm(int mod, Register rm); 317 inline void set_modrm(int mod, Register rm);
318 318
319 // Set the SIB byte if one is needed. Sets the length to 2 rather than 1. 319 // Set the SIB byte if one is needed. Sets the length to 2 rather than 1.
320 inline void set_sib(ScaleFactor scale, Register index, Register base); 320 inline void set_sib(ScaleFactor scale, Register index, Register base);
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 private: 1398 private:
1399 Assembler* assembler_; 1399 Assembler* assembler_;
1400 #ifdef DEBUG 1400 #ifdef DEBUG
1401 int space_before_; 1401 int space_before_;
1402 #endif 1402 #endif
1403 }; 1403 };
1404 1404
1405 } } // namespace v8::internal 1405 } } // namespace v8::internal
1406 1406
1407 #endif // V8_X64_ASSEMBLER_X64_H_ 1407 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698