| 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/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 return AddNode(machine()->Word32PairSar(), low_word, high_word, shift); | 340 return AddNode(machine()->Word32PairSar(), low_word, high_word, shift); |
| 341 } | 341 } |
| 342 | 342 |
| 343 #define INTPTR_BINOP(prefix, name) \ | 343 #define INTPTR_BINOP(prefix, name) \ |
| 344 Node* IntPtr##name(Node* a, Node* b) { \ | 344 Node* IntPtr##name(Node* a, Node* b) { \ |
| 345 return kPointerSize == 8 ? prefix##64##name(a, b) \ | 345 return kPointerSize == 8 ? prefix##64##name(a, b) \ |
| 346 : prefix##32##name(a, b); \ | 346 : prefix##32##name(a, b); \ |
| 347 } | 347 } |
| 348 | 348 |
| 349 INTPTR_BINOP(Int, Add); | 349 INTPTR_BINOP(Int, Add); |
| 350 INTPTR_BINOP(Int, AddWithOverflow); |
| 350 INTPTR_BINOP(Int, Sub); | 351 INTPTR_BINOP(Int, Sub); |
| 352 INTPTR_BINOP(Int, SubWithOverflow); |
| 351 INTPTR_BINOP(Int, LessThan); | 353 INTPTR_BINOP(Int, LessThan); |
| 352 INTPTR_BINOP(Int, LessThanOrEqual); | 354 INTPTR_BINOP(Int, LessThanOrEqual); |
| 353 INTPTR_BINOP(Word, Equal); | 355 INTPTR_BINOP(Word, Equal); |
| 354 INTPTR_BINOP(Word, NotEqual); | 356 INTPTR_BINOP(Word, NotEqual); |
| 355 INTPTR_BINOP(Int, GreaterThanOrEqual); | 357 INTPTR_BINOP(Int, GreaterThanOrEqual); |
| 356 INTPTR_BINOP(Int, GreaterThan); | 358 INTPTR_BINOP(Int, GreaterThan); |
| 357 | 359 |
| 358 #undef INTPTR_BINOP | 360 #undef INTPTR_BINOP |
| 359 | 361 |
| 360 #define UINTPTR_BINOP(prefix, name) \ | 362 #define UINTPTR_BINOP(prefix, name) \ |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 bool deferred_; | 730 bool deferred_; |
| 729 friend class RawMachineAssembler; | 731 friend class RawMachineAssembler; |
| 730 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 732 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
| 731 }; | 733 }; |
| 732 | 734 |
| 733 } // namespace compiler | 735 } // namespace compiler |
| 734 } // namespace internal | 736 } // namespace internal |
| 735 } // namespace v8 | 737 } // namespace v8 |
| 736 | 738 |
| 737 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 739 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |