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 RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ | 5 #ifndef RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ |
6 #define RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ | 6 #define RUNTIME_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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 ICData::DeoptReasonId reason, | 533 ICData::DeoptReasonId reason, |
534 uint32_t flags = 0); | 534 uint32_t flags = 0); |
535 | 535 |
536 #if defined(TARGET_ARCH_DBC) | 536 #if defined(TARGET_ARCH_DBC) |
537 void EmitDeopt(intptr_t deopt_id, | 537 void EmitDeopt(intptr_t deopt_id, |
538 ICData::DeoptReasonId reason, | 538 ICData::DeoptReasonId reason, |
539 uint32_t flags = 0); | 539 uint32_t flags = 0); |
540 | 540 |
541 // If the cid does not fit in 16 bits, then this will cause a bailout. | 541 // If the cid does not fit in 16 bits, then this will cause a bailout. |
542 uint16_t ToEmbeddableCid(intptr_t cid, Instruction* instruction); | 542 uint16_t ToEmbeddableCid(intptr_t cid, Instruction* instruction); |
| 543 |
| 544 // In optimized code, variables at the catch block entry reside at the top |
| 545 // of the allocatable register range. |
| 546 // Must be in sync with FlowGraphAllocator::ProcessInitialDefinition. |
| 547 intptr_t CatchEntryRegForVariable(const LocalVariable& var); |
543 #endif // defined(TARGET_ARCH_DBC) | 548 #endif // defined(TARGET_ARCH_DBC) |
544 | 549 |
545 CompilerDeoptInfo* AddDeoptIndexAtCall(intptr_t deopt_id); | 550 CompilerDeoptInfo* AddDeoptIndexAtCall(intptr_t deopt_id); |
546 | 551 |
547 void AddSlowPathCode(SlowPathCode* slow_path); | 552 void AddSlowPathCode(SlowPathCode* slow_path); |
548 | 553 |
549 void FinalizeExceptionHandlers(const Code& code); | 554 void FinalizeExceptionHandlers(const Code& code); |
550 void FinalizePcDescriptors(const Code& code); | 555 void FinalizePcDescriptors(const Code& code); |
551 RawArray* CreateDeoptInfo(Assembler* assembler); | 556 RawArray* CreateDeoptInfo(Assembler* assembler); |
552 void FinalizeStackMaps(const Code& code); | 557 void FinalizeStackMaps(const Code& code); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 837 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
833 | 838 |
834 Array& edge_counters_array_; | 839 Array& edge_counters_array_; |
835 | 840 |
836 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 841 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
837 }; | 842 }; |
838 | 843 |
839 } // namespace dart | 844 } // namespace dart |
840 | 845 |
841 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ | 846 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |