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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.h

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
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 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_X64_H_
6 #define VM_FLOW_GRAPH_COMPILER_X64_H_ 6 #define VM_FLOW_GRAPH_COMPILER_X64_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_x64.h.
10 #endif 10 #endif
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void FinalizeComments(const Code& code); 193 void FinalizeComments(const Code& code);
194 194
195 const Bool& bool_true() const { return bool_true_; } 195 const Bool& bool_true() const { return bool_true_; }
196 const Bool& bool_false() const { return bool_false_; } 196 const Bool& bool_false() const { return bool_false_; }
197 const Class& double_class() const { return double_class_; } 197 const Class& double_class() const { return double_class_; }
198 198
199 FrameRegisterAllocator* frame_register_allocator() { 199 FrameRegisterAllocator* frame_register_allocator() {
200 return &frame_register_allocator_; 200 return &frame_register_allocator_;
201 } 201 }
202 202
203 // Returns true if the compiled function has a finally clause.
204 bool HasFinally() const;
205
203 static const int kLocalsOffsetFromFP = (-1 * kWordSize); 206 static const int kLocalsOffsetFromFP = (-1 * kWordSize);
204 207
205 private: 208 private:
206 friend class DeoptimizationStub; 209 friend class DeoptimizationStub;
207 210
208 void GenerateDeferredCode(); 211 void GenerateDeferredCode();
209 212
210 void EmitInstructionPrologue(Instruction* instr); 213 void EmitInstructionPrologue(Instruction* instr);
211 214
212 // Emit code to load a Value into register 'dst'. 215 // Emit code to load a Value into register 'dst'.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // that should be used when deoptimizing we store it in this variable. 316 // that should be used when deoptimizing we store it in this variable.
314 // In future AddDeoptStub should be moved out of the instruction template. 317 // In future AddDeoptStub should be moved out of the instruction template.
315 Environment* pending_deoptimization_env_; 318 Environment* pending_deoptimization_env_;
316 319
317 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 320 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
318 }; 321 };
319 322
320 } // namespace dart 323 } // namespace dart
321 324
322 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 325 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698