| 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_MACHINE_NODE_FACTORY_H_ | 5 #ifndef V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
| 6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ | 6 #define V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
| 7 | 7 |
| 8 #ifdef USE_SIMULATOR | 8 #ifdef USE_SIMULATOR |
| 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 | 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 |
| 10 #else | 10 #else |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } | 195 } |
| 196 Node* Word64Not(Node* a) { return Word64Xor(a, Int64Constant(-1)); } | 196 Node* Word64Not(Node* a) { return Word64Xor(a, Int64Constant(-1)); } |
| 197 Node* Word64BinaryNot(Node* a) { return Word64Equal(a, Int64Constant(0)); } | 197 Node* Word64BinaryNot(Node* a) { return Word64Equal(a, Int64Constant(0)); } |
| 198 | 198 |
| 199 Node* Int32Add(Node* a, Node* b) { | 199 Node* Int32Add(Node* a, Node* b) { |
| 200 return NEW_NODE_2(MACHINE()->Int32Add(), a, b); | 200 return NEW_NODE_2(MACHINE()->Int32Add(), a, b); |
| 201 } | 201 } |
| 202 Node* Int32AddWithOverflow(Node* a, Node* b) { | 202 Node* Int32AddWithOverflow(Node* a, Node* b) { |
| 203 return NEW_NODE_2(MACHINE()->Int32AddWithOverflow(), a, b); | 203 return NEW_NODE_2(MACHINE()->Int32AddWithOverflow(), a, b); |
| 204 } | 204 } |
| 205 Node* Uint32AddWithOverflow(Node* a, Node* b) { |
| 206 return NEW_NODE_2(MACHINE()->Uint32AddWithOverflow(), a, b); |
| 207 } |
| 205 Node* Int32Sub(Node* a, Node* b) { | 208 Node* Int32Sub(Node* a, Node* b) { |
| 206 return NEW_NODE_2(MACHINE()->Int32Sub(), a, b); | 209 return NEW_NODE_2(MACHINE()->Int32Sub(), a, b); |
| 207 } | 210 } |
| 208 Node* Int32SubWithOverflow(Node* a, Node* b) { | 211 Node* Int32SubWithOverflow(Node* a, Node* b) { |
| 209 return NEW_NODE_2(MACHINE()->Int32SubWithOverflow(), a, b); | 212 return NEW_NODE_2(MACHINE()->Int32SubWithOverflow(), a, b); |
| 210 } | 213 } |
| 214 Node* Uint32SubWithOverflow(Node* a, Node* b) { |
| 215 return NEW_NODE_2(MACHINE()->Uint32SubWithOverflow(), a, b); |
| 216 } |
| 211 Node* Int32Mul(Node* a, Node* b) { | 217 Node* Int32Mul(Node* a, Node* b) { |
| 212 return NEW_NODE_2(MACHINE()->Int32Mul(), a, b); | 218 return NEW_NODE_2(MACHINE()->Int32Mul(), a, b); |
| 213 } | 219 } |
| 214 Node* Int32Div(Node* a, Node* b) { | 220 Node* Int32Div(Node* a, Node* b) { |
| 215 return NEW_NODE_2(MACHINE()->Int32Div(), a, b); | 221 return NEW_NODE_2(MACHINE()->Int32Div(), a, b); |
| 216 } | 222 } |
| 217 Node* Int32UDiv(Node* a, Node* b) { | 223 Node* Int32UDiv(Node* a, Node* b) { |
| 218 return NEW_NODE_2(MACHINE()->Int32UDiv(), a, b); | 224 return NEW_NODE_2(MACHINE()->Int32UDiv(), a, b); |
| 219 } | 225 } |
| 220 Node* Int32Mod(Node* a, Node* b) { | 226 Node* Int32Mod(Node* a, Node* b) { |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 #undef NEW_NODE_3 | 381 #undef NEW_NODE_3 |
| 376 #undef MACHINE | 382 #undef MACHINE |
| 377 #undef COMMON | 383 #undef COMMON |
| 378 #undef ZONE | 384 #undef ZONE |
| 379 | 385 |
| 380 } // namespace compiler | 386 } // namespace compiler |
| 381 } // namespace internal | 387 } // namespace internal |
| 382 } // namespace v8 | 388 } // namespace v8 |
| 383 | 389 |
| 384 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ | 390 #endif // V8_COMPILER_MACHINE_NODE_FACTORY_H_ |
| OLD | NEW |