| 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_CODE_GENERATOR_H_ | 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_ |
| 6 #define V8_COMPILER_CODE_GENERATOR_H_ | 6 #define V8_COMPILER_CODE_GENERATOR_H_ |
| 7 | 7 |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/instruction.h" | 9 #include "src/compiler/instruction.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 int pc_offset_; | 170 int pc_offset_; |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 struct HandlerInfo { | 173 struct HandlerInfo { |
| 174 bool caught_locally; | 174 bool caught_locally; |
| 175 Label* handler; | 175 Label* handler; |
| 176 int pc_offset; | 176 int pc_offset; |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 friend class OutOfLineCode; | 179 friend class OutOfLineCode; |
| 180 friend class StateValueDescriptor; |
| 181 friend class FrameStateDescriptor; |
| 180 | 182 |
| 181 FrameAccessState* frame_access_state_; | 183 FrameAccessState* frame_access_state_; |
| 182 Linkage* const linkage_; | 184 Linkage* const linkage_; |
| 183 InstructionSequence* const code_; | 185 InstructionSequence* const code_; |
| 184 CompilationInfo* const info_; | 186 CompilationInfo* const info_; |
| 185 Label* const labels_; | 187 Label* const labels_; |
| 186 Label return_label_; | 188 Label return_label_; |
| 187 RpoNumber current_block_; | 189 RpoNumber current_block_; |
| 188 SourcePosition current_source_position_; | 190 SourcePosition current_source_position_; |
| 189 MacroAssembler masm_; | 191 MacroAssembler masm_; |
| 190 GapResolver resolver_; | 192 GapResolver resolver_; |
| 191 SafepointTableBuilder safepoints_; | 193 SafepointTableBuilder safepoints_; |
| 192 ZoneVector<HandlerInfo> handlers_; | 194 ZoneVector<HandlerInfo> handlers_; |
| 193 ZoneDeque<DeoptimizationState*> deoptimization_states_; | 195 ZoneDeque<DeoptimizationState*> deoptimization_states_; |
| 194 ZoneDeque<Handle<Object>> deoptimization_literals_; | 196 ZoneDeque<Handle<Object>> deoptimization_literals_; |
| 195 size_t inlined_function_count_; | 197 size_t inlined_function_count_; |
| 196 TranslationBuffer translations_; | 198 TranslationBuffer translations_; |
| 197 int last_lazy_deopt_pc_; | 199 int last_lazy_deopt_pc_; |
| 198 JumpTable* jump_tables_; | 200 JumpTable* jump_tables_; |
| 199 OutOfLineCode* ools_; | 201 OutOfLineCode* ools_; |
| 200 int osr_pc_offset_; | 202 int osr_pc_offset_; |
| 201 }; | 203 }; |
| 202 | 204 |
| 203 } // namespace compiler | 205 } // namespace compiler |
| 204 } // namespace internal | 206 } // namespace internal |
| 205 } // namespace v8 | 207 } // namespace v8 |
| 206 | 208 |
| 207 #endif // V8_COMPILER_CODE_GENERATOR_H | 209 #endif // V8_COMPILER_CODE_GENERATOR_H |
| OLD | NEW |