| OLD | NEW |
| 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_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 #undef DEFINE_VISITOR_FUNCTION | 106 #undef DEFINE_VISITOR_FUNCTION |
| 107 | 107 |
| 108 CodeGeneratorState* state() const { return state_; } | 108 CodeGeneratorState* state() const { return state_; } |
| 109 void set_state(CodeGeneratorState* state) { state_ = state; } | 109 void set_state(CodeGeneratorState* state) { state_ = state; } |
| 110 | 110 |
| 111 // Add exception handler table to code. | 111 // Add exception handler table to code. |
| 112 void FinalizeExceptionHandlers(const Code& code); | 112 void FinalizeExceptionHandlers(const Code& code); |
| 113 | 113 |
| 114 // Add pc descriptors to code. | 114 // Add pc descriptors to code. |
| 115 void FinalizePcDescriptors(const Code& code); | 115 void FinalizePcDescriptors(const Code& code); |
| 116 // Verify assumptions about pc descriptors in debug mode. |
| 117 static void VerifyPcDescriptors(const PcDescriptors& descriptors, |
| 118 bool check_ids); |
| 116 | 119 |
| 117 // Allocate and return an arguments descriptor. | 120 // Allocate and return an arguments descriptor. |
| 118 // Let 'num_names' be the length of 'optional_arguments_names'. | 121 // Let 'num_names' be the length of 'optional_arguments_names'. |
| 119 // Treat the first 'num_arguments - num_names' arguments as positional and | 122 // Treat the first 'num_arguments - num_names' arguments as positional and |
| 120 // treat the following 'num_names' arguments as named optional arguments. | 123 // treat the following 'num_names' arguments as named optional arguments. |
| 121 static const Array& ArgumentsDescriptor( | 124 static const Array& ArgumentsDescriptor( |
| 122 int num_arguments, | 125 int num_arguments, |
| 123 const Array& optional_arguments_names); | 126 const Array& optional_arguments_names); |
| 124 | 127 |
| 125 virtual bool IsOptimizing() const { | 128 virtual bool IsOptimizing() const { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 HandlerList* exception_handlers_list_; | 230 HandlerList* exception_handlers_list_; |
| 228 int try_index_; | 231 int try_index_; |
| 229 | 232 |
| 230 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 233 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 231 }; | 234 }; |
| 232 | 235 |
| 233 | 236 |
| 234 } // namespace dart | 237 } // namespace dart |
| 235 | 238 |
| 236 #endif // VM_CODE_GENERATOR_X64_H_ | 239 #endif // VM_CODE_GENERATOR_X64_H_ |
| OLD | NEW |