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

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

Issue 8992020: First part of inspecting local variables (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_CODE_GENERATOR_X64_H_ 5 #ifndef VM_CODE_GENERATOR_X64_H_
6 #define VM_CODE_GENERATOR_X64_H_ 6 #define VM_CODE_GENERATOR_X64_H_
7 7
8 #ifndef VM_CODE_GENERATOR_H_ 8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_x64.h directly; use code_generator.h. 9 #error Do not include code_generator_x64.h directly; use code_generator.h.
10 #endif 10 #endif
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual ~CodeGenerator() { } 87 virtual ~CodeGenerator() { }
88 88
89 // Accessors. 89 // Accessors.
90 Assembler* assembler() const { return assembler_; } 90 Assembler* assembler() const { return assembler_; }
91 91
92 const ParsedFunction& parsed_function() const { return parsed_function_; } 92 const ParsedFunction& parsed_function() const { return parsed_function_; }
93 93
94 void GenerateCode(); 94 void GenerateCode();
95 virtual void GenerateDeferredCode(); 95 virtual void GenerateDeferredCode();
96 96
97 // Add local variable descriptors to code.
98 void FinalizeVarDescriptors(const Code& code);
99
97 #define DEFINE_VISITOR_FUNCTION(type, name) \ 100 #define DEFINE_VISITOR_FUNCTION(type, name) \
98 virtual void Visit##type(type* node); 101 virtual void Visit##type(type* node);
99 NODE_LIST(DEFINE_VISITOR_FUNCTION) 102 NODE_LIST(DEFINE_VISITOR_FUNCTION)
100 #undef DEFINE_VISITOR_FUNCTION 103 #undef DEFINE_VISITOR_FUNCTION
101 104
102 CodeGeneratorState* state() const { return state_; } 105 CodeGeneratorState* state() const { return state_; }
103 void set_state(CodeGeneratorState* state) { state_ = state; } 106 void set_state(CodeGeneratorState* state) { state_ = state; }
104 107
105 // Add exception handler table to code. 108 // Add exception handler table to code.
106 void FinalizeExceptionHandlers(const Code& code); 109 void FinalizeExceptionHandlers(const Code& code);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 DescriptorList* pc_descriptors_list_; 223 DescriptorList* pc_descriptors_list_;
221 HandlerList* exception_handlers_list_; 224 HandlerList* exception_handlers_list_;
222 int try_index_; 225 int try_index_;
223 226
224 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); 227 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
225 }; 228 };
226 229
227 } // namespace dart 230 } // namespace dart
228 231
229 #endif // VM_CODE_GENERATOR_X64_H_ 232 #endif // VM_CODE_GENERATOR_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698