OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
6 | 6 |
7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
8 | 8 |
9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 deopt_infos_[i]->flags()); | 871 deopt_infos_[i]->flags()); |
872 DeoptTable::SetEntry(array, i, offset, info, reason_and_flags); | 872 DeoptTable::SetEntry(array, i, offset, info, reason_and_flags); |
873 } | 873 } |
874 return array.raw(); | 874 return array.raw(); |
875 } | 875 } |
876 } | 876 } |
877 | 877 |
878 | 878 |
879 void FlowGraphCompiler::FinalizeStackmaps(const Code& code) { | 879 void FlowGraphCompiler::FinalizeStackmaps(const Code& code) { |
880 if (stackmap_table_builder_ == NULL) { | 880 if (stackmap_table_builder_ == NULL) { |
881 // The unoptimizing compiler has no stack maps. | |
882 code.set_stackmaps(Object::null_array()); | 881 code.set_stackmaps(Object::null_array()); |
883 } else { | 882 } else { |
884 // Finalize the stack map array and add it to the code object. | 883 // Finalize the stack map array and add it to the code object. |
885 code.set_stackmaps( | 884 code.set_stackmaps( |
886 Array::Handle(stackmap_table_builder_->FinalizeStackmaps(code))); | 885 Array::Handle(stackmap_table_builder_->FinalizeStackmaps(code))); |
887 } | 886 } |
888 } | 887 } |
889 | 888 |
890 | 889 |
891 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { | 890 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1675 | 1674 |
1676 | 1675 |
1677 void FlowGraphCompiler::FrameStateClear() { | 1676 void FlowGraphCompiler::FrameStateClear() { |
1678 ASSERT(!is_optimizing()); | 1677 ASSERT(!is_optimizing()); |
1679 frame_state_.TruncateTo(0); | 1678 frame_state_.TruncateTo(0); |
1680 } | 1679 } |
1681 #endif | 1680 #endif |
1682 | 1681 |
1683 | 1682 |
1684 } // namespace dart | 1683 } // namespace dart |
OLD | NEW |