Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: runtime/vm/flow_graph_compiler.cc

Issue 1082203003: VM: Fix bug in stack map builder. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/locations.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/locations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698