OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2745 public: | 2745 public: |
2746 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) | 2746 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) |
2747 : LChunkBuilderBase(graph->zone()), | 2747 : LChunkBuilderBase(graph->zone()), |
2748 chunk_(NULL), | 2748 chunk_(NULL), |
2749 info_(info), | 2749 info_(info), |
2750 graph_(graph), | 2750 graph_(graph), |
2751 status_(UNUSED), | 2751 status_(UNUSED), |
2752 current_instruction_(NULL), | 2752 current_instruction_(NULL), |
2753 current_block_(NULL), | 2753 current_block_(NULL), |
2754 next_block_(NULL), | 2754 next_block_(NULL), |
2755 allocator_(allocator), | 2755 allocator_(allocator) { } |
2756 instruction_pending_deoptimization_environment_(NULL), | |
2757 pending_deoptimization_ast_id_(BailoutId::None()) { } | |
2758 | 2756 |
2759 // Build the sequence for the graph. | 2757 // Build the sequence for the graph. |
2760 LPlatformChunk* Build(); | 2758 LPlatformChunk* Build(); |
2761 | 2759 |
2762 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); | 2760 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); |
2763 | 2761 |
2764 // Declare methods that deal with the individual node types. | 2762 // Declare methods that deal with the individual node types. |
2765 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2763 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
2766 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) | 2764 HYDROGEN_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) |
2767 #undef DECLARE_DO | 2765 #undef DECLARE_DO |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2899 LOperand* GetStoreKeyedValueOperand(HStoreKeyed* instr); | 2897 LOperand* GetStoreKeyedValueOperand(HStoreKeyed* instr); |
2900 | 2898 |
2901 LPlatformChunk* chunk_; | 2899 LPlatformChunk* chunk_; |
2902 CompilationInfo* info_; | 2900 CompilationInfo* info_; |
2903 HGraph* const graph_; | 2901 HGraph* const graph_; |
2904 Status status_; | 2902 Status status_; |
2905 HInstruction* current_instruction_; | 2903 HInstruction* current_instruction_; |
2906 HBasicBlock* current_block_; | 2904 HBasicBlock* current_block_; |
2907 HBasicBlock* next_block_; | 2905 HBasicBlock* next_block_; |
2908 LAllocator* allocator_; | 2906 LAllocator* allocator_; |
2909 LInstruction* instruction_pending_deoptimization_environment_; | |
2910 BailoutId pending_deoptimization_ast_id_; | |
2911 | 2907 |
2912 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2908 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2913 }; | 2909 }; |
2914 | 2910 |
2915 #undef DECLARE_HYDROGEN_ACCESSOR | 2911 #undef DECLARE_HYDROGEN_ACCESSOR |
2916 #undef DECLARE_CONCRETE_INSTRUCTION | 2912 #undef DECLARE_CONCRETE_INSTRUCTION |
2917 | 2913 |
2918 } } // namespace v8::internal | 2914 } } // namespace v8::internal |
2919 | 2915 |
2920 #endif // V8_IA32_LITHIUM_IA32_H_ | 2916 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |