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

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

Issue 10407019: Extend assembler with ability to produce comments for the generated code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 20 matching lines...) Expand all
31 31
32 virtual ~FlowGraphCompiler(); 32 virtual ~FlowGraphCompiler();
33 33
34 void CompileGraph(); 34 void CompileGraph();
35 35
36 // Infrastructure copied from class CodeGenerator or stubbed out. 36 // Infrastructure copied from class CodeGenerator or stubbed out.
37 void FinalizePcDescriptors(const Code& code); 37 void FinalizePcDescriptors(const Code& code);
38 void FinalizeStackmaps(const Code& code); 38 void FinalizeStackmaps(const Code& code);
39 void FinalizeVarDescriptors(const Code& code); 39 void FinalizeVarDescriptors(const Code& code);
40 void FinalizeExceptionHandlers(const Code& code); 40 void FinalizeExceptionHandlers(const Code& code);
41 void FinalizeComments(const Code& code);
41 42
42 private: 43 private:
43 static const int kLocalsOffsetFromFP = (-1 * kWordSize); 44 static const int kLocalsOffsetFromFP = (-1 * kWordSize);
44 45
45 // Constructor is lighweight, major initialization work should occur here. 46 // Constructor is lighweight, major initialization work should occur here.
46 // This makes it easier to measure time spent in the compiler. 47 // This makes it easier to measure time spent in the compiler.
47 void InitCompiler(); 48 void InitCompiler();
48 49
49 struct BlockInfo : public ZoneAllocated { 50 struct BlockInfo : public ZoneAllocated {
50 public: 51 public:
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 DescriptorList* pc_descriptors_list_; 146 DescriptorList* pc_descriptors_list_;
146 ExceptionHandlerList* exception_handlers_list_; 147 ExceptionHandlerList* exception_handlers_list_;
147 const bool is_optimizing_; 148 const bool is_optimizing_;
148 149
149 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 150 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
150 }; 151 };
151 152
152 } // namespace dart 153 } // namespace dart
153 154
154 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_ 155 #endif // VM_FLOW_GRAPH_COMPILER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698