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

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

Issue 1021183002: [turbofan] Turn Math.clz32 into an inlinable builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/mjsunit/asm/math-clz32.js » ('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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 __ addq(rsi, Operand(rcx, times_4, 24)); 82 __ addq(rsi, Operand(rcx, times_4, 24));
83 __ addq(rsi, Operand(rcx, times_4, -4)); 83 __ addq(rsi, Operand(rcx, times_4, -4));
84 __ addq(rsi, Operand(rcx, times_4, -1999)); 84 __ addq(rsi, Operand(rcx, times_4, -1999));
85 __ nop(); 85 __ nop();
86 __ addq(rdi, Operand(rbp, rcx, times_4, 0)); 86 __ addq(rdi, Operand(rbp, rcx, times_4, 0));
87 __ addq(rdi, Operand(rbp, rcx, times_4, 12)); 87 __ addq(rdi, Operand(rbp, rcx, times_4, 12));
88 __ addq(rdi, Operand(rbp, rcx, times_4, -8)); 88 __ addq(rdi, Operand(rbp, rcx, times_4, -8));
89 __ addq(rdi, Operand(rbp, rcx, times_4, -3999)); 89 __ addq(rdi, Operand(rbp, rcx, times_4, -3999));
90 __ addq(Operand(rbp, rcx, times_4, 12), Immediate(12)); 90 __ addq(Operand(rbp, rcx, times_4, 12), Immediate(12));
91 91
92 __ bsrl(rax, r15);
93 __ bsrl(r9, Operand(rcx, times_8, 91919));
94
92 __ nop(); 95 __ nop();
93 __ addq(rbx, Immediate(12)); 96 __ addq(rbx, Immediate(12));
94 __ nop(); 97 __ nop();
95 __ nop(); 98 __ nop();
96 __ andq(rdx, Immediate(3)); 99 __ andq(rdx, Immediate(3));
97 __ andq(rdx, Operand(rsp, 4)); 100 __ andq(rdx, Operand(rsp, 4));
98 __ cmpq(rdx, Immediate(3)); 101 __ cmpq(rdx, Immediate(3));
99 __ cmpq(rdx, Operand(rsp, 4)); 102 __ cmpq(rdx, Operand(rsp, 4));
100 __ cmpq(Operand(rbp, rcx, times_4, 0), Immediate(1000)); 103 __ cmpq(Operand(rbp, rcx, times_4, 0), Immediate(1000));
101 __ cmpb(rbx, Operand(rbp, rcx, times_2, 0)); 104 __ cmpb(rbx, Operand(rbp, rcx, times_2, 0));
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 #ifdef OBJECT_PRINT 599 #ifdef OBJECT_PRINT
597 OFStream os(stdout); 600 OFStream os(stdout);
598 code->Print(os); 601 code->Print(os);
599 byte* begin = code->instruction_start(); 602 byte* begin = code->instruction_start();
600 byte* end = begin + code->instruction_size(); 603 byte* end = begin + code->instruction_size();
601 disasm::Disassembler::Disassemble(stdout, begin, end); 604 disasm::Disassembler::Disassemble(stdout, begin, end);
602 #endif 605 #endif
603 } 606 }
604 607
605 #undef __ 608 #undef __
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/mjsunit/asm/math-clz32.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698