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

Side by Side Diff: src/compiler/raw-machine-assembler.h

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 | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-builder.h" 9 #include "src/compiler/graph-builder.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 Node* Word32Shr(Node* a, Node* b) { 169 Node* Word32Shr(Node* a, Node* b) {
170 return NewNode(machine()->Word32Shr(), a, b); 170 return NewNode(machine()->Word32Shr(), a, b);
171 } 171 }
172 Node* Word32Sar(Node* a, Node* b) { 172 Node* Word32Sar(Node* a, Node* b) {
173 return NewNode(machine()->Word32Sar(), a, b); 173 return NewNode(machine()->Word32Sar(), a, b);
174 } 174 }
175 Node* Word32Ror(Node* a, Node* b) { 175 Node* Word32Ror(Node* a, Node* b) {
176 return NewNode(machine()->Word32Ror(), a, b); 176 return NewNode(machine()->Word32Ror(), a, b);
177 } 177 }
178 Node* Word32Clz(Node* a) { return NewNode(machine()->Word32Clz(), a); }
178 Node* Word32Equal(Node* a, Node* b) { 179 Node* Word32Equal(Node* a, Node* b) {
179 return NewNode(machine()->Word32Equal(), a, b); 180 return NewNode(machine()->Word32Equal(), a, b);
180 } 181 }
181 Node* Word32NotEqual(Node* a, Node* b) { 182 Node* Word32NotEqual(Node* a, Node* b) {
182 return Word32BinaryNot(Word32Equal(a, b)); 183 return Word32BinaryNot(Word32Equal(a, b));
183 } 184 }
184 Node* Word32Not(Node* a) { return Word32Xor(a, Int32Constant(-1)); } 185 Node* Word32Not(Node* a) { return Word32Xor(a, Int32Constant(-1)); }
185 Node* Word32BinaryNot(Node* a) { return Word32Equal(a, Int32Constant(0)); } 186 Node* Word32BinaryNot(Node* a) { return Word32Equal(a, Int32Constant(0)); }
186 187
187 Node* Word64And(Node* a, Node* b) { 188 Node* Word64And(Node* a, Node* b) {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 BasicBlock* current_block_; 480 BasicBlock* current_block_;
480 481
481 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); 482 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler);
482 }; 483 };
483 484
484 } // namespace compiler 485 } // namespace compiler
485 } // namespace internal 486 } // namespace internal
486 } // namespace v8 487 } // namespace v8
487 488
488 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ 489 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698