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_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 void TryIntrinsify(); | 294 void TryIntrinsify(); |
295 | 295 |
296 void GenerateRuntimeCall(intptr_t token_pos, | 296 void GenerateRuntimeCall(intptr_t token_pos, |
297 intptr_t deopt_id, | 297 intptr_t deopt_id, |
298 const RuntimeEntry& entry, | 298 const RuntimeEntry& entry, |
299 intptr_t argument_count, | 299 intptr_t argument_count, |
300 LocationSummary* locs); | 300 LocationSummary* locs); |
301 | 301 |
302 void GenerateCall(intptr_t token_pos, | 302 void GenerateCall(intptr_t token_pos, |
303 const ExternalLabel* label, | 303 const ExternalLabel* label, |
304 PcDescriptors::Kind kind, | 304 RawPcDescriptors::Kind kind, |
305 LocationSummary* locs); | 305 LocationSummary* locs); |
306 | 306 |
307 void GenerateDartCall(intptr_t deopt_id, | 307 void GenerateDartCall(intptr_t deopt_id, |
308 intptr_t token_pos, | 308 intptr_t token_pos, |
309 const ExternalLabel* label, | 309 const ExternalLabel* label, |
310 PcDescriptors::Kind kind, | 310 RawPcDescriptors::Kind kind, |
311 LocationSummary* locs); | 311 LocationSummary* locs); |
312 | 312 |
313 void GenerateAssertAssignable(intptr_t token_pos, | 313 void GenerateAssertAssignable(intptr_t token_pos, |
314 intptr_t deopt_id, | 314 intptr_t deopt_id, |
315 const AbstractType& dst_type, | 315 const AbstractType& dst_type, |
316 const String& dst_name, | 316 const String& dst_name, |
317 LocationSummary* locs); | 317 LocationSummary* locs); |
318 | 318 |
319 void GenerateInstanceOf(intptr_t token_pos, | 319 void GenerateInstanceOf(intptr_t token_pos, |
320 intptr_t deopt_id, | 320 intptr_t deopt_id, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 | 408 |
409 // Return true-, false- and fall-through label for a branch instruction. | 409 // Return true-, false- and fall-through label for a branch instruction. |
410 BranchLabels CreateBranchLabels(BranchInstr* branch) const; | 410 BranchLabels CreateBranchLabels(BranchInstr* branch) const; |
411 | 411 |
412 void AddExceptionHandler(intptr_t try_index, | 412 void AddExceptionHandler(intptr_t try_index, |
413 intptr_t outer_try_index, | 413 intptr_t outer_try_index, |
414 intptr_t pc_offset, | 414 intptr_t pc_offset, |
415 const Array& handler_types, | 415 const Array& handler_types, |
416 bool needs_stacktrace); | 416 bool needs_stacktrace); |
417 void SetNeedsStacktrace(intptr_t try_index); | 417 void SetNeedsStacktrace(intptr_t try_index); |
418 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 418 void AddCurrentDescriptor(RawPcDescriptors::Kind kind, |
419 intptr_t deopt_id, | 419 intptr_t deopt_id, |
420 intptr_t token_pos); | 420 intptr_t token_pos); |
421 | 421 |
422 void RecordSafepoint(LocationSummary* locs); | 422 void RecordSafepoint(LocationSummary* locs); |
423 | 423 |
424 Label* AddDeoptStub(intptr_t deopt_id, ICData::DeoptReasonId reason); | 424 Label* AddDeoptStub(intptr_t deopt_id, ICData::DeoptReasonId reason); |
425 | 425 |
426 void AddDeoptIndexAtCall(intptr_t deopt_id, intptr_t token_pos); | 426 void AddDeoptIndexAtCall(intptr_t deopt_id, intptr_t token_pos); |
427 | 427 |
428 void AddSlowPathCode(SlowPathCode* slow_path); | 428 void AddSlowPathCode(SlowPathCode* slow_path); |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 intptr_t lazy_deopt_pc_offset_; | 619 intptr_t lazy_deopt_pc_offset_; |
620 | 620 |
621 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 621 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
622 | 622 |
623 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 623 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
624 }; | 624 }; |
625 | 625 |
626 } // namespace dart | 626 } // namespace dart |
627 | 627 |
628 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 628 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |