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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.cc

Issue 1698483002: [arm][arm64] Improve CountTrailingZero implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: comments addressed Created 4 years, 10 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/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-run-machops.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 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 543
544 void InstructionSelector::VisitWord32Clz(Node* node) { 544 void InstructionSelector::VisitWord32Clz(Node* node) {
545 X87OperandGenerator g(this); 545 X87OperandGenerator g(this);
546 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 546 Emit(kX87Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
547 } 547 }
548 548
549 549
550 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); } 550 void InstructionSelector::VisitWord32Ctz(Node* node) { UNREACHABLE(); }
551 551
552 552
553 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
554
555
553 void InstructionSelector::VisitWord32Popcnt(Node* node) { 556 void InstructionSelector::VisitWord32Popcnt(Node* node) {
554 X87OperandGenerator g(this); 557 X87OperandGenerator g(this);
555 Emit(kX87Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 558 Emit(kX87Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
556 } 559 }
557 560
558 561
559 void InstructionSelector::VisitInt32Add(Node* node) { 562 void InstructionSelector::VisitInt32Add(Node* node) {
560 X87OperandGenerator g(this); 563 X87OperandGenerator g(this);
561 564
562 // Try to match the Add to a lea pattern 565 // Try to match the Add to a lea pattern
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 MachineOperatorBuilder::kFloat32RoundTruncate | 1366 MachineOperatorBuilder::kFloat32RoundTruncate |
1364 MachineOperatorBuilder::kFloat64RoundTruncate | 1367 MachineOperatorBuilder::kFloat64RoundTruncate |
1365 MachineOperatorBuilder::kFloat32RoundTiesEven | 1368 MachineOperatorBuilder::kFloat32RoundTiesEven |
1366 MachineOperatorBuilder::kFloat64RoundTiesEven; 1369 MachineOperatorBuilder::kFloat64RoundTiesEven;
1367 return flags; 1370 return flags;
1368 } 1371 }
1369 1372
1370 } // namespace compiler 1373 } // namespace compiler
1371 } // namespace internal 1374 } // namespace internal
1372 } // namespace v8 1375 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698