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_REPRESENTATION_CHANGE_H_ | 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ |
6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ | 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ |
7 | 7 |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 case IrOpcode::kNumberAdd: | 324 case IrOpcode::kNumberAdd: |
325 return machine()->Int32Add(); | 325 return machine()->Int32Add(); |
326 case IrOpcode::kNumberSubtract: | 326 case IrOpcode::kNumberSubtract: |
327 return machine()->Int32Sub(); | 327 return machine()->Int32Sub(); |
328 case IrOpcode::kNumberMultiply: | 328 case IrOpcode::kNumberMultiply: |
329 return machine()->Int32Mul(); | 329 return machine()->Int32Mul(); |
330 case IrOpcode::kNumberDivide: | 330 case IrOpcode::kNumberDivide: |
331 return machine()->Int32Div(); | 331 return machine()->Int32Div(); |
332 case IrOpcode::kNumberModulus: | 332 case IrOpcode::kNumberModulus: |
333 return machine()->Int32Mod(); | 333 return machine()->Int32Mod(); |
| 334 case IrOpcode::kNumberBitwiseOr: |
| 335 return machine()->Word32Or(); |
| 336 case IrOpcode::kNumberBitwiseXor: |
| 337 return machine()->Word32Xor(); |
| 338 case IrOpcode::kNumberBitwiseAnd: |
| 339 return machine()->Word32And(); |
334 case IrOpcode::kNumberEqual: | 340 case IrOpcode::kNumberEqual: |
335 return machine()->Word32Equal(); | 341 return machine()->Word32Equal(); |
336 case IrOpcode::kNumberLessThan: | 342 case IrOpcode::kNumberLessThan: |
337 return machine()->Int32LessThan(); | 343 return machine()->Int32LessThan(); |
338 case IrOpcode::kNumberLessThanOrEqual: | 344 case IrOpcode::kNumberLessThanOrEqual: |
339 return machine()->Int32LessThanOrEqual(); | 345 return machine()->Int32LessThanOrEqual(); |
340 default: | 346 default: |
341 UNREACHABLE(); | 347 UNREACHABLE(); |
342 return NULL; | 348 return NULL; |
343 } | 349 } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 Factory* factory() const { return isolate()->factory(); } | 458 Factory* factory() const { return isolate()->factory(); } |
453 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 459 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
454 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 460 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
455 }; | 461 }; |
456 | 462 |
457 } // namespace compiler | 463 } // namespace compiler |
458 } // namespace internal | 464 } // namespace internal |
459 } // namespace v8 | 465 } // namespace v8 |
460 | 466 |
461 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ | 467 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ |
OLD | NEW |