1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are
6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution.
12 // * Neither the name of Google Inc. nor the names of its
13 // contributors may be used to endorse or promote products derived
14 // from this software without specific prior written permission.
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 #include "src/debug.h"
33 #include "src/disasm.h"
34 #include "src/disassembler.h"
35 #include "src/ic/ic.h"
36 #include "src/macro-assembler.h"
37 #include "test/cctest/cctest.h"
39 using namespace v8::internal;
45 static void DummyStaticFunction(Object* result) {
50 CcTest::InitializeVM();
51 Isolate* isolate = CcTest::i_isolate();
52 HandleScope scope(isolate);
53 v8::internal::byte buffer[4096];
54 Assembler assm(isolate, buffer, sizeof buffer);
55 DummyStaticFunction(NULL); // just bloody use it (DELETE; debugging)
57 // Short immediate instructions
58 __ addq(rax, Immediate(12345678));
59 __ orq(rax, Immediate(12345678));
60 __ subq(rax, Immediate(12345678));
61 __ xorq(rax, Immediate(12345678));
62 __ andq(rax, Immediate(12345678));
64 // ---- This one caused crash
65 __ movq(rbx, Operand(rsp, rcx, times_2, 0)); // [rsp+rcx*4]
67 // ---- All instructions that I can think of
69 __ addq(rdx, Operand(rbx, 0));
70 __ addq(rdx, Operand(rbx, 16));
71 __ addq(rdx, Operand(rbx, 1999));
72 __ addq(rdx, Operand(rbx, -4));
73 __ addq(rdx, Operand(rbx, -1999));
74 __ addq(rdx, Operand(rsp, 0));
75 __ addq(rdx, Operand(rsp, 16));
76 __ addq(rdx, Operand(rsp, 1999));
77 __ addq(rdx, Operand(rsp, -4));
78 __ addq(rdx, Operand(rsp, -1999));
80 __ addq(rsi, Operand(rcx, times_4, 0));
81 __ addq(rsi, Operand(rcx, times_4, 24));
82 __ addq(rsi, Operand(rcx, times_4, -4));
83 __ addq(rsi, Operand(rcx, times_4, -1999));
85 __ addq(rdi, Operand(rbp, rcx, times_4, 0));
86 __ addq(rdi, Operand(rbp, rcx, times_4, 12));
87 __ addq(rdi, Operand(rbp, rcx, times_4, -8));
88 __ addq(rdi, Operand(rbp, rcx, times_4, -3999));
89 __ addq(Operand(rbp, rcx, times_4, 12), Immediate(12));
92 __ bsrl(r9, Operand(rcx, times_8, 91919));
95 __ addq(rbx, Immediate(12));
98 __ andq(rdx, Immediate(3));
99 __ andq(rdx, Operand(rsp, 4));
100 __ cmpq(rdx, Immediate(3));
101 __ cmpq(rdx, Operand(rsp, 4));
102 __ cmpq(Operand(rbp, rcx, times_4, 0), Immediate(1000));
103 __ cmpb(rbx, Operand(rbp, rcx, times_2, 0));
104 __ cmpb(Operand(rbp, rcx, times_2, 0), rbx);
105 __ orq(rdx, Immediate(3));
106 __ xorq(rdx, Immediate(3));
109 __ movsxbl(rdx, Operand(rcx, 0));
110 __ movsxbq(rdx, Operand(rcx, 0));
111 __ movsxwl(rdx, Operand(rcx, 0));
112 __ movsxwq(rdx, Operand(rcx, 0));
113 __ movzxbl(rdx, Operand(rcx, 0));
114 __ movzxwl(rdx, Operand(rcx, 0));
115 __ movzxbq(rdx, Operand(rcx, 0));
116 __ movzxwq(rdx, Operand(rcx, 0));
122 __ shlq(Operand(rdi, rax, times_4, 100), Immediate(1));
123 __ shlq(Operand(rdi, rax, times_4, 100), Immediate(6));
124 __ shlq(Operand(r15, 0), Immediate(1));
125 __ shlq(Operand(r15, 0), Immediate(6));
126 __ shlq_cl(Operand(r15, 0));
127 __ shlq_cl(Operand(r15, 0));
128 __ shlq_cl(Operand(rdi, rax, times_4, 100));
129 __ shlq_cl(Operand(rdi, rax, times_4, 100));
130 __ shlq(rdx, Immediate(1));
131 __ shlq(rdx, Immediate(6));
132 __ shll(Operand(rdi, rax, times_4, 100), Immediate(1));
133 __ shll(Operand(rdi, rax, times_4, 100), Immediate(6));
134 __ shll(Operand(r15, 0), Immediate(1));
135 __ shll(Operand(r15, 0), Immediate(6));
136 __ shll_cl(Operand(r15, 0));
137 __ shll_cl(Operand(r15, 0));
138 __ shll_cl(Operand(rdi, rax, times_4, 100));
139 __ shll_cl(Operand(rdi, rax, times_4, 100));
140 __ shll(rdx, Immediate(1));
141 __ shll(rdx, Immediate(6));
142 __ bts(Operand(rdx, 0), rcx);
143 __ bts(Operand(rbx, rcx, times_4, 0), rcx);
145 __ pushq(Immediate(12));
146 __ pushq(Immediate(23456));
149 __ pushq(Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
150 __ pushq(Operand(rbx, rcx, times_4, 0));
151 __ pushq(Operand(rbx, rcx, times_4, 0));
152 __ pushq(Operand(rbx, rcx, times_4, 10000));
155 __ popq(Operand(rbx, rcx, times_4, 0));
158 __ addq(rdx, Operand(rsp, 16));
160 __ movb(rdx, Operand(rcx, 0));
161 __ movb(rcx, Immediate(6));
162 __ movb(Operand(rsp, 16), rdx);
163 __ movw(Operand(rsp, 16), rdx);
165 __ movsxwq(rdx, Operand(rsp, 12));
166 __ movsxbq(rdx, Operand(rsp, 12));
167 __ movsxlq(rdx, Operand(rsp, 12));
168 __ movzxwq(rdx, Operand(rsp, 12));
169 __ movzxbq(rdx, Operand(rsp, 12));
171 __ movq(rdx, Immediate(1234567));
172 __ movq(rdx, Operand(rsp, 12));
173 __ movq(Operand(rbx, rcx, times_4, 10000), Immediate(12345));
174 __ movq(Operand(rbx, rcx, times_4, 10000), rdx);
177 __ decb(Operand(rax, 10));
178 __ decb(Operand(rbx, rcx, times_4, 10000));
188 __ testq(Operand(rbx, rcx, times_4, 10000), rdx);
190 __ imulq(rdx, rcx, Immediate(12));
191 __ imulq(rdx, rcx, Immediate(1000));
192 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000));
193 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(12));
194 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(1000));
195 __ imull(r15, rcx, Immediate(12));
196 __ imull(r15, rcx, Immediate(1000));
197 __ imull(r15, Operand(rbx, rcx, times_4, 10000));
198 __ imull(r15, Operand(rbx, rcx, times_4, 10000), Immediate(12));
199 __ imull(r15, Operand(rbx, rcx, times_4, 10000), Immediate(1000));
202 __ incq(Operand(rbx, rcx, times_4, 10000));
203 __ pushq(Operand(rbx, rcx, times_4, 10000));
204 __ popq(Operand(rbx, rcx, times_4, 10000));
205 // TODO(mstarzinger): The following is protected.
206 // __ jmp(Operand(rbx, rcx, times_4, 10000));
208 __ leaq(rdx, Operand(rbx, rcx, times_4, 10000));
209 __ orq(rdx, Immediate(12345));
210 __ orq(rdx, Operand(rbx, rcx, times_4, 10000));
214 __ rclq(rdx, Immediate(1));
215 __ rclq(rdx, Immediate(7));
216 __ rcrq(rdx, Immediate(1));
217 __ rcrq(rdx, Immediate(7));
218 __ sarq(rdx, Immediate(1));
219 __ sarq(rdx, Immediate(6));
223 __ shlq(rdx, Immediate(1));
224 __ shlq(rdx, Immediate(6));
227 __ shrq(rdx, Immediate(1));
228 __ shrq(rdx, Immediate(7));
234 __ addq(rbx, Immediate(12));
235 __ addq(Operand(rdx, rcx, times_4, 10000), Immediate(12));
237 __ andq(rbx, Immediate(12345));
239 __ cmpq(rbx, Immediate(12345));
240 __ cmpq(rbx, Immediate(12));
241 __ cmpq(Operand(rdx, rcx, times_4, 10000), Immediate(12));
242 __ cmpb(rax, Immediate(100));
244 __ orq(rbx, Immediate(12345));
246 __ subq(rbx, Immediate(12));
247 __ subq(Operand(rdx, rcx, times_4, 10000), Immediate(12));
249 __ xorq(rbx, Immediate(12345));
251 __ imulq(rdx, rcx, Immediate(12));
252 __ imulq(rdx, rcx, Immediate(1000));
256 __ subq(rdx, Operand(rbx, rcx, times_4, 10000));
259 __ testq(rdx, Immediate(12345));
260 __ testq(Operand(rbx, rcx, times_8, 10000), rdx);
261 __ testb(Operand(rcx, rbx, times_2, 1000), rdx);
262 __ testb(Operand(rax, -20), Immediate(0x9A));
265 __ xorq(rdx, Immediate(12345));
266 __ xorq(rdx, Operand(rbx, rcx, times_8, 10000));
267 __ bts(Operand(rbx, rcx, times_8, 10000), rdx);
282 // TODO(mstarzinger): The following is protected.
283 // __ call(Operand(rbx, rcx, times_4, 10000));
285 Handle<Code> ic(LoadIC::initialize_stub(isolate, NOT_CONTEXTUAL));
286 __ call(ic, RelocInfo::CODE_TARGET);
291 // TODO(mstarzinger): The following is protected.
292 // __ jmp(Operand(rbx, rcx, times_4, 10000));
293 ExternalReference after_break_target =
294 ExternalReference::debug_after_break_target_address(isolate);
295 USE(after_break_target);
296 __ jmp(ic, RelocInfo::CODE_TARGET);
303 __ j(overflow, &Ljcc);
304 __ j(no_overflow, &Ljcc);
306 __ j(above_equal, &Ljcc);
308 __ j(not_equal, &Ljcc);
309 __ j(below_equal, &Ljcc);
312 __ j(not_sign, &Ljcc);
313 __ j(parity_even, &Ljcc);
314 __ j(parity_odd, &Ljcc);
316 __ j(greater_equal, &Ljcc);
317 __ j(less_equal, &Ljcc);
318 __ j(greater, &Ljcc);
322 __ j(overflow, &Ljcc);
323 __ j(no_overflow, &Ljcc);
325 __ j(above_equal, &Ljcc);
327 __ j(not_equal, &Ljcc);
328 __ j(below_equal, &Ljcc);
331 __ j(not_sign, &Ljcc);
332 __ j(parity_even, &Ljcc);
333 __ j(parity_odd, &Ljcc);
335 __ j(greater_equal, &Ljcc);
336 __ j(less_equal, &Ljcc);
337 __ j(greater, &Ljcc);
353 __ fld_s(Operand(rbx, rcx, times_4, 10000));
354 __ fstp_s(Operand(rbx, rcx, times_4, 10000));
356 __ fld_d(Operand(rbx, rcx, times_4, 10000));
357 __ fstp_d(Operand(rbx, rcx, times_4, 10000));
360 __ fild_s(Operand(rbx, rcx, times_4, 10000));
361 __ fistp_s(Operand(rbx, rcx, times_4, 10000));
362 __ fild_d(Operand(rbx, rcx, times_4, 10000));
363 __ fistp_d(Operand(rbx, rcx, times_4, 10000));
384 __ cvttss2si(rdx, Operand(rbx, rcx, times_4, 10000));
385 __ cvttss2si(rdx, xmm1);
386 __ cvtsd2ss(xmm0, xmm1);
387 __ cvtsd2ss(xmm0, Operand(rbx, rcx, times_4, 10000));
388 __ movaps(xmm0, xmm1);
391 __ andps(xmm0, xmm1);
392 __ andps(xmm0, Operand(rbx, rcx, times_4, 10000));
394 __ orps(xmm0, Operand(rbx, rcx, times_4, 10000));
395 __ xorps(xmm0, xmm1);
396 __ xorps(xmm0, Operand(rbx, rcx, times_4, 10000));
398 // Arithmetic operation
399 __ addss(xmm1, xmm0);
400 __ addss(xmm1, Operand(rbx, rcx, times_4, 10000));
401 __ mulss(xmm1, xmm0);
402 __ mulss(xmm1, Operand(rbx, rcx, times_4, 10000));
403 __ subss(xmm1, xmm0);
404 __ subss(xmm1, Operand(rbx, rcx, times_4, 10000));
405 __ divss(xmm1, xmm0);
406 __ divss(xmm1, Operand(rbx, rcx, times_4, 10000));
407 __ addps(xmm1, xmm0);
408 __ addps(xmm1, Operand(rbx, rcx, times_4, 10000));
409 __ subps(xmm1, xmm0);
410 __ subps(xmm1, Operand(rbx, rcx, times_4, 10000));
411 __ mulps(xmm1, xmm0);
412 __ mulps(xmm1, Operand(rbx, rcx, times_4, 10000));
413 __ divps(xmm1, xmm0);
414 __ divps(xmm1, Operand(rbx, rcx, times_4, 10000));
416 __ ucomiss(xmm0, xmm1);
417 __ ucomiss(xmm0, Operand(rbx, rcx, times_4, 10000));
419 // SSE 2 instructions
421 __ cvttsd2si(rdx, Operand(rbx, rcx, times_4, 10000));
422 __ cvttsd2si(rdx, xmm1);
423 __ cvttsd2siq(rdx, xmm1);
424 __ cvttsd2siq(rdx, Operand(rbx, rcx, times_4, 10000));
425 __ cvtqsi2sd(xmm1, Operand(rbx, rcx, times_4, 10000));
426 __ cvtqsi2sd(xmm1, rdx);
427 __ movsd(xmm1, Operand(rbx, rcx, times_4, 10000));
428 __ movsd(Operand(rbx, rcx, times_4, 10000), xmm1);
429 // 128 bit move instructions.
430 __ movdqa(xmm0, Operand(rbx, rcx, times_4, 10000));
431 __ movdqa(Operand(rbx, rcx, times_4, 10000), xmm0);
433 __ addsd(xmm1, xmm0);
434 __ addsd(xmm1, Operand(rbx, rcx, times_4, 10000));
435 __ mulsd(xmm1, xmm0);
436 __ mulsd(xmm1, Operand(rbx, rcx, times_4, 10000));
437 __ subsd(xmm1, xmm0);
438 __ subsd(xmm1, Operand(rbx, rcx, times_4, 10000));
439 __ divsd(xmm1, xmm0);
440 __ divsd(xmm1, Operand(rbx, rcx, times_4, 10000));
441 __ minsd(xmm1, xmm0);
442 __ minsd(xmm1, Operand(rbx, rcx, times_4, 10000));
443 __ maxsd(xmm1, xmm0);
444 __ maxsd(xmm1, Operand(rbx, rcx, times_4, 10000));
445 __ ucomisd(xmm0, xmm1);
447 __ andpd(xmm0, xmm1);
454 __ pcmpeqd(xmm1, xmm0);
456 __ punpckldq(xmm1, xmm11);
457 __ punpckhdq(xmm8, xmm15);
462 __ cmovq(overflow, rax, Operand(rax, 0));
463 __ cmovq(no_overflow, rax, Operand(rax, 1));
464 __ cmovq(below, rax, Operand(rax, 2));
465 __ cmovq(above_equal, rax, Operand(rax, 3));
466 __ cmovq(equal, rax, Operand(rbx, 0));
467 __ cmovq(not_equal, rax, Operand(rbx, 1));
468 __ cmovq(below_equal, rax, Operand(rbx, 2));
469 __ cmovq(above, rax, Operand(rbx, 3));
470 __ cmovq(sign, rax, Operand(rcx, 0));
471 __ cmovq(not_sign, rax, Operand(rcx, 1));
472 __ cmovq(parity_even, rax, Operand(rcx, 2));
473 __ cmovq(parity_odd, rax, Operand(rcx, 3));
474 __ cmovq(less, rax, Operand(rdx, 0));
475 __ cmovq(greater_equal, rax, Operand(rdx, 1));
476 __ cmovq(less_equal, rax, Operand(rdx, 2));
477 __ cmovq(greater, rax, Operand(rdx, 3));
481 if (CpuFeatures::IsSupported(SSE4_1)) {
482 CpuFeatureScope scope(&assm, SSE4_1);
483 __ extractps(rax, xmm1, 0);
484 __ pextrd(rbx, xmm15, 0);
485 __ pextrd(r12, xmm0, 1);
486 __ pinsrd(xmm9, r9, 0);
487 __ pinsrd(xmm5, rax, 1);
493 if (CpuFeatures::IsSupported(AVX)) {
494 CpuFeatureScope scope(&assm, AVX);
495 __ vaddsd(xmm0, xmm1, xmm2);
496 __ vaddsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
497 __ vmulsd(xmm0, xmm1, xmm2);
498 __ vmulsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
499 __ vsubsd(xmm0, xmm1, xmm2);
500 __ vsubsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
501 __ vdivsd(xmm0, xmm1, xmm2);
502 __ vdivsd(xmm0, xmm1, Operand(rbx, rcx, times_2, 10000));
503 __ vminsd(xmm8, xmm1, xmm2);
504 __ vminsd(xmm9, xmm1, Operand(rbx, rcx, times_8, 10000));
505 __ vmaxsd(xmm8, xmm1, xmm2);
506 __ vmaxsd(xmm9, xmm1, Operand(rbx, rcx, times_1, 10000));
512 if (CpuFeatures::IsSupported(FMA3)) {
513 CpuFeatureScope scope(&assm, FMA3);
514 __ vfmadd132sd(xmm0, xmm1, xmm2);
515 __ vfmadd132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
516 __ vfmadd213sd(xmm0, xmm1, xmm2);
517 __ vfmadd213sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
518 __ vfmadd231sd(xmm0, xmm1, xmm2);
519 __ vfmadd231sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
521 __ vfmadd132sd(xmm9, xmm10, xmm11);
522 __ vfmadd132sd(xmm9, xmm10, Operand(r9, r11, times_4, 10000));
523 __ vfmadd213sd(xmm9, xmm10, xmm11);
524 __ vfmadd213sd(xmm9, xmm10, Operand(r9, r11, times_4, 10000));
525 __ vfmadd231sd(xmm9, xmm10, xmm11);
526 __ vfmadd231sd(xmm9, xmm10, Operand(r9, r11, times_4, 10000));
528 __ vfmsub132sd(xmm0, xmm1, xmm2);
529 __ vfmsub132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
530 __ vfmsub213sd(xmm0, xmm1, xmm2);
531 __ vfmsub213sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
532 __ vfmsub231sd(xmm0, xmm1, xmm2);
533 __ vfmsub231sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
535 __ vfnmadd132sd(xmm0, xmm1, xmm2);
536 __ vfnmadd132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
537 __ vfnmadd213sd(xmm0, xmm1, xmm2);
538 __ vfnmadd213sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
539 __ vfnmadd231sd(xmm0, xmm1, xmm2);
540 __ vfnmadd231sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
542 __ vfnmsub132sd(xmm0, xmm1, xmm2);
543 __ vfnmsub132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
544 __ vfnmsub213sd(xmm0, xmm1, xmm2);
545 __ vfnmsub213sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
546 __ vfnmsub231sd(xmm0, xmm1, xmm2);
547 __ vfnmsub231sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
549 __ vfmadd132ss(xmm0, xmm1, xmm2);
550 __ vfmadd132ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
551 __ vfmadd213ss(xmm0, xmm1, xmm2);
552 __ vfmadd213ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
553 __ vfmadd231ss(xmm0, xmm1, xmm2);
554 __ vfmadd231ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
556 __ vfmsub132ss(xmm0, xmm1, xmm2);
557 __ vfmsub132ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
558 __ vfmsub213ss(xmm0, xmm1, xmm2);
559 __ vfmsub213ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
560 __ vfmsub231ss(xmm0, xmm1, xmm2);
561 __ vfmsub231ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
563 __ vfnmadd132ss(xmm0, xmm1, xmm2);
564 __ vfnmadd132ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
565 __ vfnmadd213ss(xmm0, xmm1, xmm2);
566 __ vfnmadd213ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
567 __ vfnmadd231ss(xmm0, xmm1, xmm2);
568 __ vfnmadd231ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
570 __ vfnmsub132ss(xmm0, xmm1, xmm2);
571 __ vfnmsub132ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
572 __ vfnmsub213ss(xmm0, xmm1, xmm2);
573 __ vfnmsub213ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
574 __ vfnmsub231ss(xmm0, xmm1, xmm2);
575 __ vfnmsub231ss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
583 __ xchgq(rbx, Operand(rsp, 12));
587 for (int i = 0; i < 16; i++) {
595 Handle<Code> code = isolate->factory()->NewCode(
596 desc, Code::ComputeFlags(Code::STUB), Handle<Code>());
601 byte* begin = code->instruction_start();
602 byte* end = begin + code->instruction_size();
603 disasm::Disassembler::Disassemble(stdout, begin, end);