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

Side by Side Diff: src/compiler/machine-operator.cc

Issue 1413463009: Implemented the Word64Clz TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed a typing problem, and added mips64. Created 5 years, 1 month 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/machine-operator.h ('k') | src/compiler/mips64/code-generator-mips64.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/compiler/machine-operator.h" 5 #include "src/compiler/machine-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 V(Word32Ror, Operator::kNoProperties, 2, 0, 1) \ 92 V(Word32Ror, Operator::kNoProperties, 2, 0, 1) \
93 V(Word32Equal, Operator::kCommutative, 2, 0, 1) \ 93 V(Word32Equal, Operator::kCommutative, 2, 0, 1) \
94 V(Word32Clz, Operator::kNoProperties, 1, 0, 1) \ 94 V(Word32Clz, Operator::kNoProperties, 1, 0, 1) \
95 V(Word64And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 95 V(Word64And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
96 V(Word64Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 96 V(Word64Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
97 V(Word64Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 97 V(Word64Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
98 V(Word64Shl, Operator::kNoProperties, 2, 0, 1) \ 98 V(Word64Shl, Operator::kNoProperties, 2, 0, 1) \
99 V(Word64Shr, Operator::kNoProperties, 2, 0, 1) \ 99 V(Word64Shr, Operator::kNoProperties, 2, 0, 1) \
100 V(Word64Sar, Operator::kNoProperties, 2, 0, 1) \ 100 V(Word64Sar, Operator::kNoProperties, 2, 0, 1) \
101 V(Word64Ror, Operator::kNoProperties, 2, 0, 1) \ 101 V(Word64Ror, Operator::kNoProperties, 2, 0, 1) \
102 V(Word64Clz, Operator::kNoProperties, 1, 0, 1) \
102 V(Word64Equal, Operator::kCommutative, 2, 0, 1) \ 103 V(Word64Equal, Operator::kCommutative, 2, 0, 1) \
103 V(Int32Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 104 V(Int32Add, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
104 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \ 105 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative, 2, \
105 0, 2) \ 106 0, 2) \
106 V(Int32Sub, Operator::kNoProperties, 2, 0, 1) \ 107 V(Int32Sub, Operator::kNoProperties, 2, 0, 1) \
107 V(Int32SubWithOverflow, Operator::kNoProperties, 2, 0, 2) \ 108 V(Int32SubWithOverflow, Operator::kNoProperties, 2, 0, 2) \
108 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 109 V(Int32Mul, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
109 V(Int32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 110 V(Int32MulHigh, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
110 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \ 111 V(Int32Div, Operator::kNoProperties, 2, 1, 1) \
111 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \ 112 V(Int32Mod, Operator::kNoProperties, 2, 1, 1) \
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 default: 377 default:
377 break; 378 break;
378 } 379 }
379 UNREACHABLE(); 380 UNREACHABLE();
380 return nullptr; 381 return nullptr;
381 } 382 }
382 383
383 } // namespace compiler 384 } // namespace compiler
384 } // namespace internal 385 } // namespace internal
385 } // namespace v8 386 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698