OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2820 public: | 2820 public: |
2821 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) | 2821 LChunkBuilder(CompilationInfo* info, HGraph* graph, LAllocator* allocator) |
2822 : LChunkBuilderBase(graph->zone()), | 2822 : LChunkBuilderBase(graph->zone()), |
2823 chunk_(NULL), | 2823 chunk_(NULL), |
2824 info_(info), | 2824 info_(info), |
2825 graph_(graph), | 2825 graph_(graph), |
2826 status_(UNUSED), | 2826 status_(UNUSED), |
2827 current_instruction_(NULL), | 2827 current_instruction_(NULL), |
2828 current_block_(NULL), | 2828 current_block_(NULL), |
2829 allocator_(allocator), | 2829 allocator_(allocator), |
2830 position_(RelocInfo::kNoPosition), | |
2831 instruction_pending_deoptimization_environment_(NULL), | 2830 instruction_pending_deoptimization_environment_(NULL), |
2832 pending_deoptimization_ast_id_(BailoutId::None()) { } | 2831 pending_deoptimization_ast_id_(BailoutId::None()) { } |
2833 | 2832 |
2834 // Build the sequence for the graph. | 2833 // Build the sequence for the graph. |
2835 LPlatformChunk* Build(); | 2834 LPlatformChunk* Build(); |
2836 | 2835 |
2837 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); | 2836 LInstruction* CheckElideControlInstruction(HControlInstruction* instr); |
2838 | 2837 |
2839 // Declare methods that deal with the individual node types. | 2838 // Declare methods that deal with the individual node types. |
2840 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); | 2839 #define DECLARE_DO(type) LInstruction* Do##type(H##type* node); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2949 LInstruction* DoArithmeticT(Token::Value op, | 2948 LInstruction* DoArithmeticT(Token::Value op, |
2950 HBinaryOperation* instr); | 2949 HBinaryOperation* instr); |
2951 | 2950 |
2952 LPlatformChunk* chunk_; | 2951 LPlatformChunk* chunk_; |
2953 CompilationInfo* info_; | 2952 CompilationInfo* info_; |
2954 HGraph* const graph_; | 2953 HGraph* const graph_; |
2955 Status status_; | 2954 Status status_; |
2956 HInstruction* current_instruction_; | 2955 HInstruction* current_instruction_; |
2957 HBasicBlock* current_block_; | 2956 HBasicBlock* current_block_; |
2958 LAllocator* allocator_; | 2957 LAllocator* allocator_; |
2959 int position_; | |
2960 LInstruction* instruction_pending_deoptimization_environment_; | 2958 LInstruction* instruction_pending_deoptimization_environment_; |
2961 BailoutId pending_deoptimization_ast_id_; | 2959 BailoutId pending_deoptimization_ast_id_; |
2962 | 2960 |
2963 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2961 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2964 }; | 2962 }; |
2965 | 2963 |
2966 #undef DECLARE_HYDROGEN_ACCESSOR | 2964 #undef DECLARE_HYDROGEN_ACCESSOR |
2967 #undef DECLARE_CONCRETE_INSTRUCTION | 2965 #undef DECLARE_CONCRETE_INSTRUCTION |
2968 | 2966 |
2969 } } // namespace v8::internal | 2967 } } // namespace v8::internal |
2970 | 2968 |
2971 #endif // V8_A64_LITHIUM_A64_H_ | 2969 #endif // V8_A64_LITHIUM_A64_H_ |
OLD | NEW |