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

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

Issue 1698483002: [arm][arm64] Improve CountTrailingZero implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 Emit(kIA32Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 585 Emit(kIA32Lzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
586 } 586 }
587 587
588 588
589 void InstructionSelector::VisitWord32Ctz(Node* node) { 589 void InstructionSelector::VisitWord32Ctz(Node* node) {
590 IA32OperandGenerator g(this); 590 IA32OperandGenerator g(this);
591 Emit(kIA32Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 591 Emit(kIA32Tzcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
592 } 592 }
593 593
594 594
595 void InstructionSelector::VisitWord32ReverseBits(Node* node) { UNREACHABLE(); }
596
597
595 void InstructionSelector::VisitWord32Popcnt(Node* node) { 598 void InstructionSelector::VisitWord32Popcnt(Node* node) {
596 IA32OperandGenerator g(this); 599 IA32OperandGenerator g(this);
597 Emit(kIA32Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0))); 600 Emit(kIA32Popcnt, g.DefineAsRegister(node), g.Use(node->InputAt(0)));
598 } 601 }
599 602
600 603
601 void InstructionSelector::VisitInt32Add(Node* node) { 604 void InstructionSelector::VisitInt32Add(Node* node) {
602 IA32OperandGenerator g(this); 605 IA32OperandGenerator g(this);
603 606
604 // Try to match the Add to a lea pattern 607 // Try to match the Add to a lea pattern
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 MachineOperatorBuilder::kFloat64RoundTruncate | 1353 MachineOperatorBuilder::kFloat64RoundTruncate |
1351 MachineOperatorBuilder::kFloat32RoundTiesEven | 1354 MachineOperatorBuilder::kFloat32RoundTiesEven |
1352 MachineOperatorBuilder::kFloat64RoundTiesEven; 1355 MachineOperatorBuilder::kFloat64RoundTiesEven;
1353 } 1356 }
1354 return flags; 1357 return flags;
1355 } 1358 }
1356 1359
1357 } // namespace compiler 1360 } // namespace compiler
1358 } // namespace internal 1361 } // namespace internal
1359 } // namespace v8 1362 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698