| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |