| OLD | NEW |
| 1 // Copyright (c) 2011, 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_CODE_GENERATOR_IA32_H_ | 5 #ifndef VM_CODE_GENERATOR_IA32_H_ |
| 6 #define VM_CODE_GENERATOR_IA32_H_ | 6 #define VM_CODE_GENERATOR_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_CODE_GENERATOR_H_ | 8 #ifndef VM_CODE_GENERATOR_H_ |
| 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. | 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. |
| 10 #endif | 10 #endif |
| 11 | 11 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #undef DEFINE_VISITOR_FUNCTION | 100 #undef DEFINE_VISITOR_FUNCTION |
| 101 | 101 |
| 102 CodeGeneratorState* state() const { return state_; } | 102 CodeGeneratorState* state() const { return state_; } |
| 103 void set_state(CodeGeneratorState* state) { state_ = state; } | 103 void set_state(CodeGeneratorState* state) { state_ = state; } |
| 104 | 104 |
| 105 // Add exception handler table to code. | 105 // Add exception handler table to code. |
| 106 void FinalizeExceptionHandlers(const Code& code); | 106 void FinalizeExceptionHandlers(const Code& code); |
| 107 | 107 |
| 108 // Add pc descriptors to code. | 108 // Add pc descriptors to code. |
| 109 void FinalizePcDescriptors(const Code& code); | 109 void FinalizePcDescriptors(const Code& code); |
| 110 // Verify assumptions about pc descriptors in debug mode. |
| 111 static void VerifyPcDescriptors(const PcDescriptors& descriptors, |
| 112 bool check_ids); |
| 110 | 113 |
| 111 // Add local variable descriptors to code. | 114 // Add local variable descriptors to code. |
| 112 void FinalizeVarDescriptors(const Code& code); | 115 void FinalizeVarDescriptors(const Code& code); |
| 113 | 116 |
| 114 // Allocate and return an arguments descriptor. | 117 // Allocate and return an arguments descriptor. |
| 115 // Let 'num_names' be the length of 'optional_arguments_names'. | 118 // Let 'num_names' be the length of 'optional_arguments_names'. |
| 116 // Treat the first 'num_arguments - num_names' arguments as positional and | 119 // Treat the first 'num_arguments - num_names' arguments as positional and |
| 117 // treat the following 'num_names' arguments as named optional arguments. | 120 // treat the following 'num_names' arguments as named optional arguments. |
| 118 static const Array& ArgumentsDescriptor( | 121 static const Array& ArgumentsDescriptor( |
| 119 int num_arguments, | 122 int num_arguments, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 DescriptorList* pc_descriptors_list_; | 227 DescriptorList* pc_descriptors_list_; |
| 225 HandlerList* exception_handlers_list_; | 228 HandlerList* exception_handlers_list_; |
| 226 int try_index_; | 229 int try_index_; |
| 227 | 230 |
| 228 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 231 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 229 }; | 232 }; |
| 230 | 233 |
| 231 } // namespace dart | 234 } // namespace dart |
| 232 | 235 |
| 233 #endif // VM_CODE_GENERATOR_IA32_H_ | 236 #endif // VM_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |