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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/ia32/assembler-ia32.h" 10 #include "src/ia32/assembler-ia32.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 __ sar_cl(i.OutputOperand()); 440 __ sar_cl(i.OutputOperand());
441 } 441 }
442 break; 442 break;
443 case kIA32Ror: 443 case kIA32Ror:
444 if (HasImmediateInput(instr, 1)) { 444 if (HasImmediateInput(instr, 1)) {
445 __ ror(i.OutputOperand(), i.InputInt5(1)); 445 __ ror(i.OutputOperand(), i.InputInt5(1));
446 } else { 446 } else {
447 __ ror_cl(i.OutputOperand()); 447 __ ror_cl(i.OutputOperand());
448 } 448 }
449 break; 449 break;
450 case kIA32Lzcnt:
451 __ Lzcnt(i.OutputRegister(), i.InputOperand(0));
452 break;
450 case kSSEFloat64Cmp: 453 case kSSEFloat64Cmp:
451 __ ucomisd(i.InputDoubleRegister(0), i.InputOperand(1)); 454 __ ucomisd(i.InputDoubleRegister(0), i.InputOperand(1));
452 break; 455 break;
453 case kSSEFloat64Add: 456 case kSSEFloat64Add:
454 __ addsd(i.InputDoubleRegister(0), i.InputOperand(1)); 457 __ addsd(i.InputDoubleRegister(0), i.InputOperand(1));
455 break; 458 break;
456 case kSSEFloat64Sub: 459 case kSSEFloat64Sub:
457 __ subsd(i.InputDoubleRegister(0), i.InputOperand(1)); 460 __ subsd(i.InputDoubleRegister(0), i.InputOperand(1));
458 break; 461 break;
459 case kSSEFloat64Mul: 462 case kSSEFloat64Mul:
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 } 1330 }
1328 } 1331 }
1329 MarkLazyDeoptSite(); 1332 MarkLazyDeoptSite();
1330 } 1333 }
1331 1334
1332 #undef __ 1335 #undef __
1333 1336
1334 } // namespace compiler 1337 } // namespace compiler
1335 } // namespace internal 1338 } // namespace internal
1336 } // namespace v8 1339 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/ia32/instruction-codes-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698