OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_H_ |
7 | 7 |
8 #include "hydrogen.h" | 8 #include "hydrogen.h" |
9 #include "lithium-allocator.h" | 9 #include "lithium-allocator.h" |
10 #include "lithium.h" | 10 #include "lithium.h" |
(...skipping 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2648 current_instruction_(NULL), | 2648 current_instruction_(NULL), |
2649 current_block_(NULL), | 2649 current_block_(NULL), |
2650 next_block_(NULL), | 2650 next_block_(NULL), |
2651 allocator_(allocator) { } | 2651 allocator_(allocator) { } |
2652 | 2652 |
2653 Isolate* isolate() const { return graph_->isolate(); } | 2653 Isolate* isolate() const { return graph_->isolate(); } |
2654 | 2654 |
2655 // Build the sequence for the graph. | 2655 // Build the sequence for the graph. |
2656 LPlatformChunk* Build(); | 2656 LPlatformChunk* Build(); |
2657 | 2657 |
2658 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); | |
2659 | |
2660 // Declare methods that deal with the individual node types. | 2658 // Declare methods that deal with the individual node types. |
2661 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2659 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
2662 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2660 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
2663 #undef DECLARE_DO | 2661 #undef DECLARE_DO |
2664 | 2662 |
2665 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); | 2663 LInstruction* DoMultiplyAdd(HMul* mul, HValue* addend); |
2666 | 2664 |
2667 static bool HasMagicNumberForDivisor(int32_t divisor); | 2665 static bool HasMagicNumberForDivisor(int32_t divisor); |
2668 | 2666 |
2669 LInstruction* DoMathFloor(HUnaryMathOperation* instr); | 2667 LInstruction* DoMathFloor(HUnaryMathOperation* instr); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2799 | 2797 |
2800 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2798 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2801 }; | 2799 }; |
2802 | 2800 |
2803 #undef DECLARE_HYDROGEN_ACCESSOR | 2801 #undef DECLARE_HYDROGEN_ACCESSOR |
2804 #undef DECLARE_CONCRETE_INSTRUCTION | 2802 #undef DECLARE_CONCRETE_INSTRUCTION |
2805 | 2803 |
2806 } } // namespace v8::internal | 2804 } } // namespace v8::internal |
2807 | 2805 |
2808 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2806 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |