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

Side by Side Diff: src/compiler/arm/code-generator-arm.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 | « no previous file | src/compiler/arm/instruction-codes-arm.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 case kArmUxtab: 482 case kArmUxtab:
483 __ uxtab(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 483 __ uxtab(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
484 i.InputInt32(2)); 484 i.InputInt32(2));
485 DCHECK_EQ(LeaveCC, i.OutputSBit()); 485 DCHECK_EQ(LeaveCC, i.OutputSBit());
486 break; 486 break;
487 case kArmUxtah: 487 case kArmUxtah:
488 __ uxtah(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), 488 __ uxtah(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1),
489 i.InputInt32(2)); 489 i.InputInt32(2));
490 DCHECK_EQ(LeaveCC, i.OutputSBit()); 490 DCHECK_EQ(LeaveCC, i.OutputSBit());
491 break; 491 break;
492 case kArmClz:
493 __ clz(i.OutputRegister(), i.InputRegister(0));
494 DCHECK_EQ(LeaveCC, i.OutputSBit());
495 break;
492 case kArmCmp: 496 case kArmCmp:
493 __ cmp(i.InputRegister(0), i.InputOperand2(1)); 497 __ cmp(i.InputRegister(0), i.InputOperand2(1));
494 DCHECK_EQ(SetCC, i.OutputSBit()); 498 DCHECK_EQ(SetCC, i.OutputSBit());
495 break; 499 break;
496 case kArmCmn: 500 case kArmCmn:
497 __ cmn(i.InputRegister(0), i.InputOperand2(1)); 501 __ cmn(i.InputRegister(0), i.InputOperand2(1));
498 DCHECK_EQ(SetCC, i.OutputSBit()); 502 DCHECK_EQ(SetCC, i.OutputSBit());
499 break; 503 break;
500 case kArmTst: 504 case kArmTst:
501 __ tst(i.InputRegister(0), i.InputOperand2(1)); 505 __ tst(i.InputRegister(0), i.InputOperand2(1));
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 } 1106 }
1103 } 1107 }
1104 MarkLazyDeoptSite(); 1108 MarkLazyDeoptSite();
1105 } 1109 }
1106 1110
1107 #undef __ 1111 #undef __
1108 1112
1109 } // namespace compiler 1113 } // namespace compiler
1110 } // namespace internal 1114 } // namespace internal
1111 } // namespace v8 1115 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698