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

Side by Side Diff: test/cctest/test-disasm-x64.cc

Issue 199903002: Introduce Push and Pop macro instructions for x64 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 6 years, 9 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 | « test/cctest/test-code-stubs-x64.cc ('k') | test/cctest/test-hashing.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 __ movzxbq(rdx, Operand(rcx, 0)); 111 __ movzxbq(rdx, Operand(rcx, 0));
112 __ movzxwq(rdx, Operand(rcx, 0)); 112 __ movzxwq(rdx, Operand(rcx, 0));
113 113
114 __ nop(); 114 __ nop();
115 __ imul(rdx, rcx); 115 __ imul(rdx, rcx);
116 __ shld(rdx, rcx); 116 __ shld(rdx, rcx);
117 __ shrd(rdx, rcx); 117 __ shrd(rdx, rcx);
118 __ bts(Operand(rdx, 0), rcx); 118 __ bts(Operand(rdx, 0), rcx);
119 __ bts(Operand(rbx, rcx, times_4, 0), rcx); 119 __ bts(Operand(rbx, rcx, times_4, 0), rcx);
120 __ nop(); 120 __ nop();
121 __ push(Immediate(12)); 121 __ pushq(Immediate(12));
122 __ push(Immediate(23456)); 122 __ pushq(Immediate(23456));
123 __ push(rcx); 123 __ pushq(rcx);
124 __ push(rsi); 124 __ pushq(rsi);
125 __ push(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 125 __ pushq(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
126 __ push(Operand(rbx, rcx, times_4, 0)); 126 __ pushq(Operand(rbx, rcx, times_4, 0));
127 __ push(Operand(rbx, rcx, times_4, 0)); 127 __ pushq(Operand(rbx, rcx, times_4, 0));
128 __ push(Operand(rbx, rcx, times_4, 10000)); 128 __ pushq(Operand(rbx, rcx, times_4, 10000));
129 __ pop(rdx); 129 __ popq(rdx);
130 __ pop(rax); 130 __ popq(rax);
131 __ pop(Operand(rbx, rcx, times_4, 0)); 131 __ popq(Operand(rbx, rcx, times_4, 0));
132 __ nop(); 132 __ nop();
133 133
134 __ addq(rdx, Operand(rsp, 16)); 134 __ addq(rdx, Operand(rsp, 16));
135 __ addq(rdx, rcx); 135 __ addq(rdx, rcx);
136 __ movb(rdx, Operand(rcx, 0)); 136 __ movb(rdx, Operand(rcx, 0));
137 __ movb(rcx, Immediate(6)); 137 __ movb(rcx, Immediate(6));
138 __ movb(Operand(rsp, 16), rdx); 138 __ movb(Operand(rsp, 16), rdx);
139 __ movw(Operand(rsp, 16), rdx); 139 __ movw(Operand(rsp, 16), rdx);
140 __ nop(); 140 __ nop();
141 __ movsxwq(rdx, Operand(rsp, 12)); 141 __ movsxwq(rdx, Operand(rsp, 12));
(...skipping 19 matching lines...) Expand all
161 __ neg(rdx); 161 __ neg(rdx);
162 __ not_(rdx); 162 __ not_(rdx);
163 __ testq(Operand(rbx, rcx, times_4, 10000), rdx); 163 __ testq(Operand(rbx, rcx, times_4, 10000), rdx);
164 164
165 __ imul(rdx, Operand(rbx, rcx, times_4, 10000)); 165 __ imul(rdx, Operand(rbx, rcx, times_4, 10000));
166 __ imul(rdx, rcx, Immediate(12)); 166 __ imul(rdx, rcx, Immediate(12));
167 __ imul(rdx, rcx, Immediate(1000)); 167 __ imul(rdx, rcx, Immediate(1000));
168 168
169 __ incq(rdx); 169 __ incq(rdx);
170 __ incq(Operand(rbx, rcx, times_4, 10000)); 170 __ incq(Operand(rbx, rcx, times_4, 10000));
171 __ push(Operand(rbx, rcx, times_4, 10000)); 171 __ pushq(Operand(rbx, rcx, times_4, 10000));
172 __ pop(Operand(rbx, rcx, times_4, 10000)); 172 __ popq(Operand(rbx, rcx, times_4, 10000));
173 // TODO(mstarzinger): The following is protected. 173 // TODO(mstarzinger): The following is protected.
174 // __ jmp(Operand(rbx, rcx, times_4, 10000)); 174 // __ jmp(Operand(rbx, rcx, times_4, 10000));
175 175
176 __ lea(rdx, Operand(rbx, rcx, times_4, 10000)); 176 __ lea(rdx, Operand(rbx, rcx, times_4, 10000));
177 __ or_(rdx, Immediate(12345)); 177 __ or_(rdx, Immediate(12345));
178 __ or_(rdx, Operand(rbx, rcx, times_4, 10000)); 178 __ or_(rdx, Operand(rbx, rcx, times_4, 10000));
179 179
180 __ nop(); 180 __ nop();
181 181
182 __ rcl(rdx, Immediate(1)); 182 __ rcl(rdx, Immediate(1));
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 CHECK(code->IsCode()); 436 CHECK(code->IsCode());
437 #ifdef OBJECT_PRINT 437 #ifdef OBJECT_PRINT
438 Code::cast(code)->Print(); 438 Code::cast(code)->Print();
439 byte* begin = Code::cast(code)->instruction_start(); 439 byte* begin = Code::cast(code)->instruction_start();
440 byte* end = begin + Code::cast(code)->instruction_size(); 440 byte* end = begin + Code::cast(code)->instruction_size();
441 disasm::Disassembler::Disassemble(stdout, begin, end); 441 disasm::Disassembler::Disassemble(stdout, begin, end);
442 #endif 442 #endif
443 } 443 }
444 444
445 #undef __ 445 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-code-stubs-x64.cc ('k') | test/cctest/test-hashing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698