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

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

Issue 10824201: Verify at method exit that stack size is the same as at entry, except for methods with finally clau… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/flow_graph_compiler_ia32.h » ('j') | runtime/vm/raw_object.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #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/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 103
104 bool FlowGraphCompiler::IsLeaf() const { 104 bool FlowGraphCompiler::IsLeaf() const {
105 return is_dart_leaf_ && 105 return is_dart_leaf_ &&
106 !parsed_function_.function().IsClosureFunction() && 106 !parsed_function_.function().IsClosureFunction() &&
107 (parsed_function().copied_parameter_count() == 0); 107 (parsed_function().copied_parameter_count() == 0);
108 } 108 }
109 109
110 110
111 bool FlowGraphCompiler::HasFinally() const {
112 return parsed_function().function().has_finally();
113 }
114
115
111 void FlowGraphCompiler::InitCompiler() { 116 void FlowGraphCompiler::InitCompiler() {
112 pc_descriptors_list_ = new DescriptorList(64); 117 pc_descriptors_list_ = new DescriptorList(64);
113 exception_handlers_list_ = new ExceptionHandlerList(); 118 exception_handlers_list_ = new ExceptionHandlerList();
114 block_info_.Clear(); 119 block_info_.Clear();
115 for (int i = 0; i < block_order_.length(); ++i) { 120 for (int i = 0; i < block_order_.length(); ++i) {
116 block_info_.Add(new BlockInfo()); 121 block_info_.Add(new BlockInfo());
117 } 122 }
118 } 123 }
119 124
120 125
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 return; 852 return;
848 } 853 }
849 } 854 }
850 855
851 // This move is not blocked. 856 // This move is not blocked.
852 EmitMove(index); 857 EmitMove(index);
853 } 858 }
854 859
855 860
856 } // namespace dart 861 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698