OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ |
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ |
7 | 7 |
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. |
10 #endif | 10 #endif |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void AddSlowPathCode(SlowPathCode* slow_path); | 200 void AddSlowPathCode(SlowPathCode* slow_path); |
201 | 201 |
202 void FinalizeExceptionHandlers(const Code& code); | 202 void FinalizeExceptionHandlers(const Code& code); |
203 void FinalizePcDescriptors(const Code& code); | 203 void FinalizePcDescriptors(const Code& code); |
204 void FinalizeDeoptInfo(const Code& code); | 204 void FinalizeDeoptInfo(const Code& code); |
205 void FinalizeStackmaps(const Code& code); | 205 void FinalizeStackmaps(const Code& code); |
206 void FinalizeVarDescriptors(const Code& code); | 206 void FinalizeVarDescriptors(const Code& code); |
207 void FinalizeComments(const Code& code); | 207 void FinalizeComments(const Code& code); |
208 void FinalizeStaticCallTargetsTable(const Code& code); | 208 void FinalizeStaticCallTargetsTable(const Code& code); |
209 | 209 |
210 const Bool& bool_true() const { return bool_true_; } | |
211 const Bool& bool_false() const { return bool_false_; } | |
212 const Class& double_class() const { return double_class_; } | 210 const Class& double_class() const { return double_class_; } |
213 | 211 |
214 // Returns true if the compiled function has a finally clause. | 212 // Returns true if the compiled function has a finally clause. |
215 bool HasFinally() const; | 213 bool HasFinally() const; |
216 | 214 |
217 static const int kLocalsOffsetFromFP = (-1 * kWordSize); | 215 static const int kLocalsOffsetFromFP = (-1 * kWordSize); |
218 | 216 |
219 void SaveLiveRegisters(LocationSummary* locs); | 217 void SaveLiveRegisters(LocationSummary* locs); |
220 void RestoreLiveRegisters(LocationSummary* locs); | 218 void RestoreLiveRegisters(LocationSummary* locs); |
221 | 219 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 StackmapTableBuilder* stackmap_table_builder_; | 336 StackmapTableBuilder* stackmap_table_builder_; |
339 GrowableArray<BlockInfo*> block_info_; | 337 GrowableArray<BlockInfo*> block_info_; |
340 GrowableArray<CompilerDeoptInfo*> deopt_infos_; | 338 GrowableArray<CompilerDeoptInfo*> deopt_infos_; |
341 GrowableArray<SlowPathCode*> slow_path_code_; | 339 GrowableArray<SlowPathCode*> slow_path_code_; |
342 // Stores: [code offset, function, null(code)]. | 340 // Stores: [code offset, function, null(code)]. |
343 const GrowableObjectArray& static_calls_target_table_; | 341 const GrowableObjectArray& static_calls_target_table_; |
344 const bool is_optimizing_; | 342 const bool is_optimizing_; |
345 // Set to true if optimized code has IC calls. | 343 // Set to true if optimized code has IC calls. |
346 bool may_reoptimize_; | 344 bool may_reoptimize_; |
347 | 345 |
348 const Bool& bool_true_; | |
349 const Bool& bool_false_; | |
350 const Class& double_class_; | 346 const Class& double_class_; |
351 | 347 |
352 ParallelMoveResolver parallel_move_resolver_; | 348 ParallelMoveResolver parallel_move_resolver_; |
353 | 349 |
354 // Currently instructions generate deopt stubs internally by | 350 // Currently instructions generate deopt stubs internally by |
355 // calling AddDeoptStub. To communicate deoptimization environment | 351 // calling AddDeoptStub. To communicate deoptimization environment |
356 // that should be used when deoptimizing we store it in this variable. | 352 // that should be used when deoptimizing we store it in this variable. |
357 // In future AddDeoptStub should be moved out of the instruction template. | 353 // In future AddDeoptStub should be moved out of the instruction template. |
358 Environment* pending_deoptimization_env_; | 354 Environment* pending_deoptimization_env_; |
359 | 355 |
360 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 356 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
361 }; | 357 }; |
362 | 358 |
363 } // namespace dart | 359 } // namespace dart |
364 | 360 |
365 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ | 361 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ |
OLD | NEW |