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

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

Issue 126045: X64: Remove restriction on using r12 as index register. (Closed)
Patch Set: Created 11 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/assembler-x64-inl.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 set_modrm(2, base); 89 set_modrm(2, base);
90 set_disp32(disp); 90 set_disp32(disp);
91 } 91 }
92 } 92 }
93 93
94 94
95 Operand::Operand(Register base, 95 Operand::Operand(Register base,
96 Register index, 96 Register index,
97 ScaleFactor scale, 97 ScaleFactor scale,
98 int32_t disp): rex_(0) { 98 int32_t disp): rex_(0) {
99 ASSERT(!index.is(rsp) && !index.is(r12)); 99 ASSERT(!index.is(rsp));
100 len_ = 1; 100 len_ = 1;
101 set_sib(scale, index, base); 101 set_sib(scale, index, base);
102 if (disp == 0 && !base.is(rbp) && !base.is(r13)) { 102 if (disp == 0 && !base.is(rbp) && !base.is(r13)) {
103 // The call to set_modrm doesn't overwrite the REX.B bit possibly set 103 // This call to set_modrm doesn't overwrite the REX.B (or REX.X) bits
104 // by set_sib. 104 // possibly set by set_sib.
105 set_modrm(0, rsp); 105 set_modrm(0, rsp);
106 } else if (is_int8(disp)) { 106 } else if (is_int8(disp)) {
107 set_modrm(1, rsp); 107 set_modrm(1, rsp);
108 set_disp8(disp); 108 set_disp8(disp);
109 } else { 109 } else {
110 set_modrm(2, rsp); 110 set_modrm(2, rsp);
111 set_disp32(disp); 111 set_disp32(disp);
112 } 112 }
113 } 113 }
114 114
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 UNIMPLEMENTED(); 1588 UNIMPLEMENTED();
1589 return NULL; 1589 return NULL;
1590 } 1590 }
1591 1591
1592 Object* StubCompiler::CompileLazyCompile(Code::Flags a) { 1592 Object* StubCompiler::CompileLazyCompile(Code::Flags a) {
1593 UNIMPLEMENTED(); 1593 UNIMPLEMENTED();
1594 return NULL; 1594 return NULL;
1595 } 1595 }
1596 1596
1597 } } // namespace v8::internal 1597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698